diff -r 7be4525290cc -r 2ff220cfde13 inc/auth.inc.php --- a/inc/auth.inc.php Sun Apr 22 16:27:45 2007 +0000 +++ b/inc/auth.inc.php Mon Jun 04 18:43:11 2007 +0000 @@ -1,27 +1,5 @@ trancer nl> | -// | Sjeemz sjeemz nl> | -// +--------------------------------------------------------------------+ - -// Filename: auth.inc.php -// Startdate: 26-10-2002 -// Description: file is supposed to validate users and check whether they are authorized. -// If they are authorized this code handles that they can access stuff. -// -// $Id: auth.inc.php,v 1.6 2003/01/13 22:08:52 azurazu Exp $ -// - session_start(); if (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] == "logout") @@ -39,7 +17,7 @@ // Check if the session hasnt expired yet. if ((isset($_SESSION["userid"])) && ($_SESSION["lastmod"] != "") && ((time() - $_SESSION["lastmod"]) > $EXPIRE)) { - logout( _('Session expired, please login again.') ); + logout( _('Session expired, please login again.'),"error"); } // If the session hasn't expired yet, give our session a fresh new timestamp. @@ -66,7 +44,7 @@ else { //Authentication failed, retry. - auth( _('Authentication failed!') ); + auth( _('Authentication failed!'),"error"); } } else @@ -79,24 +57,35 @@ * Print the login form. */ -function auth($msg="") +function auth($msg="",$type="success") { include_once('inc/header.inc.php'); - ?> -

:

- $msg\n"; - + print "
$msg
\n"; } ?> -
"> - - - - -
:
:
 
+

+ + "> + + + + + + + + + + + + + +
:
:
  + +
+