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 "
"; if(functions::isMessage()){ foreach(functions::getMessageArray() as $m){ echo "
"; echo "

".$lang['message'][$m]."

"; echo "
"; } echo "
"; } if(functions::isError()){ foreach(functions::getErrorArray() as $m){ echo "
"; echo "

".$lang['error'][$m]."

"; echo "
"; } echo "
"; } echo "
"; //clear messages functions::clearError(); functions::clearMessage(); //stop execution die(); } } $oid=0; ?> <?php echo ($view==""?$lang['index']:$lang[$view])." :: ".$config['general']['title']." - ".$config['general']['org'] ?>


"; echo "

".$lang['message'][$m]."

"; echo "
"; } echo "
"; } if(functions::isError()){ foreach(functions::getErrorArray() as $m){ echo "
"; echo "

".$lang['error'][$m]."

"; echo "
"; } echo "
"; } ?> validateLogin()): ?>
" required>
" required>

loginPrepare(); $lm->printCaptcha() ?>