세션 시작 방식을 Session 클래스를 이용하도록 변경

This commit is contained in:
Hide_D committed 2018-04-01 00:28:55 +09:00
1 parent 0b584c7b0d
commit 3ea95da4a6
6 files changed
+80 -70

No files matched your search

+9 -6
View File
@@ -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 "전체 접속허용":