spdwrench Posted October 24, 2007 Share Posted October 24, 2007 ok I am running a php dating site.... I have had alot of trouble integrating it to autologin to phpbb when I go from http://abmatch.com into http://abmatch.com/phpBB3 how can I pass the username and password into the file http://abmatch.com/phpBB3/index.php from the file http://abmatch.com/index.php?? I need to safely pass the username and password so I can log the user into the bulletin board please help I have been trying to include the phpbb functions into my site but doesnt work Paul Quote Link to comment https://forums.phpfreaks.com/topic/74603-how-can-i-safely-pass-a-password/ Share on other sites More sharing options...
spdwrench Posted October 24, 2007 Author Share Posted October 24, 2007 for example if I wanted to retrieve a variable called $name from http://abmatch.com/index.php when I load http://abmatch.com/phpBB3/index.php how can I retrieve this variable? Paul Quote Link to comment https://forums.phpfreaks.com/topic/74603-how-can-i-safely-pass-a-password/#findComment-377057 Share on other sites More sharing options...
freakus_maximus Posted October 24, 2007 Share Posted October 24, 2007 I use to do this with phpBB2 to pull in the user name. Not sure something like this will work with phpBB3 since I moved away from using phpBB. session_start(); define('IN_PHPBB', true); $phpbb_root_path = '../sitename/phpBB2/'; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); // // Start session management // $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); // // End session management // $username = $userdata['username']; I only used this to retrieve default a for a drop down box (if you were logged in your name would show as the default selected instead of the first alpha name in the list). FYI - I pulled that from the phpBB support site. Should be able to find something similar if this doesnt help. Quote Link to comment https://forums.phpfreaks.com/topic/74603-how-can-i-safely-pass-a-password/#findComment-377073 Share on other sites More sharing options...
spdwrench Posted October 24, 2007 Author Share Posted October 24, 2007 im actually trying to pull a variable into phpBB3 not from phpBB3 thanks Paul I need to pull from http://abmatch.com/index.php into http://abmatch.com/phpBB3/index.php Quote Link to comment https://forums.phpfreaks.com/topic/74603-how-can-i-safely-pass-a-password/#findComment-377090 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.