php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용

This commit is contained in:
thisgun
2021-01-04 15:39:15 +09:00
parent 131b170b54
commit 27e9af5e42
1009 changed files with 12120 additions and 10849 deletions

View File

@ -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 = get_brow($row['vi_agent']);
$arr[$s]++;
if( isset($arr[$s]) ){
$arr[$s]++;
} else {
$arr[$s] = 1;
}
if ($arr[$s] > $max) $max = $arr[$s];
@ -93,5 +102,4 @@ while ($row=sql_fetch_array($result)) {
</div>
<?php
include_once('./admin.tail.php');
?>
include_once('./admin.tail.php');