if ($_POST[panel] == "edit" || $_GET[panel] == "edit") { include_once KNIFE_PATH . "/edit.php"; } if ($_POST[panel] == "users" || $_GET[panel] == "users") { include_once KNIFE_PATH . "/users.php"; } if ($_POST[panel] == "options" || $_GET[panel] == "options") { include_once KNIFE_PATH . "/options.php"; } if ($_POST[panel] == "help" || $_GET[panel] == "help") { include_once KNIFE_PATH . "/help.php"; } if ($_POST[panel] == "logout" || $_GET[panel] == "logout") { $menus[0] = ""; # kill menu $logout = $User->logout(); # kill user $moduletitle = "Logout"; $statusmessage = "Successfully logged out."; $main_content = i18n("login_loggedout"); # # Redirect the user (hopefully) header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/" . "index.php"); } # # Surrender, insert the dashboard if (!$_GET[panel] && !$_POST[panel] or $_POST[panel] == "dashboard") { include_once KNIFE_PATH . "/dashboard.php"; } } ?>
return unescape(dc.substring(begin + prefix.length, end)); } function Allegory_Deletecookie(name, path, domain) { if (getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } </script>'; # FIXME: Not working if ($_GET[logout] == "y") { $UserDB->logout("SentHeaders"); } $UserDB->verify("headers"); if (!$UserDB->username) { require KNIFE_PATH . '/lang/' . $Settings->co[general][defaultlanguage]; echo i18n("visible_logon_noauth"); $LoginForm = ' <h1>' . i18n("login_Login") . '</h1><form id="allegory_loginform" method="post" action=""><input type="hidden" name="panel" value="dashboard" /> <p> <input class="inshort" type="text" name="username" id="login_username" /> <label for="login_username">' . i18n("login_Username") . '</label> </p> <p> <input class="inshort" type="password" name="password" id="login_password" /> <label for="login_password">' . i18n("login_Password") . '</label> </p>