From ae8b94b2d70ba379a9c0638a6f90e76c4e193f4e Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 23 Apr 2019 12:03:36 +0900 Subject: [PATCH] =?UTF-8?q?redirect=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/_119_b.php | 2 +- hwe/c_dipcenter.php | 4 ++-- hwe/c_double.php | 10 +++++----- hwe/c_myBossInfo.php | 28 ++++++++++++++-------------- hwe/c_troop.php | 2 +- hwe/c_vacation.php | 2 +- hwe/c_vote.php | 4 ++-- hwe/func_command.php | 6 +++--- hwe/preprocessing.php | 2 +- hwe/processing.php | 4 ++-- hwe/turn.php | 4 ++-- hwe/turn_pop_core.php | 2 +- hwe/turn_push_core.php | 2 +- 13 files changed, 36 insertions(+), 36 deletions(-) diff --git a/hwe/_119_b.php b/hwe/_119_b.php index 1e66a2e5..4f5b7992 100644 --- a/hwe/_119_b.php +++ b/hwe/_119_b.php @@ -87,4 +87,4 @@ case "락풀기": break; } -header('Location:_119.php'); \ No newline at end of file +header('Location:_119.php', true, 303); \ No newline at end of file diff --git a/hwe/c_dipcenter.php b/hwe/c_dipcenter.php index 1e7c0b1d..d1531dac 100644 --- a/hwe/c_dipcenter.php +++ b/hwe/c_dipcenter.php @@ -23,11 +23,11 @@ $me = $db->queryFirstRow('SELECT `no`,nation,`level`,permission,penalty FROM gen //내가 수뇌부이어야함 $permission = checkSecretPermission($me); if($permission < 0){ - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } else if ($me['level'] < 5 && $permission != 4) { - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } diff --git a/hwe/c_double.php b/hwe/c_double.php index b9e3ac79..e62bfaf1 100644 --- a/hwe/c_double.php +++ b/hwe/c_double.php @@ -55,7 +55,7 @@ if($command == 46) { $query['turn'.$turnIdx] = $comStr; } $db->update('general', $query, 'owner=%i', $userID); - header('Location:./'); + header('Location:./', true, 303); die(); } @@ -82,7 +82,7 @@ if($command == 53) { $query = "update nation set {$str} where nation='{$me['nation']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } - header('location:b_chiefcenter.php'); + header('location:b_chiefcenter.php', true, 303); die(); } @@ -102,7 +102,7 @@ if($command == 61) { MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } - header('location:b_chiefcenter.php'); + header('location:b_chiefcenter.php', true, 303); die(); } @@ -126,7 +126,7 @@ if($command == 23 || $command == 24 || $command == 27 || $command == 51 || $comm $query = "update nation set {$str} where nation='{$me['nation']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } - header('location:b_chiefcenter.php'); + header('location:b_chiefcenter.php', true, 303); die(); } @@ -136,5 +136,5 @@ foreach($turn as $turnIdx){ $query['turn'.$turnIdx] = $comStr; } $db->update('general', $query, 'owner=%i', $userID); -header('Location:./'); +header('Location:./', true, 303); diff --git a/hwe/c_myBossInfo.php b/hwe/c_myBossInfo.php index ec1ff6a1..5524eb54 100644 --- a/hwe/c_myBossInfo.php +++ b/hwe/c_myBossInfo.php @@ -32,7 +32,7 @@ $ruler = MYDB_fetch_array($result); //수뇌가 아니면 아무것도 할 수 없음 if($meLevel < 5){ - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } @@ -45,18 +45,18 @@ if($btn == "임명") { } if($genlist != 0 && !$general){ - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } //임명할사람이 군주이면 불가, 내가 수뇌부이어야함, 공석아닌때는 국가가 같아야함 if($meLevel < 5 || ($genlist != 0 && $general['nation'] != $me['nation']) || ($genlist != 0 && $general['level'] == 12)) { - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } } elseif($btn == "추방") { if(!$outlist){ - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } $query = "select no,name,gold,rice,nation,troop,level,npc,picture,imgsvr,permission,penalty,belong from general where no='$outlist'"; @@ -64,33 +64,33 @@ if($btn == "임명") { $general = MYDB_fetch_array($result); if(!$general){ - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } //추방할사람이 군주이면 불가, 내가 수뇌부이어야함, 공석아닌때는 국가가 같아야함 if($general['level'] == 12 || $meLevel < 5 || ($general['nation'] != $me['nation'] && $outlist != 0)) { - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } //추방할사람이 외교권자이면 불가 $permission = checkSecretPermission($general); if($permission == 4){ - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } //NPC 부대장 추방 불가 if($general['npc'] == 5){ - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } } //나와 대상 장수는 국가가 같아야 함 if($genlist != 0 && $me['nation'] != $general['nation']){ - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); exit(); } @@ -252,7 +252,7 @@ if($btn == "추방") { pushGenLog($general, $log); pushGeneralPublicRecord($alllog, $year, $month); } - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); die(); } @@ -303,7 +303,7 @@ if($btn == "임명" && $level >= 5 && $level <= 11) { } } } - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); die(); } @@ -319,7 +319,7 @@ if($btn == "임명" && $level >= 2 && $level <= 4 && $citylist > 0) { $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $city = MYDB_fetch_array($result); if(!$city){ - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); die(); } $oldlist = $city[$genlv]; @@ -366,11 +366,11 @@ if($btn == "임명" && $level >= 2 && $level <= 4 && $citylist > 0) { } } } - header('location:b_myBossInfo.php'); + header('location:b_myBossInfo.php', true, 303); die(); } -header('location:b_myBossInfo.php'); +header('location:b_myBossInfo.php', true, 303); diff --git a/hwe/c_troop.php b/hwe/c_troop.php index 4b57e620..faed759b 100644 --- a/hwe/c_troop.php +++ b/hwe/c_troop.php @@ -63,4 +63,4 @@ if($btn == "부 대 창 설" && $name != "" && $me['troop'] == 0) { } } -header('Location:b_troop.php'); +header('Location:b_troop.php', true, 303); diff --git a/hwe/c_vacation.php b/hwe/c_vacation.php index 8c825335..f6efa0d4 100644 --- a/hwe/c_vacation.php +++ b/hwe/c_vacation.php @@ -17,5 +17,5 @@ $db->update('general', [ ], 'owner=%i', $userID); -header('location:b_myPage.php'); +header('location:b_myPage.php', true, 303); diff --git a/hwe/c_vote.php b/hwe/c_vote.php index 18ce9594..31c75941 100644 --- a/hwe/c_vote.php +++ b/hwe/c_vote.php @@ -49,7 +49,7 @@ else if($btn == "댓글" && trim($comment) != "") { } if(!$isVoteAdmin){ - header('location:a_vote.php'); + header('location:a_vote.php', true, 303); die(); } @@ -85,4 +85,4 @@ if($btn == "수정") { $gameStor->voteopen = 2; } -header('location:a_vote.php'); \ No newline at end of file +header('location:a_vote.php', true, 303); \ No newline at end of file diff --git a/hwe/func_command.php b/hwe/func_command.php index 82e5b968..1d569fd3 100644 --- a/hwe/func_command.php +++ b/hwe/func_command.php @@ -707,7 +707,7 @@ where nation='{$general['nation']}' function command_Single($turn, $command) { if(!$turn){ - header('location:commandlist.php'); + header('location:commandlist.php', true, 303); return; } @@ -722,7 +722,7 @@ function command_Single($turn, $command) { } $db->update('general', $setValues, 'owner=%i',$userID); - header('location:commandlist.php'); + header('location:commandlist.php', true, 303); } function command_Chief($turn, $command) { @@ -745,7 +745,7 @@ function command_Chief($turn, $command) { $query = "update nation set {$str} where nation='{$me['nation']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); } - header('location:b_chiefcenter.php'); + header('location:b_chiefcenter.php', true, 303); } function command_Other($turn, $commandtype) { diff --git a/hwe/preprocessing.php b/hwe/preprocessing.php index f5505d8c..3d884940 100644 --- a/hwe/preprocessing.php +++ b/hwe/preprocessing.php @@ -17,7 +17,7 @@ $commandtype = Util::getReq('commandtype', 'int'); increaseRefresh("턴입력", 1); if(!$turn || $commandtype === null || $sel === null){ - header('location:commandlist.php'); + header('location:commandlist.php', true, 303); die(); } diff --git a/hwe/processing.php b/hwe/processing.php index 40260b15..7cdf0468 100644 --- a/hwe/processing.php +++ b/hwe/processing.php @@ -9,7 +9,7 @@ $commandtype = Util::getReq('commandtype', 'int'); $turn = Util::getReq('turn', 'array_int'); if(!$turn || $commandtype === null){ - header('location:commandlist.php'); + header('location:commandlist.php', true, 303); die(); } @@ -196,7 +196,7 @@ function command_99($turn) { } } - header('location:b_chiefcenter.php'); + header('location:b_chiefcenter.php', true, 303); } function command_11($turn, $command, bool $is모병 = false) { diff --git a/hwe/turn.php b/hwe/turn.php index b1df8c37..2910641b 100644 --- a/hwe/turn.php +++ b/hwe/turn.php @@ -25,7 +25,7 @@ $myActionCnt = $db->queryFirstField('SELECT con FROM general WHERE `owner`=%i', $con = checkLimit($myActionCnt); if($con >= 2) { - header('location:commandlist.php'); + header('location:commandlist.php', true, 303); exit(); } @@ -62,4 +62,4 @@ case 2: break; } -header('location:commandlist.php'); +header('location:commandlist.php', true, 303); diff --git a/hwe/turn_pop_core.php b/hwe/turn_pop_core.php index 5148f3ec..afb2cdb4 100644 --- a/hwe/turn_pop_core.php +++ b/hwe/turn_pop_core.php @@ -16,4 +16,4 @@ $me = MYDB_fetch_array($result); updateCommand($me['no'], 2); -header('location:b_chiefcenter.php'); +header('location:b_chiefcenter.php', true, 303); diff --git a/hwe/turn_push_core.php b/hwe/turn_push_core.php index d3b8f088..04036916 100644 --- a/hwe/turn_push_core.php +++ b/hwe/turn_push_core.php @@ -16,4 +16,4 @@ $me = MYDB_fetch_array($result); backupdateCommand($me['no'], 2); -header('location:b_chiefcenter.php'); +header('location:b_chiefcenter.php', true, 303);