php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -2,7 +2,10 @@
|
||||
$sub_menu = "200800";
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
$fr_date = isset($_REQUEST['fr_date']) ? preg_replace('/[^0-9 :\-]/i', '', $_REQUEST['fr_date']) : G5_TIME_YMD;
|
||||
$to_date = isset($_REQUEST['to_date']) ? preg_replace('/[^0-9 :\-]/i', '', $_REQUEST['to_date']) : G5_TIME_YMD;
|
||||
|
||||
$g5['title'] = '기기별 접속자집계';
|
||||
include_once('./visit.sub.php');
|
||||
@ -11,6 +14,8 @@ $colspan = 5;
|
||||
|
||||
$max = 0;
|
||||
$sum_count = 0;
|
||||
$arr = array();
|
||||
|
||||
$sql = " select * from {$g5['visit_table']}
|
||||
where vi_date between '$fr_date' and '$to_date' ";
|
||||
$result = sql_query($sql);
|
||||
@ -19,7 +24,11 @@ while ($row=sql_fetch_array($result)) {
|
||||
if(!$s)
|
||||
$s = '기타';
|
||||
|
||||
$arr[$s]++;
|
||||
if( isset($arr[$s]) ){
|
||||
$arr[$s]++;
|
||||
} else {
|
||||
$arr[$s] = 1;
|
||||
}
|
||||
|
||||
if ($arr[$s] > $max) $max = $arr[$s];
|
||||
|
||||
@ -97,5 +106,4 @@ while ($row=sql_fetch_array($result)) {
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
?>
|
||||
include_once('./admin.tail.php');
|
||||
Reference in New Issue
Block a user