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

This commit is contained in:
thisgun
2021-01-04 15:33:29 +09:00
parent 10d377de7d
commit 582d1a01f4
852 changed files with 120617 additions and 6307 deletions

View File

@ -11,7 +11,7 @@ if(!$theme || !in_array($theme, $theme_dir))
$info = get_theme_info($theme);
$arr_mode = array('index', 'list', 'view');
$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';
@ -114,5 +114,4 @@ require_once(G5_PATH.'/head.sub.php');
</section>
<?php
require_once(G5_PATH.'/tail.sub.php');
?>
require_once(G5_PATH.'/tail.sub.php');