Session 클래스 수정.
- Session클래스 내에서 global setter, getter 재정의 - Session클래스에서 static 함수로 getUserID, getUserGrade 재정의 - 내부 서버에서 getUserID, getUserGrade를 쓰던 것 Session 클래스로 통일 - SESSION.php가 requireLogin 기능을 수행하던것을 Session의 static 함수로 통합
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ namespace sammo;
|
||||
|
||||
|
||||
function CheckLogin($type=0) {
|
||||
if(!isset($_SESSION['noMember'])) {
|
||||
if(!isset($_SESSION['userID'])) {
|
||||
if($type == 0) {
|
||||
header('Location: ../');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user