Quote:
Originally Posted by t3nt3tion
1. I`m trying to do a bridge between a script that uses sessions and vbulletin. I`m having a hardtime creating a session bridge since I don`t know what I should really integrate with the script, so it would automatically login the user in vBulletin. Any hints ? Code that I`d need to check ?
I got to the part that I need to use :
PHP Code:
$curdir = getcwd (); // gets current dir
chdir(FORUMPATH); // changes to the forum dir
require_once(FORUMPATH .'/global.php'); // loads up vb functions
chdir ($curdir); // changes back to the directory
2. Another question is why not use the require_once directly ?
Regards,
Adrian
|
Have a look through login.php. You will need to replicate those processes. You cannot include global.php directly because global.php includes other files, those includes will break because of the paths if you don't change to the correct directory.