diff -r effde559e0e9 -r 0c0aa144356a inc/auth.inc.php --- a/inc/auth.inc.php Mon Mar 03 20:32:33 2008 +0000 +++ b/inc/auth.inc.php Mon Mar 10 19:15:59 2008 +0000 @@ -19,7 +19,7 @@ * along with this program. If not, see . */ -session_start(); +//session_start(); if (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] == "logout") { @@ -52,7 +52,7 @@ $_SESSION["userid"] = $rowObj["id"]; $_SESSION["name"] = $rowObj["fullname"]; $_SESSION["level"] = $rowObj["level"]; - if($_POST["authenticate"]) + if(isset($_POST["authenticate"])) { //If a user has just authenticated, redirect him to index with timestamp, so post-data gets lost. session_write_close(); @@ -117,6 +117,7 @@ function logout($msg="") { + $type = ''; if ( $msg == "" ) { $msg = _('You have logged out.'); $type = "success";