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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.