loginGame()->setReadOnly();
$userID = Session::getUserID();
increaseRefresh("메인", 1);
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
if (!$userID) {
header('Location:..');
die();
}
//턴 실행.
TurnExecutionHelper::executeAllCommand();
if(!$session->isGameLoggedIn()){
header('Location:..');
die();
}
$me = $db->queryFirstRow(
'SELECT no,con,turntime,newmsg,newvote,`level` from general where owner = %i',
$userID
);
//그새 사망이면
if ($me === null) {
$session->logoutGame();
header('Location: ../');
die();
}
$gameStor->cacheAll(true);
if ($me['newmsg'] == 1 || $me['newvote'] == 1) {
$db->update('general', [
'newmsg'=>0,
'newvote'=>0
], 'owner=%i', $userID);
}
$plock = $db->queryFirstField('SELECT plock FROM plock LIMIT 1');
$con = checkLimit($me['con']);
if ($con >= 2) {
printLimitMsg($me['turntime']);
exit();
}
$generalObj = General::createGeneralObjFromDB($me['no']);
$generalObj->setRawCity($db->queryFirstRow('SELECT * FROM city WHERE city = %i', $generalObj->getCityID()));
$scenario = $gameStor->scenario_text;
$valid = 0;
if ($gameStor->extended_general == 0) {
$extend = "표준";
} else {
$extend = "확장";
$valid = 1;
}
if ($gameStor->fiction == 0) {
$fiction = "사실";
} else {
$fiction = "가상";
$valid = 1;
}
if ($gameStor->npcmode == 0) {
$npcmode = "불가능";
} else {
$npcmode = "가능";
$valid = 1;
}
$color = "cyan";
$mapTheme = $gameStor->map_theme;
?>
=UniqueConst::$serverName?>: 메인
=WebUtil::printJS('../e_lib/jquery-3.3.1.min.js')?>
=WebUtil::printJS('../e_lib/jquery.redirect.js')?>
=WebUtil::printJS('../e_lib/bootstrap.bundle.min.js')?>
=WebUtil::printJS('../e_lib/moment.min.js')?>
=WebUtil::printJS('../d_shared/common_path.js')?>
=WebUtil::printJS('js/common.js')?>
=WebUtil::printJS('js/main.js')?>
=WebUtil::printJS('d_shared/base_map.js')?>
=WebUtil::printJS('js/map.js')?>
=WebUtil::printJS('js/msg.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()?>
| 삼국지 모의전투 HiDCHe (=$scenario?>) |
| >=$scenario?> |
>NPC수 : =$extend?> |
>NPC상성 : =$fiction?> |
>NPC선택 : =$npcmode?> |
| =info(2)?> |
전체 접속자 수 : =$gameStor->online?> 명 |
턴당 갱신횟수 : =$gameStor->conlimit?>회 |
=info(3)?> |
|
서버 가동중";
} else {
echo "서버 동결중";
}
echo "
|
";
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();
if ($gameStor->tournament == 0) {
echo "현재 토너먼트 경기 없음";
} else {
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->onlinenation?> |
| 운영자 메세지 : =$gameStor->msg?> |
【 국가방침 】 =nationMsg($generalObj)?> |
| 【 접속자 】=onlinegen()?> |
userGrade >= 5) {
?>
|
|
userGrade == 4){
?>
|
|
|
=getMapHtml($mapTheme)?>
|
|
| =turnTable()?> |
|
|
← Ctrl, Shift, 드래그로 복수선택 가능 반복&수정→
;color:white;width:80px;font-size:13px; value='▼미루기' onclick='refreshing(this, 2,1)'>;color:white;width:80px;font-size:13px; value='▲당기기' onclick='refreshing(this, 2,2)'>
|
;color:white;width:110px;font-size:13px; value='실 행' onclick='refreshing(this, 3,form2)'>;color:white;width:110px;font-size:13px; value='갱 신' onclick='refreshing(this, 0,0)'>;color:white;width:160px;font-size:13px; value='로비로' onclick=location.replace('../')>
|
| 장수 동향 |
개인 기록 |
| =getGeneralPublicRecordRecent(15)?> |
=getGenLogRecent($me['no'], 15)?> |
| 중원 정세 |
| =getWorldHistoryRecent(15)?> |
=allButton()?>
=allButton()?>=banner()?>
develcost*5;
MessageBox("설문조사에 참여하시면 금{$develcost}과 유니크템을 드립니다! (우측 상단 설문조사 메뉴)");
}
?>