From 7c4fefe67274ec6bcea2a2a96626490f3d70ecbe Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 27 Jul 2018 18:14:16 +0900 Subject: [PATCH] =?UTF-8?q?1=ED=84=B4=EC=97=90=20=EC=96=B4=EC=A9=8C?= =?UTF-8?q?=EB=8B=A4=20=ED=9C=B4=EC=8B=9D=ED=84=B4=EC=9D=B4=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=EB=90=98=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/preprocessing.php | 4 +--- hwe/processing.php | 9 ++++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/hwe/preprocessing.php b/hwe/preprocessing.php index 84e00242..f5505d8c 100644 --- a/hwe/preprocessing.php +++ b/hwe/preprocessing.php @@ -14,11 +14,9 @@ $turn = Util::getReq('turn', 'array_int'); $sel = Util::getReq('sel', 'int'); $commandtype = Util::getReq('commandtype', 'int'); -extractMissingPostToGlobals(); - increaseRefresh("턴입력", 1); -if(!$turn || $commandtype === null){ +if(!$turn || $commandtype === null || $sel === null){ header('location:commandlist.php'); die(); } diff --git a/hwe/processing.php b/hwe/processing.php index 21492067..45e9ab14 100644 --- a/hwe/processing.php +++ b/hwe/processing.php @@ -5,10 +5,13 @@ include "lib.php"; include "func.php"; //로그인 검사 -$commandtype = Util::getReq('commandtype', 'int', 0); -$turn = Util::getReq('turn', 'array_int', [0]); +$commandtype = Util::getReq('commandtype', 'int'); +$turn = Util::getReq('turn', 'array_int'); -extractMissingPostToGlobals(); +if(!$turn || $commandtype === null){ + header('location:commandlist.php'); + die(); +} $session = Session::requireGameLogin()->setReadOnly();