get();
increaseRefresh("갱신정보", 2);
$query = "select year,month,refresh,maxrefresh,maxonline from game limit 1";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$game = MYDB_fetch_array($result);
$log = getRawFileLogRecent(__dir__.'/logs/_traffic.txt', 11, 100);
$date = [];
$year = [];
$month = [];
$refresh = [];
$online = [];
$curonline = getOnlineNum();
$visibleLogs = min(11, count($log));
for ($i=0; $i < $visibleLogs; $i++) {
$parse = explode("|", $log[count($log)-$visibleLogs+$i]);
$date[$i] = trim($parse[0]);
$year[$i] = trim($parse[1]);
$month[$i] = trim($parse[2]);
$refresh[$i] = trim($parse[3]);
$online[$i] = trim($parse[4]);
}
if ($game['maxrefresh'] == 0) {
$game['maxrefresh'] = 1;
}
if ($game['maxrefresh'] < $game['refresh']) {
$game['maxrefresh'] = $game['refresh'];
}
if ($game['maxonline'] == 0) {
$game['maxonline'] = 1;
}
if ($game['maxonline'] < $curonline) {
$game['maxonline'] = $curonline;
}
?>
트래픽정보
트 래 픽 정 보 =closeButton()?> |
| 접 속 량 |
= 100) {
$w -= 0.1;
}
if ($refresh[$i] < 10 && $w < 3) {
$w = 3;
} elseif ($refresh[$i] < 100 && $w < 6) {
$w = 6;
} elseif ($refresh[$i] < 1000 && $w < 9) {
$w = 9;
}
$w2 = round(100 - $w, 1);
$color = getTrafficColor($w);
$dt = substr($date[$i], 11, 5); ?>
| =$year[$i]?>년 =$month[$i]?>월 |
=$dt?> |
|
| % bgcolor==$color?> align=right>=$refresh[$i]?> |
% id=bg0> |
|
= 100) {
$w -= 0.1;
}
if ($game['refresh'] < 10 && $w < 3) {
$w = 3;
} elseif ($game['refresh'] < 100 && $w < 6) {
$w = 6;
} elseif ($game['refresh'] < 1000 && $w < 9) {
$w = 9;
}
$w2 = round(100 - $w, 1);
$color = getTrafficColor($w);
$dt = date('H:i');
?>
| =$game['year']?>년 =$game['month']?>월 |
=$dt?> |
|
| % bgcolor==$color?> align=right>=$game['refresh']?> |
% id=bg0> |
|
|
| 최고기록: =$game['maxrefresh']?> |
|
| 접 속 자 |
= 100) {
$w -= 0.1;
}
if ($online[$i] < 10 && $w < 3) {
$w = 3;
} elseif ($online[$i] < 100 && $w < 6) {
$w = 6;
} elseif ($online[$i] < 1000 && $w < 9) {
$w = 9;
}
$w2 = round(100 - $w, 1);
$color = getTrafficColor($w);
$dt = substr($date[$i], 11, 5); ?>
| =$year[$i]?>년 =$month[$i]?>월 |
=$dt?> |
|
| % bgcolor==$color?> align=right>=$online[$i]?> |
% id=bg0> |
|
= 100) {
$w -= 0.1;
}
if ($curonline < 10 && $w < 3) {
$w = 3;
} elseif ($curonline < 100 && $w < 6) {
$w = 6;
} elseif ($curonline < 1000 && $w < 9) {
$w = 9;
}
$w2 = round(100 - $w, 1);
$color = getTrafficColor($w);
$dt = date('H:i');
echo "
| {$game['year']}년 {$game['month']}월 |
{$dt} |
|
|
|
| 최고기록: {$game['maxonline']} |
";
?>
|
| 주 의 대 상 자 (순간과도갱신) |
주의대상자 |
벌점(순간갱신) |
전체 대비 |
| 접속자 총합 |
{$user['connect']}({$maxrefresh}) |
|
";
$query = "select name,refresh,connect from general order by refresh desc limit 0,5";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$count = MYDB_num_rows($result);
for ($i=0; $i < $count; $i++) {
$user = MYDB_fetch_array($result);
$w = round($user['refresh'] / $maxrefresh * 100, 1);
$w2 = round(100 - $w, 1);
$color = getTrafficColor($w);
echo "
| {$user['name']} |
{$user['connect']}({$user['refresh']}) |
|
";
}
?>
| =closeButton()?> |
| =banner()?> |