die($langmessage[118]); } readsetup(); //checks if user is logged in login(); //redirects to LightNEasy.php if user is logged in and is an admin if ($_SESSION['adminlevel'] > 3) { header("Location: " . $set['homepath'] . $set['indexfile']); } require_once "./languages/lang_" . $set['language'] . ".php"; //Read menu readmenu(); switch ($_POST['submit']) { case "saveprofile": if ($_SESSION['adminlevel'] >= 2) { $message = saveprofile(); } else { $message = $langmessage[98]; } break; default: } function content($page, $count = 0) { global $langmessage, $menu, $message, $prefix, $out; $out = ""; if ($message != "") { $out .= "<div class=\"LNE_message\">" . $message . "</div>\n"; } switch ($_GET['do']) { case "search":
function profileDispatch($op) { if (isset($_POST['undo'])) { $op = 'profile'; } switch ($op) { case "profile": profile(); break; case "modprofile": modprofile(); break; case "saveprofile": saveprofile(); break; case "newavatar": newavatar(); break; case "upavatar": upavatar(); break; case "renewalpwd": renewalpwd(); break; } }