tomsch
12-27-2009, 07:18 PM
can any tell me how/if i can use this function
function verify_authentication
i have a 3rd party app and i want to use the vbulletin user db for validation
divine_ai_85
04-21-2011, 10:25 AM
I got this working:
<?php
// setup path to your forum and your username and password
define('CWD', '/pathtoforum/');
$username = 'yourusername';
$password = 'yourpassword';
// end setup
define('VB_AREA', 1);
define('THIS_SCRIPT', 1);
define('DIR', CWD);
require_once(DIR . 'includes/init.php');
require_once(DIR . 'includes/functions_login.php');
$encrypted = md5($password);
$c = verify_authentication($username, $password, $encrypted, $encrypted, true, true);
if($c == true) echo 'logged in'; else echo 'logged out';
?>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.