validateLogin()){ if(isset($_POST['uname']) && isset($_POST['passwd'])){ $lm->login($_POST['uname'], $_POST['passwd']); } } else{ if(isset($_GET['logout'])){ $lm->logout(); } if(isset($_GET['view'])){ $view=$_GET['view']; if($view!="programs" && $view!="timetable" && $view!="timetable_programs" && $view!="users" && $view!="admin"){ header("Location: ./"); } if($view=="timetable_programs" && $_SESSION['accesslevel']<1){ $view=""; } else if($view=="users" && $_SESSION['accesslevel']<2){ $view=""; } else if($view=="admin" && $_SESSION['accesslevel']<3){ $view=""; } } else{ $view=""; } //include sub include("subs/".$view.".backend.php"); //if just the backend was requested, stop here if(isset($_GET['backend'])){ //echo messages echo "
".$lang['message'][$m]."
"; echo "