From 7408aa6b72d7514bbf49e0fb9d8f20a2709f5fdb Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 26 Jan 2019 03:40:01 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A1=B0=EC=96=B8=EC=9E=90=20=EC=9D=B8?= =?UTF-8?q?=EC=9B=90=EC=88=98=EB=A1=9C=20=EB=B3=B4=EC=97=AC=EC=A4=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/a_kingdomList.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/hwe/a_kingdomList.php b/hwe/a_kingdomList.php index c19d28aa..b05d938f 100644 --- a/hwe/a_kingdomList.php +++ b/hwe/a_kingdomList.php @@ -132,10 +132,15 @@ for($i=1; $i <= $count; $i++) { $generals = $db->query('SELECT no,nation,npc,name,level,penalty,permission FROM general WHERE nation=%i ORDER BY no ASC', $nation['nation']); $ambassadors = []; + $auditors = []; foreach($generals as $general){ - if(checkSecretPermission($general, false) == 4){ + $generalPermission = checkSecretPermission($general, false); + if($generalPermission == 4){ $ambassadors[] = $general['name']; } + else if($generalPermission == 3){ + $auditors[] = $general['name']; + } } echo " @@ -174,10 +179,11 @@ for($i=1; $i <= $count; $i++) { $l5 - 외교권자"; + 외교권자"; echo join(', ', $ambassadors); - echo " - + echo "조언자"; + echo count($auditors).'명'; + echo " "; if($nation['level'] > 0) {