Checked PSR-1: Basic Coding Standard & type error

This commit is contained in:
kjh
2022-05-27 06:50:13 +00:00
parent 44650b31f6
commit 9199b7c986
4 changed files with 36 additions and 22 deletions

View File

@ -2,15 +2,18 @@
$sub_menu = "100520";
include_once('./_common.php');
if(!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE)) {
alert('사용할 수 없는 기능입니다.', correct_goto_url(G5_ADMIN_URL));
}
if ($is_admin != 'super')
if ($is_admin != 'super') {
alert('최고관리자만 접근 가능합니다.');
}
$rows = isset($_GET['rows']) ? preg_replace('#[^0-9]#', '', $_GET['rows']) : 0;
if(!$rows)
if (!$rows) {
$rows = 100;
}
$g5['title'] = '접속로그 변환';
include_once('./admin.head.php');
@ -29,7 +32,7 @@ $(function() {
$.ajax({
method: "GET",
url: "./browscap_converter.php",
data: { rows: "<?php echo $rows; ?>" },
data: { rows: "<?php echo strval($rows); ?>" },
async: true,
cache: false,
dataType: "html",