Created
March 9, 2017 21:10
-
-
Save datio/a9c08829e709bae0f3bdd5f8f39e9d81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// RewriteCond %{REQUEST_URI} forum/local_links.php | |
// RewriteRule ^.*$ vbdm2xf.php [NC,L] | |
$startTime = microtime(true); | |
$fileDir = '/var/www/html'; | |
require($fileDir . '/library/XenForo/Autoloader.php'); | |
XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library'); | |
XenForo_Application::initialize($fileDir . '/library', $fileDir); | |
XenForo_Application::set('page_start_time', $startTime); | |
$request = new Zend_Controller_Request_Http(); | |
$inputHandler = new XenForo_Input($request->getParams()); | |
$input = $inputHandler->filter(array( | |
'catid' => XenForo_Input::UINT, | |
'linkid' => XenForo_Input::UINT, | |
'action' => XenForo_Input::STRING, | |
'id' => XenForo_Input::UINT, | |
)); | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment