세션 시작 방식을 Session 클래스를 이용하도록 변경
This commit is contained in:
@@ -4,15 +4,18 @@ namespace sammo;
|
||||
include "lib.php";
|
||||
include "func.php";
|
||||
//로그인 검사
|
||||
CheckLogin();
|
||||
$connect = dbConn();
|
||||
$session = Session::requireLogin()->loginGame();
|
||||
|
||||
if(Session::getUserGrade() < 5) {
|
||||
//echo "<script>location.replace('_admin2.php');</script>";
|
||||
echo '_admin2.php';//TODO:debug all and replace
|
||||
if($session->userGrade < 5) {
|
||||
header('location:_admin2.php');
|
||||
}
|
||||
|
||||
$generalID = getGeneralID();
|
||||
$generalID = $session->generalID;
|
||||
if(!$generalID){
|
||||
header('location:_admin2.php');
|
||||
}
|
||||
|
||||
$connect = dbConn();
|
||||
|
||||
switch($btn) {
|
||||
case "전체 접속허용":
|
||||
|
||||
Reference in New Issue
Block a user