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

<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
+2 -5
View File
@@ -56,8 +56,7 @@ else if($btn == "댓글" && $comment != "") {
}
if($session->userGrade < 5){
echo "<!--<script>location.replace('a_vote.php');</script>"; //TODO:debug all and replace -->
echo 'a_vote.php ';
header('location:a_vote.php');
die();
}
@@ -96,7 +95,5 @@ if($btn == "수정") {
$query = "update game set voteopen=2";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
}
?>
<!--<script>location.replace('a_vote.php');</script>"; //TODO:debug all and replace -->
a_vote.php
header('location:a_vote.php');