Log in

View Full Version : Logging users in using verify_authentication


hsomel
08-25-2006, 01:37 PM
Hi

I am trying to log a user in to the forums installed on my site using a login page from my own site. Basically I want user to be able to sign in to my site using my own sign in mechanism and at the same time log them into the forums. I have included the following code in my signIn.php script:

define('VB_AREA','Forum');
require(ROOT_ADDRESS . '/forums/includes/functions_login.php');

define('CWD','/usr/local/apache/htdocs/forums');
require(ROOT_ADDRESS . '/forums/includes/init.php');


echo verify_authentication($formValues['alias'], $formValues['password'], "", "", true, true);

The above code results in an error :

VB_AREA or THIS_SCRIPT must be defined to continue
Fatal error: Call to undefined function verify_authentication() in /usr/local/apache/htdocs/signIn.php on line 83

My signIn.php script is not located within the VBulletin forums (forums) directory does it need to be?

Is there anything else that i am doing wrong or should know?

Thanks

JMH11788
03-21-2007, 02:17 AM
Hi

I am trying to log a user in to the forums installed on my site using a login page from my own site. Basically I want user to be able to sign in to my site using my own sign in mechanism and at the same time log them into the forums. I have included the following code in my signIn.php script:

define('VB_AREA','Forum');
require(ROOT_ADDRESS . '/forums/includes/functions_login.php');

define('CWD','/usr/local/apache/htdocs/forums');
require(ROOT_ADDRESS . '/forums/includes/init.php');


echo verify_authentication($formValues['alias'], $formValues['password'], "", "", true, true);

The above code results in an error :

VB_AREA or THIS_SCRIPT must be defined to continue
Fatal error: Call to undefined function verify_authentication() in /usr/local/apache/htdocs/signIn.php on line 83

My signIn.php script is not located within the VBulletin forums (forums) directory does it need to be?

Is there anything else that i am doing wrong or should know?

Thanks

you must require global.php first

Dismounted
03-21-2007, 08:49 AM
Don't revive old threads.....

JMH11788
03-21-2007, 01:13 PM
Don't revive old threads.....

Why not? I've never understood why people make such a fuss. What about people that find the thread, if it's not answered then it's a waste of everyones time and resources. If I politely give the answer then it could help others as well.

Maybe my logic is way off though :confused:

obscureclouddon
07-25-2011, 05:47 PM
Why not? I've never understood why people make such a fuss. What about people that find the thread, if it's not answered then it's a waste of everyones time and resources. If I politely give the answer then it could help others as well.

Maybe my logic is way off though :confused:

Case in point. This did help me.....