페이지 리다이렉트 방식 변경

<script>location.replace</script>에서 PHP redirect header를 직접 이용하는 방식으로.
This commit is contained in:
2018-04-11 02:14:03 +09:00
parent 2b3efd0924
commit 22f1f3c227
34 changed files with 100 additions and 348 deletions
+3 -4
View File
@@ -11,8 +11,8 @@ $session = Session::requireGameLogin()->setReadOnly();
$userID = Session::getUserID();
if($session->userGrade < 5) {
//echo "<script>location.replace('_admin5.php');</script>";
echo '_admin5.php';//TODO:debug all and replace
header('location:_admin5.php');
die();
}
$db = DB::db();
@@ -34,7 +34,6 @@ switch($btn) {
break;
}
//echo "<script>location.replace('_admin5.php');</script>";
echo '_admin5.php';//TODO:debug all and replace
header('location:_admin5.php');