Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?php
- $startTime = microtime(true);
- $fileDir = dirname(__FILE__);
- 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);
- $username = $_GET['username'];
- $password = $_GET['password'];
- $password_to_db = $_GET["password"];
- $hwid = $_GET['hwid'];
- $host = "localhost";
- $user = "log";
- $pass = "pass";
- $database = "db";
- date_default_timezone_set('Europe/Kiev');
- @mysql_connect($host,$user,$pass);
- @mysql_select_db($database);
- $db = XenForo_Application::getDb();
- $data = $db->fetchOne('
- SELECT
- auth.data
- FROM xf_user_authenticate AS auth
- INNER JOIN xf_user AS user ON
- (user.user_id = auth.user_id)
- WHERE user.username = ?
- ', $username);
- $auth = XenForo_Authentication_Abstract::createDefault();
- $auth->setData($data);
- $check = $auth->authenticate($username, $password);
- Zend_Debug::dump($check);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement