diff --git a/hwe/a_kingdomList.php b/hwe/a_kingdomList.php index 412d428c..5f29ce74 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) { diff --git a/hwe/b_battleCenter.php b/hwe/b_battleCenter.php index 34232440..f2f65da4 100644 --- a/hwe/b_battleCenter.php +++ b/hwe/b_battleCenter.php @@ -33,7 +33,7 @@ $query = "select nation from general where no='$gen'"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $general = MYDB_fetch_array($result); -$query = "select no,nation,level,con,turntime,belong from general where owner='{$userID}'"; +$query = "select no,nation,level,con,turntime,belong,permission,penalty from general where owner='{$userID}'"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $me = MYDB_fetch_array($result); @@ -161,7 +161,7 @@ for ($i=0; $i < $gencount; $i++) { - 1 || $meLevel >= 5): ?> + 1 || $permission >= 2): ?> 개인 기록   diff --git a/hwe/b_dipcenter.php b/hwe/b_dipcenter.php index 482b37af..f16a900b 100644 --- a/hwe/b_dipcenter.php +++ b/hwe/b_dipcenter.php @@ -13,7 +13,7 @@ $connect=$db->get(); increaseRefresh("내무부", 1); -$me = $db->queryFirstRow('SELECT no, nation, level, con, turntime, belong FROM general WHERE owner=%i', $userID); +$me = $db->queryFirstRow('SELECT no, nation, level, con, turntime, belong, permission, penalty FROM general WHERE owner=%i', $userID); $nation = $db->queryFirstRow('SELECT msg, scoutmsg FROM nation WHERE nation = %i', $me['nation']); diff --git a/hwe/b_genList.php b/hwe/b_genList.php index ce977a25..a28b48b3 100644 --- a/hwe/b_genList.php +++ b/hwe/b_genList.php @@ -19,7 +19,7 @@ $connect=$db->get(); increaseRefresh("암행부", 1); -$query = "select no,nation,level,con,turntime,belong from general where owner='{$userID}'"; +$query = "select no,nation,level,con,turntime,belong,permission,penalty from general where owner='{$userID}'"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $me = MYDB_fetch_array($result); diff --git a/hwe/b_myBossInfo.php b/hwe/b_myBossInfo.php index 8fcdb324..fcc24014 100644 --- a/hwe/b_myBossInfo.php +++ b/hwe/b_myBossInfo.php @@ -467,7 +467,7 @@ if($meLevel >= 5) {
- 시 중 임 명 + 종 사 임 명 -
- -
+ + + + + + + + + + + +
새 게시물 작성
제목
내용 + +
- +
- +

diff --git a/hwe/t_diplomacy.php b/hwe/t_diplomacy.php index d62b5d8c..3091cf4b 100644 --- a/hwe/t_diplomacy.php +++ b/hwe/t_diplomacy.php @@ -36,6 +36,8 @@ if ($permission < 1) { + + @@ -48,27 +50,77 @@ var permissionLevel = ; // + - + + + +
외 교 부
- +
-
+ + + + + +

- +
\ No newline at end of file diff --git a/hwe/templates/commandButton.php b/hwe/templates/commandButton.php index 2c32aafe..4a19707c 100644 --- a/hwe/templates/commandButton.php +++ b/hwe/templates/commandButton.php @@ -1,7 +1,7 @@