Index: trunk/kernel/startup.php =================================================================== diff -u -r259 -r268 --- trunk/kernel/startup.php (.../startup.php) (revision 259) +++ trunk/kernel/startup.php (.../startup.php) (revision 268) @@ -132,15 +132,10 @@ if (!admin_login()) { - if(!headers_sent()) - setcookie("sid"," ",time()-3600); + if( !headers_sent() ) setcookie("sid"," ",time()-3600); $objSession->Logout(); - if ($_GET['expired']) { - header("Location: ".$adminURL."/login.php?expired=1"); - } - else { - header("Location: ".$adminURL."/login.php"); - } + $url_add = isset($_GET['expired']) && $_GET['expired'] ? '?expired=1' : ''; + header("Location: ".$adminURL.'/login.php'.$url_add); die(); //require_once($pathtoroot."admin/login.php"); }