tui-editor와 새 게시판 준비

This commit is contained in:
2019-01-17 02:54:58 +09:00
parent a37715315d
commit 74d5f021cd
10 changed files with 142 additions and 5 deletions
+5 -3
View File
@@ -13,7 +13,7 @@ $gameStor = KVStorage::getStorage($db, 'game_env');
increaseRefresh("내무부", 1);
$me = $db->queryFirstRow('SELECT no, nation, level, permission, con, turntime, belong, penalty FROM general WHERE owner=%i', $userID);
$nation = $db->queryFirstRow('SELECT secretlimit, msg, scoutmsg FROM nation WHERE nation = %i', $me['nation']);
$con = checkLimit($me['con']);
if ($con >= 2) {
@@ -22,7 +22,9 @@ if ($con >= 2) {
}
$permission = checkSecretPermission($me);
if ($permission == 0) {
if ($permission < 1) {
echo "권한이 부족합니다. 수뇌부가 아니거나 사관년도가 부족합니다.";
exit();
}
}
$nation = $db->queryFirstRow('SELECT secretlimit, msg, scoutmsg FROM nation WHERE nation = %i', $me['nation']);