페이지 리다이렉트 방식 변경
<script>location.replace</script>에서 PHP redirect header를 직접 이용하는 방식으로.
This commit is contained in:
@@ -17,7 +17,7 @@ $commandtype = Util::getReq('commandtype', 'int');
|
||||
increaseRefresh("턴입력", 1);
|
||||
|
||||
if(!$turn || $commandtype === null){
|
||||
header('location:index.php');
|
||||
header('location:./');
|
||||
die();
|
||||
}
|
||||
|
||||
@@ -31,8 +31,7 @@ $me = MYDB_fetch_array($result);
|
||||
|
||||
$con = checkLimit($me['con'], $admin['conlimit']);
|
||||
if($con >= 2) {
|
||||
//echo "<script>window.top.main.location.replace('index.php');</script>";
|
||||
echo 'index.php';//TODO:debug all and replace
|
||||
header('location:./');
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user