Jump to content

how can I safely pass a password


spdwrench

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/74603-how-can-i-safely-pass-a-password/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.