loginGame()->setReadOnly();
$userID = Session::getUserID();
increaseRefresh("메인", 1);
$db = DB::db();
$gameStor = KVStorage::getStorage($db, 'game_env');
if (!$userID) {
header('Location:..');
die();
}
$me = $db->queryFirstRow(
'SELECT no,con,turntime,newmsg,newvote,`level` from general where owner = %i',
$userID
);
//턴 실행.
TurnExecutionHelper::executeAllCommand();
if(!$session->isGameLoggedIn()){
header('Location:..');
die();
}
//그새 사망이면
if ($me === null) {
$session->logoutGame();
header('Location: ../');
die();
}
if ($me['newmsg'] == 1 || $me['newvote'] == 1) {
$db->update('general', [
'newmsg'=>0,
'newvote'=>0
], 'owner=%i', $userID);
}
$admin = $gameStor->getValues(['develcost','online','conlimit','tournament','tnmt_type','turnterm','scenario','scenario_text','extended_general','fiction','npcmode','vote','vote_title','map_theme']);
$plock = $db->queryFirstField('SELECT plock FROM plock LIMIT 1');
$con = checkLimit($me['con']);
if ($con >= 2) {
printLimitMsg($me['turntime']);
exit();
}
$scenario = $admin['scenario_text'];
$valid = 0;
if ($admin['extended_general'] == 0) {
$extend = "표준";
} else {
$extend = "확장";
$valid = 1;
}
if ($admin['fiction'] == 0) {
$fiction = "사실";
} else {
$fiction = "가상";
$valid = 1;
}
if ($admin['npcmode'] == 0) {
$npcmode = "불가능";
} else {
$npcmode = "가능";
$valid = 1;
}
$color = "cyan";
$mapTheme = $admin['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('../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)?> |
전체 접속자 수 : =$admin['online']?> 명 |
턴당 갱신횟수 : =$admin['conlimit']?>회 |
=info(3)?> |
|
서버 가동중";
} else {
echo "서버 동결중";
}
echo "
|
";
switch ($admin['tnmt_type']) {
case 0: $str = "전력전"; break;
case 1: $str = "통솔전"; break;
case 2: $str = "일기토"; break;
case 3: $str = "설전"; break;
}
$str2 = getTournament($admin['tournament']);
$str3 = getTournamentTime();
if ($admin['tournament'] == 0) {
echo "현재 토너먼트 경기 없음";
} else {
echo "";
}
echo "
|
";
$auctionCount = $db->queryFirstField('SELECT count(`no`) FROM auction');
if ($auctionCount > 0) {
echo "";
} else {
echo "진행중 거래 없음";
}
echo "
|
";
$vote = $admin['vote']?:[''];
$vote_title = Tag2Code($admin['vote_title']??'-');
if ($vote[0] == "") {
echo "진행중 설문 없음";
} else {
echo "";
}
echo "
|
";
?>
| 접속중인 국가: =onlinenation()?> |
| =adminMsg()?> |
【 국가방침 】 =nationMsg()?> |
| 【 접속자 】=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()?>