diff --git a/hwe/css/msg.css b/hwe/css/msg.css
index dc21a268..aaeff82a 100644
--- a/hwe/css/msg.css
+++ b/hwe/css/msg.css
@@ -13,12 +13,12 @@
height:1370px;
position:relative;
}
-
+/*
#message_board section{
overflow-y:auto;
overflow-x:hidden;
}
-
+*/
.msg_plate{
width:100%;
outline-style:solid;
@@ -125,7 +125,7 @@
outline-width:1px;
outline-color: gray;
}
-
+/*
.board_side{
position:absolute;
height:1370px;
@@ -141,7 +141,7 @@
.board_side > div{
height: 1.2em;
}
-
+*/
.msg_invalid{
color:rgba(255,255,255,0.5);
}
diff --git a/hwe/index.php b/hwe/index.php
index f50bf567..fed45210 100644
--- a/hwe/index.php
+++ b/hwe/index.php
@@ -1,4 +1,5 @@
isGameLoggedIn()){
+if (!$session->isGameLoggedIn()) {
header('Location:..');
die();
}
@@ -41,8 +42,8 @@ $gameStor->cacheAll(true);
if ($me['newmsg'] == 1 || $me['newvote'] == 1) {
$db->update('general', [
- 'newmsg'=>0,
- 'newvote'=>0
+ 'newmsg' => 0,
+ 'newvote' => 0
], 'owner=%i', $userID);
}
@@ -59,7 +60,7 @@ $generalObj->setRawCity($db->queryFirstRow('SELECT * FROM city WHERE city = %i',
$scenario = $gameStor->scenario_text;
$nationID = $generalObj->getNationID();
-if($nationID){
+if ($nationID) {
$nationStor = KVStorage::getStorage($db, $nationID, 'nation_env');
$nationStor->cacheAll();
}
@@ -79,7 +80,7 @@ if ($gameStor->fiction == 0) {
}
if ($gameStor->npcmode == 0) {
$npcmode = "불가능";
-} else if($gameStor->npcmode == 1){
+} else if ($gameStor->npcmode == 1) {
$npcmode = "가능";
$valid = 1;
} else {
@@ -89,285 +90,273 @@ $color = "cyan";
$mapTheme = $gameStor->map_theme;
$serverName = UniqueConst::$serverName;
$serverCnt = $gameStor->server_cnt;
+
+$auctionCount = $db->queryFirstField('SELECT count(`no`) FROM auction');
?>
-
-=$serverName?>: 메인
-
-
-
-=WebUtil::printJS('../d_shared/common_path.js')?>
-=WebUtil::printJS('dist_js/vendors.js')?>
-=WebUtil::printJS('d_shared/base_map.js')?>
-=WebUtil::printJS('dist_js/main.js')?>
-
-=WebUtil::printCSS('../e_lib/bootstrap.min.css')?>
-=WebUtil::printCSS('../d_shared/common.css')?>
-=WebUtil::printCSS('css/common.css')?>
-=WebUtil::printCSS('css/main.css')?>
-=WebUtil::printCSS('css/map.css')?>
-=WebUtil::printCSS('css/msg.css')?>
-
-
+
+ = $serverName ?>: 메인
+
+
+
+ = WebUtil::printJS('../d_shared/common_path.js') ?>
+ = WebUtil::printJS('dist_js/vendors.js') ?>
+ = WebUtil::printJS('d_shared/base_map.js') ?>
+ = WebUtil::printJS('dist_js/main.js') ?>
+
+ = WebUtil::printCSS('../e_lib/bootstrap.min.css') ?>
+ = WebUtil::printCSS('../d_shared/common.css') ?>
+ = WebUtil::printCSS('css/common.css') ?>
+ = WebUtil::printCSS('css/main.css') ?>
+ = WebUtil::printCSS('css/map.css') ?>
+ = WebUtil::printCSS('css/msg.css') ?>
+
+
+
-
-
=allButton($gameStor->npcmode==1)?>
-
-
- | 삼국지 모의전투 HiDCHe =$serverName.$serverCnt?>기 (=$scenario?>) |
-
-
-
- | >=$scenario?> |
- >NPC수 : =$extend?> |
- >NPC상성 : =$fiction?> |
- >NPC선택 : =$npcmode?> |
-
-
-
-
- | =info(2)?> |
- 전체 접속자 수 : =$gameStor->online_user_cnt?> 명 |
- 턴당 갱신횟수 : =$gameStor->conlimit?>회 |
- =info(3)?> |
-
-
- |
-동작 시각: ".substr($gameStor->turntime, 5, 14)."";
-} else {
- echo "동작 시각: ".substr($gameStor->turntime, 5, 14)."";
-}
-
-echo "
- |
-
-";
-
-if ($gameStor->tournament == 0) {
- echo "현재 토너먼트 경기 없음";
-} else {
- switch ($gameStor->tnmt_type) {
- case 0: $str = "전력전"; break;
- case 1: $str = "통솔전"; break;
- case 2: $str = "일기토"; break;
- case 3: $str = "설전"; break;
- }
- $str2 = getTournament($gameStor->tournament);
- $str3 = getTournamentTime();
- echo "";
-}
-
-echo "
- |
-
-";
-
-$auctionCount = $db->queryFirstField('SELECT count(`no`) FROM auction');
-if ($auctionCount > 0) {
- echo "";
-} else {
- echo "진행중 거래 없음";
-}
-
-echo "
- |
-
-";
-
-$vote = $gameStor->vote?:[''];
-$vote_title = Tag2Code($gameStor->vote_title??'-');
-if ($vote[0] == "") {
- echo "진행중 설문 없음";
-} else {
- echo "";
-}
-
-
-echo "
- |
-
";
-?>
- | 접속중인 국가: =$gameStor->online_nation?> |
- | 운영자 메세지 : =$gameStor->msg?> |
- 【 국가방침 】 =nationMsg($generalObj)?> |
- | 【 접속자 】=onlinegen($generalObj)?> |
-userGrade >= 5) {
-?>
- |
-
-
-
-
-
-
-
- |
-userGrade == 4){
- ?>
- |
-
- |
-
-
-
-
-
-
- |
- |
-
- | =commandButton()?> |
-
-
-
- | 장수 동향 |
- 개인 기록 |
-
-
- | =formatHistoryToHTML(getGlobalActionLogRecent(15))?> |
- =formatHistoryToHTML(getGeneralActionLogRecent($me['no'], 15))?> |
-
- | 중원 정세 |
- | =formatHistoryToHTML(getGlobalHistoryLogRecent(15))?> |
-
-
-develcost*5;
- MessageBox("설문조사에 참여하시면 금{$develcost}과 유니크템을 드립니다! (우측 상단 설문조사 메뉴)");
-}
-?>
+
+
+
+ 내용 없이 '서신전달&갱신'을 누르면 메세지창이 갱신됩니다.
+
+ = allButton($gameStor->npcmode == 1) ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ = allButton($gameStor->npcmode == 1) ?>= banner() ?>
+
+ develcost * 5;
+ MessageBox("설문조사에 참여하시면 금{$develcost}과 유니크템을 드립니다! (우측 상단 설문조사 메뉴)");
+ }
+ ?>
-
+
+
\ No newline at end of file