php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -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');
|
||||
Reference in New Issue
Block a user