This library is developed to perform single sign on operation from Main website to PHPbb Forum.
$this->load->library('phpbb');
$this->phpbb->registerUser($uEmail,$uPassword,$uEmail,$uIP);
require_once 'path_to_file/Phpbb.php';
$obj = new Phpbb();
This function will return user information with Session id
$obj->loginUserWithoutPassword($phpbbUserId);
After successfully getting Session Id you have to pass this on forum URL
e.g.http://www.youdomain.domain/index.php?sid=longsessionidhash
This function will return user information with Session id
$obj->loginUser($username,$password,$autologin);
After successfully getting Session Id you have to pass this on forum URL
This function will destroy specific session id
$obj->logoutUser($sessioID,$userID);
Register user to PHPbb
- @param String $username User username
- @param String $password Users password
- @param String $email user email address
- @param IP $ip user current ip address
$obj->registerUser($username,$password,$email,$ip);
Returns information from the user data array.
$obj->getUserInfo($key);
Returns user status. return boolean TRUE is user is logged in, FALSE otherwise.
$obj->isLoggedIn();
Checks if the currently logged-in user is an administrator. return boolean TRUE if the currently logged-in user is an administrator, FALSE otherwise.
$obj->isAdministrator();