示例#1
0
 function __construct()
 {
     // clear messages and errors
     classModel::$errors = classModel::$messages = array();
     // set logout link
     authModel::$logoutLink = $this->makeURI(array("controller" => "auth", "action" => "logout"));
     // check logining
     if (!authModel::is_Authorized()) {
         header("Location: " . $this->makeURI(array("controller" => "auth")));
     } else {
         authModel::$userData = classModel::getSession("userData");
     }
     // create top menu
     self::createTopMenu();
 }