세션 시작 방식을 Session 클래스를 이용하도록 변경
This commit is contained in:
1 parent
0b584c7b0d
commit
3ea95da4a6
6 files changed
+80
-70
No files matched your search
+10
-8
@@ -3,15 +3,17 @@ namespace sammo;
|
||||
|
||||
|
||||
function CheckLogin($type=0) {
|
||||
if(!isset($_SESSION['userID'])) {
|
||||
if($type == 0) {
|
||||
header('Location: ../');
|
||||
}
|
||||
else {
|
||||
header('Location: index.php');
|
||||
}
|
||||
exit();
|
||||
//TODO: 직접해라. setReadOnly() 호출이 필요하다.
|
||||
if(Session::Instance()->loginGame()->generalID){
|
||||
return;
|
||||
}
|
||||
if($type == 0) {
|
||||
header('Location: ../');
|
||||
}
|
||||
else {
|
||||
header('Location: index.php');
|
||||
}
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user