i am soory if I missed the solution to this problem, but it's been bothering me for a while...
I have a bridge installed
4images<->phpBB3 and after login and logout, phpBB redirects me to the page where I have been when I clicked the submit button on the login form... I am positive that phpBB redirects correctly.
I then have a script that logs the user in/out:
//
login/logout 4images user on phpBB session data
if($bbuser->data['user_id'] != ANONYMOUS && ($user_info['user_id'] == -1 || $user_info['user_name'] != $bbuser->data['username'])){
$user_exists = $site_sess->login($bbuser->data['username'], $bbuser->data['user_password'], 0, 1, false);
if ($referer = $_SERVER['HTTP_REFERER']) { //this was an attempt to fix my problem from this tipic - http://www.4homepages.de/forum/index.php?topic=22887.0
redirect($referer);
}
// if (!ereg("index.php", $url) && !ereg("login.php", $url) && !ereg("register.php", $url) && !ereg("member.php", $url)) {
// redirect($url);
// }
else {
redirect("index.php");
}
}
I am still unable to make it work correctly.... I am being redirected to the index.php all the time no matter what I do... any ideas will be much appreciated...
v@no suggested
here that I'd post here since my issue could be related to this MOD...