전콘 적용 버그 수정
갱신정보 제대로 안보이는 문제 수정 분쟁 정보 제대로 안보이는 문제 수정
This commit is contained in:
+6
-5
@@ -13,7 +13,7 @@ $query = "select year,month,refresh,maxrefresh,maxonline from game limit 1";
|
|||||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
|
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
|
||||||
$game = MYDB_fetch_array($result);
|
$game = MYDB_fetch_array($result);
|
||||||
|
|
||||||
$log = [];
|
$log = getRawFileLogRecent(__dir__.'/logs/_traffic.txt', 11, 100);
|
||||||
|
|
||||||
$date = [];
|
$date = [];
|
||||||
$year = [];
|
$year = [];
|
||||||
@@ -22,8 +22,9 @@ $refresh = [];
|
|||||||
$online = [];
|
$online = [];
|
||||||
|
|
||||||
$curonline = getOnlineNum();
|
$curonline = getOnlineNum();
|
||||||
for ($i=0; $i < 11; $i++) {
|
$visibleLogs = min(11, count($log));
|
||||||
$parse = explode("|", $log[count($log)-12+$i]);
|
for ($i=0; $i < $visibleLogs; $i++) {
|
||||||
|
$parse = explode("|", $log[count($log)-$visibleLogs+$i]);
|
||||||
$date[$i] = trim($parse[0]);
|
$date[$i] = trim($parse[0]);
|
||||||
$year[$i] = trim($parse[1]);
|
$year[$i] = trim($parse[1]);
|
||||||
$month[$i] = trim($parse[2]);
|
$month[$i] = trim($parse[2]);
|
||||||
@@ -62,7 +63,7 @@ if ($game['maxonline'] < $curonline) {
|
|||||||
<table align=center border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
<table align=center border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
||||||
<tr><td colspan=4 align=center id=bg2><font size=5>접 속 량</font></td></tr>
|
<tr><td colspan=4 align=center id=bg2><font size=5>접 속 량</font></td></tr>
|
||||||
<?php
|
<?php
|
||||||
for ($i=0; $i < 11; $i++) {
|
for ($i=0; $i < $visibleLogs; $i++) {
|
||||||
$w = round($refresh[$i] / $game['maxrefresh'] * 100, 1);
|
$w = round($refresh[$i] / $game['maxrefresh'] * 100, 1);
|
||||||
if ($w >= 100) {
|
if ($w >= 100) {
|
||||||
$w -= 0.1;
|
$w -= 0.1;
|
||||||
@@ -132,7 +133,7 @@ $dt = date('H:i');
|
|||||||
<table align=center border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
<table align=center border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
|
||||||
<tr><td colspan=4 align=center id=bg2><font size=5>접 속 자</font></td></tr>
|
<tr><td colspan=4 align=center id=bg2><font size=5>접 속 자</font></td></tr>
|
||||||
<?php
|
<?php
|
||||||
for ($i=0; $i < 11; $i++) {
|
for ($i=0; $i < $visibleLogs; $i++) {
|
||||||
$w = round($online[$i] / $game['maxonline'] * 100, 1);
|
$w = round($online[$i] / $game['maxonline'] * 100, 1);
|
||||||
if ($w >= 100) {
|
if ($w >= 100) {
|
||||||
$w -= 0.1;
|
$w -= 0.1;
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ foreach ($db->queryAllLists('SELECT city, `name`, conflict FROM city WHERE confl
|
|||||||
$rawConflict
|
$rawConflict
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
$conflict = Json::decode($city['conflict']);
|
$conflict = Json::decode($rawConflict);
|
||||||
if (count($conflict)<2) {
|
if (count($conflict)<2) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ if(!is_uploaded_file($image['tmp_name'])) {
|
|||||||
|
|
||||||
while(true){
|
while(true){
|
||||||
$newPicName = dechex(rand(0x000000f,0xfffffff)).$newExt;
|
$newPicName = dechex(rand(0x000000f,0xfffffff)).$newExt;
|
||||||
$dest = AppConf::getUserIconPathFS().$newPicName;
|
$dest = AppConf::getUserIconPathFS().'/'.$newPicName;
|
||||||
if(file_exists($dest)){
|
if(file_exists($dest)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user