From 131a6cb6c30965ca043fc1d39e1b39ec46539113 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 21 Apr 2018 23:08:51 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B1=B4=EA=B5=AD=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/preprocessing.php | 16 +--------------- hwe/processing.php | 2 +- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/hwe/preprocessing.php b/hwe/preprocessing.php index 3bc5ecb5..8f807e08 100644 --- a/hwe/preprocessing.php +++ b/hwe/preprocessing.php @@ -19,24 +19,10 @@ extractMissingPostToGlobals(); increaseRefresh("턴입력", 1); if(!$turn || $commandtype === null){ - header('location:./'); + header('location:commandlist.php'); die(); } -$query = "select conlimit from game limit 1"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -$admin = MYDB_fetch_array($result); - -$query = "select no,name,nation,con from general where owner='{$userID}'"; -$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); -$me = MYDB_fetch_array($result); - -$con = checkLimit($me['con'], $admin['conlimit']); -if($con >= 2) { - header('location:./'); - exit(); - } - $count = count($turn); for($i=0; $i < $count; $i++) { if($turn[$i] == 100 || $turn[$i] == 99 || $turn[$i] == 98) { diff --git a/hwe/processing.php b/hwe/processing.php index ff27ec54..a28bf6e5 100644 --- a/hwe/processing.php +++ b/hwe/processing.php @@ -1552,7 +1552,7 @@ function command_46($turn, $command) { continue; } - if(isset($nationcolor[$nation['color']])){ + if(!isset($nationcolor[$nation['color']])){ $nationcolor[$nation['color']] = 1; } else{