diff --git a/hwe/b_chiefboard.php b/hwe/b_chiefboard.php
deleted file mode 100644
index ac986c79..00000000
--- a/hwe/b_chiefboard.php
+++ /dev/null
@@ -1,82 +0,0 @@
-setReadOnly();
-$userID = Session::getUserID();
-
-$db = DB::db();
-$connect=$db->get();
-
-increaseRefresh("기밀실", 1);
-
-$query = "select no,nation,level from general where owner='{$userID}'";
-$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
-$me = MYDB_fetch_array($result);
-
-if($me['level'] < 5) {
- echo "수뇌부가 아닙니다.";
- exit();
-}
-
-?>
-
-
-
-=UniqueConst::$serverName?>: 기밀실
-
-
-
-=WebUtil::printJS('../e_lib/jquery-3.3.1.min.js')?>
-=WebUtil::printJS('../e_lib/bootstrap.bundle.min.js')?>
-=WebUtil::printJS('js/common.js')?>
-=WebUtil::printCSS('../e_lib/bootstrap.min.css')?>
-=WebUtil::printCSS('../d_shared/common.css')?>
-=WebUtil::printCSS('css/common.css')?>
-
-
-
-
-
-
- 기 밀 실 =backButton()?> |
-
-
-
-
-
-
- | =backButton()?> |
- | =banner()?> |
-
-
-
-
-
diff --git a/hwe/b_nationboard.php b/hwe/b_nationboard.php
deleted file mode 100644
index b78b4743..00000000
--- a/hwe/b_nationboard.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setReadOnly();
-$userID = Session::getUserID();
-
-$db = DB::db();
-$connect=$db->get();
-
-increaseRefresh("회의실", 1);
-
-$query = "select no,nation from general where owner='{$userID}'";
-$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
-$me = MYDB_fetch_array($result);
-
-?>
-
-
-
-=UniqueConst::$serverName?>: 회의실
-
-
-
-=WebUtil::printJS('../e_lib/jquery-3.3.1.min.js')?>
-=WebUtil::printJS('../e_lib/bootstrap.bundle.min.js')?>
-=WebUtil::printJS('js/common.js')?>
-=WebUtil::printCSS('../e_lib/bootstrap.min.css')?>
-=WebUtil::printCSS('../d_shared/common.css')?>
-=WebUtil::printCSS('css/common.css')?>
-
-
-
-
-
-
-
-
-
-
- | =backButton()?> |
- | =banner()?> |
-
-
-
-
-
diff --git a/hwe/c_chiefboard.php b/hwe/c_chiefboard.php
deleted file mode 100644
index 26e5f8ab..00000000
--- a/hwe/c_chiefboard.php
+++ /dev/null
@@ -1,58 +0,0 @@
-setReadOnly();
-$userID = Session::getUserID();
-
-$db = DB::db();
-$connect=$db->get();
-
-if (getBlockLevel() == 1 || getBlockLevel() == 3) {
- header('location:b_chiefboard.php');
- die();
-}
-
-$query = "select no,nation from general where owner='{$userID}'";
-$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
-$me = MYDB_fetch_array($result);
-
-$title = str_replace("|", " ", $title);
-$msg = str_replace("|", " ", $msg);
-$reply = str_replace("|", " ", $reply);
-$title = trim($title);
-$msg = trim($msg);
-$reply = trim($reply);
-
-$nation = getNation($me['nation']);
-
-//새글 추가시
-if($num == -1 && $title != "" && $msg != "") {
- $num = $nation['coreindex'] + 1;
- if($num >= 20) { $num = 0; }
- $msg = $title."|".$msg;
- $msg = addslashes(SQ2DQ($msg));
- $date = date('Y-m-d H:i:s');
- $query = "update nation set coreboard{$num}='$msg',coreboard{$num}_who='{$me['no']}',coreboard{$num}_when='$date' where nation='{$me['nation']}'";
- MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
- $query = "update nation set coreindex='$num' where nation='{$me['nation']}'";
- MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
-//$num에 댓글시
-} elseif($num >= 0 && $reply != "") {
- $newmsg = $nation["coreboard{$num}"]."|".$me['no']."|".$reply;
- $newmsg = addslashes(SQ2DQ($newmsg));
-
- $query = "update nation set coreboard{$num}='$newmsg' where nation='{$me['nation']}'";
- MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
-}
-
-header('location:b_chiefboard.php');
\ No newline at end of file
diff --git a/hwe/c_nationboard.php b/hwe/c_nationboard.php
deleted file mode 100644
index 032a0dd5..00000000
--- a/hwe/c_nationboard.php
+++ /dev/null
@@ -1,54 +0,0 @@
-setReadOnly();
-$userID = Session::getUserID();
-
-$db = DB::db();
-$connect=$db->get();
-
-if(getBlockLevel() != 1 && getBlockLevel() != 3) {
- $query = "select no,nation from general where owner='{$userID}'";
- $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
- $me = MYDB_fetch_array($result);
-
- $title = str_replace("|", " ", $title);
- $msg = str_replace("|", " ", $msg);
- $reply = str_replace("|", " ", $reply);
- $title = trim($title);
- $msg = trim($msg);
- $reply = trim($reply);
-
- $nation = getNation($me['nation']);
-
- //새글 추가시
- if($num == -1 && $title != "" && $msg != "") {
- $num = $nation['boardindex'] + 1;
- if($num >= 20) { $num = 0; }
- $msg = $title."|".$msg;
- $msg = addslashes(SQ2DQ($msg));
- $date = date('Y-m-d H:i:s');
- $query = "update nation set board{$num}='$msg',board{$num}_who='{$me['no']}',board{$num}_when='$date' where nation='{$me['nation']}'";
- MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
- $query = "update nation set boardindex='$num' where nation='{$me['nation']}'";
- MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
- //$num에 댓글시
- } elseif($num >= 0 && $reply != "") {
- $newmsg = $nation["board{$num}"]."|".$me['no']."|".$reply;
- $newmsg = addslashes(SQ2DQ($newmsg));
-
- $query = "update nation set board{$num}='$newmsg' where nation='{$me['nation']}'";
- MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
- }
-}
-
-header('location:b_nationboard.php');
diff --git a/hwe/func.php b/hwe/func.php
index 98526f78..926ad303 100644
--- a/hwe/func.php
+++ b/hwe/func.php
@@ -1183,59 +1183,6 @@ function nationMsg() {
return $msg?:'';
}
-function msgprint($msg, $name, $picture, $imgsvr, $when, $num, $type) {
- $db = DB::db();
- $connect=$db->get();
-
- $message = explode('|', $msg);
- $count = (count($message) - 2)/2;
- $message[0] = Tag2Code($message[0]);
- $message[1] = Tag2Code($message[1]);
-// $message[0] = str_replace("\n", "
", $message[0]);
-// $message[1] = str_replace("\n", "
", $message[1]);
-
- if($type == 0) { $board = "c_nationboard.php"; }
- else { $board = "c_chiefboard.php"; }
-
- $imageTemp = GetImageURL($imgsvr);
- echo "
-
-
";
-}
-
function banner() {
return sprintf(
diff --git a/hwe/sql/schema.sql b/hwe/sql/schema.sql
index 31cf8e53..a4ec9dbe 100644
--- a/hwe/sql/schema.sql
+++ b/hwe/sql/schema.sql
@@ -206,128 +206,6 @@ CREATE TABLE `nation` (
`level` INT(1) NULL DEFAULT '0',
`type` INT(2) NULL DEFAULT '0',
`history` MEDIUMTEXT NULL DEFAULT '',
- `board0` TEXT NULL DEFAULT '',
- `board0_who` INT(6) NULL DEFAULT '0',
- `board0_when` DATETIME NULL DEFAULT NULL,
- `board1` TEXT NULL DEFAULT '',
- `board1_who` INT(6) NULL DEFAULT '0',
- `board1_when` DATETIME NULL DEFAULT NULL,
- `board2` TEXT NULL DEFAULT '',
- `board2_who` INT(6) NULL DEFAULT '0',
- `board2_when` DATETIME NULL DEFAULT NULL,
- `board3` TEXT NULL DEFAULT '',
- `board3_who` INT(6) NULL DEFAULT '0',
- `board3_when` DATETIME NULL DEFAULT NULL,
- `board4` TEXT NULL DEFAULT '',
- `board4_who` INT(6) NULL DEFAULT '0',
- `board4_when` DATETIME NULL DEFAULT NULL,
- `board5` TEXT NULL DEFAULT '',
- `board5_who` INT(6) NULL DEFAULT '0',
- `board5_when` DATETIME NULL DEFAULT NULL,
- `board6` TEXT NULL DEFAULT '',
- `board6_who` INT(6) NULL DEFAULT '0',
- `board6_when` DATETIME NULL DEFAULT NULL,
- `board7` TEXT NULL DEFAULT '',
- `board7_who` INT(6) NULL DEFAULT '0',
- `board7_when` DATETIME NULL DEFAULT NULL,
- `board8` TEXT NULL DEFAULT '',
- `board8_who` INT(6) NULL DEFAULT '0',
- `board8_when` DATETIME NULL DEFAULT NULL,
- `board9` TEXT NULL DEFAULT '',
- `board9_who` INT(6) NULL DEFAULT '0',
- `board9_when` DATETIME NULL DEFAULT NULL,
- `board10` TEXT NULL DEFAULT '',
- `board10_who` INT(6) NULL DEFAULT '0',
- `board10_when` DATETIME NULL DEFAULT NULL,
- `board11` TEXT NULL DEFAULT '',
- `board11_who` INT(6) NULL DEFAULT '0',
- `board11_when` DATETIME NULL DEFAULT NULL,
- `board12` TEXT NULL DEFAULT '',
- `board12_who` INT(6) NULL DEFAULT '0',
- `board12_when` DATETIME NULL DEFAULT NULL,
- `board13` TEXT NULL DEFAULT '',
- `board13_who` INT(6) NULL DEFAULT '0',
- `board13_when` DATETIME NULL DEFAULT NULL,
- `board14` TEXT NULL DEFAULT '',
- `board14_who` INT(6) NULL DEFAULT '0',
- `board14_when` DATETIME NULL DEFAULT NULL,
- `board15` TEXT NULL DEFAULT '',
- `board15_who` INT(6) NULL DEFAULT '0',
- `board15_when` DATETIME NULL DEFAULT NULL,
- `board16` TEXT NULL DEFAULT '',
- `board16_who` INT(6) NULL DEFAULT '0',
- `board16_when` DATETIME NULL DEFAULT NULL,
- `board17` TEXT NULL DEFAULT '',
- `board17_who` INT(6) NULL DEFAULT '0',
- `board17_when` DATETIME NULL DEFAULT NULL,
- `board18` TEXT NULL DEFAULT '',
- `board18_who` INT(6) NULL DEFAULT '0',
- `board18_when` DATETIME NULL DEFAULT NULL,
- `board19` TEXT NULL DEFAULT '',
- `board19_who` INT(6) NULL DEFAULT '0',
- `board19_when` DATETIME NULL DEFAULT NULL,
- `coreboard0` TEXT NULL DEFAULT '',
- `coreboard0_who` INT(6) NULL DEFAULT '0',
- `coreboard0_when` DATETIME NULL DEFAULT NULL,
- `coreboard1` TEXT NULL DEFAULT '',
- `coreboard1_who` INT(6) NULL DEFAULT '0',
- `coreboard1_when` DATETIME NULL DEFAULT NULL,
- `coreboard2` TEXT NULL DEFAULT '',
- `coreboard2_who` INT(6) NULL DEFAULT '0',
- `coreboard2_when` DATETIME NULL DEFAULT NULL,
- `coreboard3` TEXT NULL DEFAULT '',
- `coreboard3_who` INT(6) NULL DEFAULT '0',
- `coreboard3_when` DATETIME NULL DEFAULT NULL,
- `coreboard4` TEXT NULL DEFAULT '',
- `coreboard4_who` INT(6) NULL DEFAULT '0',
- `coreboard4_when` DATETIME NULL DEFAULT NULL,
- `coreboard5` TEXT NULL DEFAULT '',
- `coreboard5_who` INT(6) NULL DEFAULT '0',
- `coreboard5_when` DATETIME NULL DEFAULT NULL,
- `coreboard6` TEXT NULL DEFAULT '',
- `coreboard6_who` INT(6) NULL DEFAULT '0',
- `coreboard6_when` DATETIME NULL DEFAULT NULL,
- `coreboard7` TEXT NULL DEFAULT '',
- `coreboard7_who` INT(6) NULL DEFAULT '0',
- `coreboard7_when` DATETIME NULL DEFAULT NULL,
- `coreboard8` TEXT NULL DEFAULT '',
- `coreboard8_who` INT(6) NULL DEFAULT '0',
- `coreboard8_when` DATETIME NULL DEFAULT NULL,
- `coreboard9` TEXT NULL DEFAULT '',
- `coreboard9_who` INT(6) NULL DEFAULT '0',
- `coreboard9_when` DATETIME NULL DEFAULT NULL,
- `coreboard10` TEXT NULL DEFAULT '',
- `coreboard10_who` INT(6) NULL DEFAULT '0',
- `coreboard10_when` DATETIME NULL DEFAULT NULL,
- `coreboard11` TEXT NULL DEFAULT '',
- `coreboard11_who` INT(6) NULL DEFAULT '0',
- `coreboard11_when` DATETIME NULL DEFAULT NULL,
- `coreboard12` TEXT NULL DEFAULT '',
- `coreboard12_who` INT(6) NULL DEFAULT '0',
- `coreboard12_when` DATETIME NULL DEFAULT NULL,
- `coreboard13` TEXT NULL DEFAULT '',
- `coreboard13_who` INT(6) NULL DEFAULT '0',
- `coreboard13_when` DATETIME NULL DEFAULT NULL,
- `coreboard14` TEXT NULL DEFAULT '',
- `coreboard14_who` INT(6) NULL DEFAULT '0',
- `coreboard14_when` DATETIME NULL DEFAULT NULL,
- `coreboard15` TEXT NULL DEFAULT '',
- `coreboard15_who` INT(6) NULL DEFAULT '0',
- `coreboard15_when` DATETIME NULL DEFAULT NULL,
- `coreboard16` TEXT NULL DEFAULT '',
- `coreboard16_who` INT(6) NULL DEFAULT '0',
- `coreboard16_when` DATETIME NULL DEFAULT NULL,
- `coreboard17` TEXT NULL DEFAULT '',
- `coreboard17_who` INT(6) NULL DEFAULT '0',
- `coreboard17_when` DATETIME NULL DEFAULT NULL,
- `coreboard18` TEXT NULL DEFAULT '',
- `coreboard18_who` INT(6) NULL DEFAULT '0',
- `coreboard18_when` DATETIME NULL DEFAULT NULL,
- `coreboard19` TEXT NULL DEFAULT '',
- `coreboard19_who` INT(6) NULL DEFAULT '0',
- `coreboard19_when` DATETIME NULL DEFAULT NULL,
- `boardindex` INT(2) NULL DEFAULT '19',
- `coreindex` INT(2) NULL DEFAULT '19',
`l12term` INT(4) NULL DEFAULT '0',
`l11term` INT(4) NULL DEFAULT '0',
`l10term` INT(4) NULL DEFAULT '0',
diff --git a/hwe/templates/commandButton.php b/hwe/templates/commandButton.php
index c90ee82a..4b0c5cb8 100644
--- a/hwe/templates/commandButton.php
+++ b/hwe/templates/commandButton.php
@@ -1,7 +1,7 @@