1
0
mirror of https://github.com/Xkeeper0/jul.git synced 2025-07-26 17:51:57 -07:00

Merge pull request from StapleButter/master

merge pull request : fix login.php messages
This commit is contained in:
Alex (Xkeeper)
2015-12-14 10:10:55 -08:00

@@ -50,7 +50,7 @@
$msg = "Couldn't login. Either you didn't enter an existing username, or you haven't entered the right password for the username."; $msg = "Couldn't login. Either you didn't enter an existing username, or you haven't entered the right password for the username.";
} }
} }
$txt.="$tccell1>$msg<br>".redirect('index.php','return to the board',0); $txt.="$tccell1>$msg<br>".redirect('index.php','the board',0);
} }
elseif ($_POST['action']=='logout') { elseif ($_POST['action']=='logout') {
setcookie('loguserid','', time()-3600, "/", $_SERVER['SERVER_NAME'], false, true); setcookie('loguserid','', time()-3600, "/", $_SERVER['SERVER_NAME'], false, true);
@@ -58,7 +58,7 @@
// May as well unset this as well // May as well unset this as well
setcookie('logpassword','', time()-3600, "/", $_SERVER['SERVER_NAME'], false, true); setcookie('logpassword','', time()-3600, "/", $_SERVER['SERVER_NAME'], false, true);
$txt.="$tccell1> You are now logged out.<br>".redirect('index.php','return to the board',0); $txt.="$tccell1> You are now logged out.<br>".redirect('index.php','the board',0);
} }
elseif (!$_POST['action']) { elseif (!$_POST['action']) {
$ipaddr = explode('.', $_SERVER['REMOTE_ADDR']); $ipaddr = explode('.', $_SERVER['REMOTE_ADDR']);