Hey guys,
I'm facing a problem, vBulletin5 is completly different from vBulletin4.
I'm trying to do an external login, but I do not know which file to include in my php script, since I get many Access Denied.
This what i was doing in vBulletin4.
PHP Code:
require_once('global.php');
// getting data ..
$username = filter_var($_POST['username'], FILTER_SANITIZE_STRING);
$password = filter_var($_POST['password'], FILTER_SANITIZE_STRING);
$user = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE username ='".$username."'");
// doing some checks and getting some stuff
$pass = $user[password];
$vb_hash = md5($password . $user[salt]);
// return what I want.
But in the new vBulletin, I'm just not sure what to perform in order to achieve the same results.
Any help?