switcher($_GET); exit; } // 辣鸡 Router if(isset($_GET['page']) && preg_match("/^[A-Za-z0-9\-\_]{1,8}$/", $_GET['page'])) { $um = new SakuraPanel\UserManager(); if($um->isLogged()) { if($_GET['page'] == "login" || $_GET['page'] == "register" || $_GET['page'] == "findpass") { exit(""); } $pages->loadPage($_GET['page']); } else { if($_GET['page'] !== "login" && $_GET['page'] !== "register" && $_GET['page'] !== "findpass") { $pages->loadPage("login"); } else { $pages->loadPage($_GET['page']); } } } else { $pages->loadPage("home"); } exit;