mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
User registration works.
git-svn-id: file:///svn/phpbb/trunk@106 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -28,30 +28,30 @@ if($submit)
|
||||
{
|
||||
$userdata = get_userdata($username, $db);
|
||||
if($userdata["error"])
|
||||
{
|
||||
error_die($db, LOGIN_FAILED);
|
||||
}
|
||||
{
|
||||
error_die($db, LOGIN_FAILED);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!auth("login", $db))
|
||||
{
|
||||
error_die($db, LOGIN_FAILED);
|
||||
}
|
||||
else
|
||||
{
|
||||
$sessid = new_session($userdata[user_id], $user_ip, $session_cookie_time, $db);
|
||||
set_session_cookie($sessid, $session_cookie_time, $session_cookie, "", "", 0);
|
||||
header("Location: index.$phpEx");
|
||||
}
|
||||
}
|
||||
{
|
||||
if(!auth("login", $db))
|
||||
{
|
||||
error_die($db, LOGIN_FAILED);
|
||||
}
|
||||
else
|
||||
{
|
||||
$sessid = new_session($userdata[user_id], $user_ip, $session_cookie_time, $db);
|
||||
set_session_cookie($sessid, $session_cookie_time, $session_cookie, "", "", 0);
|
||||
header("Location: index.$phpEx");
|
||||
}
|
||||
}
|
||||
}
|
||||
else if($logout)
|
||||
{
|
||||
if($user_logged_in)
|
||||
{
|
||||
end_user_session($userdata["user_id"], $db);
|
||||
}
|
||||
header("Location: index.$phpEx");
|
||||
if($user_logged_in)
|
||||
{
|
||||
end_user_session($userdata["user_id"], $db);
|
||||
}
|
||||
header("Location: index.$phpEx");
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user