Skip to content

Instantly share code, notes, and snippets.

@datio
Created March 9, 2017 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datio/a9c08829e709bae0f3bdd5f8f39e9d81 to your computer and use it in GitHub Desktop.
Save datio/a9c08829e709bae0f3bdd5f8f39e9d81 to your computer and use it in GitHub Desktop.
<?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