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

@ -11,7 +11,8 @@ if(!$theme || !in_array($theme, $theme_dir))
$info = get_theme_info($theme);
$arr_mode = array('index', 'list', 'view', 'shop', 'ca_list', 'item');
$mode = substr(strip_tags($_GET['mode']), 0, 20);
$mode = isset($_GET['mode']) ? substr(strip_tags($_GET['mode']), 0, 20) : '';
if(!in_array($mode, $arr_mode))
$mode = 'index';
@ -195,5 +196,4 @@ require_once(G5_PATH.'/head.sub.php');
</section>
<?php
require_once(G5_PATH.'/tail.sub.php');
?>
require_once(G5_PATH.'/tail.sub.php');