From: <mar...@us...> - 2005-03-26 00:58:08
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1008 Modified Files: Tag: BRANCH-1-8 tiki-login.php Log Message: backporting mose's fix from 1.9 to this error page when no user Index: tiki-login.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-login.php,v retrieving revision 1.19.2.10 retrieving revision 1.19.2.11 diff -u -d -r1.19.2.10 -r1.19.2.11 --- tiki-login.php 16 Mar 2005 13:02:58 -0000 1.19.2.10 +++ tiki-login.php 26 Mar 2005 00:57:59 -0000 1.19.2.11 @@ -12,10 +12,15 @@ $bypass_siteclose_check = 'y'; require_once('tiki-setup.php'); +if (!(isset($_REQUEST['user']) or isset($_REQUEST['username']))) { + header("Location: tiki-login_scr.php"); + die; +} + /* if (!isset($_REQUEST["login"])) { header("location: $HTTP_REFERER"); - die; + die; } */ @@ -27,7 +32,7 @@ die; } } - + //Remember where user is logging in from and send them back later; using session variable for those of us who use WebISO services if (!(isset($_SESSION['loginfrom']))) { if (isset($_SERVER['HTTP_REFERER'])) { @@ -93,7 +98,7 @@ // if ($pass == 'admin') { // $isvalid = true; // $userlib->add_user('admin', 'admin', 'none'); -// } +// } //} else { // Verify user is valid |