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

@ -7,11 +7,13 @@ include_once('./_common.php');
// clean the output buffer
ob_end_clean();
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)) {
die('사용할 수 없는 기능입니다.');
}
if ($is_admin != 'super')
if ($is_admin != 'super') {
die('최고관리자만 접근 가능합니다.');
}
include_once(G5_PLUGIN_PATH.'/browscap/Browscap.php');
@ -20,4 +22,4 @@ $browscap->updateMethod = 'cURL';
$browscap->cacheFilename = 'browscap_cache.php';
$browscap->updateCache();
die('');
die('');