턴 밀림 버그 수정
This commit is contained in:
@@ -1441,6 +1441,9 @@ function checkDelay() {
|
|||||||
$newTurntime = $turntime->add(new \DateInterval("PT{$minute}M"));
|
$newTurntime = $turntime->add(new \DateInterval("PT{$minute}M"));
|
||||||
$newNextTurntime = $turntime->add(new \DateInterval("PT{$term}M"));
|
$newNextTurntime = $turntime->add(new \DateInterval("PT{$term}M"));
|
||||||
$gameStor->turntime = $newTurntime->format('Y-m-d H:i:s');
|
$gameStor->turntime = $newTurntime->format('Y-m-d H:i:s');
|
||||||
|
$gameStor->starttime = (new \DateTimeImmutable($gameStor->starttime))
|
||||||
|
->add(new \DateInterval("PT{$minute}M"))
|
||||||
|
->format('Y-m-d H:i:s');
|
||||||
|
|
||||||
$db->update('general', [
|
$db->update('general', [
|
||||||
'turntime'=> $db->sqleval('DATE_ADD(turntime, INTERVAL %i MINUTE)', $minute)
|
'turntime'=> $db->sqleval('DATE_ADD(turntime, INTERVAL %i MINUTE)', $minute)
|
||||||
|
|||||||
+3
-8
@@ -11,7 +11,6 @@ increaseRefresh("메인", 1);
|
|||||||
|
|
||||||
$db = DB::db();
|
$db = DB::db();
|
||||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||||
$connect=$db->get();
|
|
||||||
|
|
||||||
if (!$userID) {
|
if (!$userID) {
|
||||||
header('Location:..');
|
header('Location:..');
|
||||||
@@ -42,9 +41,7 @@ if ($me['newmsg'] == 1 || $me['newvote'] == 1) {
|
|||||||
|
|
||||||
$admin = $gameStor->getValues(['develcost','online','conlimit','tournament','tnmt_type','turnterm','scenario','scenario_text','extended_general','fiction','npcmode','vote']);
|
$admin = $gameStor->getValues(['develcost','online','conlimit','tournament','tnmt_type','turnterm','scenario','scenario_text','extended_general','fiction','npcmode','vote']);
|
||||||
|
|
||||||
$query = "select plock from plock limit 1";
|
$plock = $db->queryFirstField('SELECT plock FROM plock LIMIT 1');
|
||||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
|
|
||||||
$plock = MYDB_fetch_array($result);
|
|
||||||
|
|
||||||
$con = checkLimit($me['con']);
|
$con = checkLimit($me['con']);
|
||||||
if ($con >= 2) {
|
if ($con >= 2) {
|
||||||
@@ -136,7 +133,7 @@ $(function(){
|
|||||||
<tr height=30>
|
<tr height=30>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
if ($plock['plock'] == 0) {
|
if (!$plock) {
|
||||||
echo "<marquee scrollamount=2><font color=cyan>서버 가동중</font></marquee>";
|
echo "<marquee scrollamount=2><font color=cyan>서버 가동중</font></marquee>";
|
||||||
} else {
|
} else {
|
||||||
echo "<font color=magenta>서버 동결중</font>";
|
echo "<font color=magenta>서버 동결중</font>";
|
||||||
@@ -166,9 +163,7 @@ echo "
|
|||||||
<td align=center>
|
<td align=center>
|
||||||
";
|
";
|
||||||
|
|
||||||
$query = "select no from auction";
|
$auctionCount = $db->queryFirstField('SELECT count(`no`) FROM auction');
|
||||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
|
|
||||||
$auctionCount = MYDB_num_rows($result);
|
|
||||||
if ($auctionCount > 0) {
|
if ($auctionCount > 0) {
|
||||||
echo "<marquee scrollamount=2><font color=cyan>{$auctionCount}건</font> 거래 진행중</marquee>";
|
echo "<marquee scrollamount=2><font color=cyan>{$auctionCount}건</font> 거래 진행중</marquee>";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user