vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Logging users in using verify_authentication (https://vborg.vbsupport.ru/showthread.php?t=124895)

hsomel 08-25-2006 01:37 PM

Logging users in using verify_authentication
 
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:

Code:

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

Quote:

Originally Posted by hsomel (Post 1060224)
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:

Code:

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

Quote:

Originally Posted by Dismounted (Post 1208630)
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

Quote:

Originally Posted by JMH11788 (Post 1208782)
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.....


All times are GMT. The time now is 05:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01310 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete