示例#1
0
文件: Auth.php 项目: 40min/testreg
 /**
  * Check what user authorized, if not -- redirect to main page
  *
  */
 public static function check()
 {
     if (!self::isAuthorized()) {
         \Router::reRoute(SITE_PATH);
     }
 }