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

@ -82,8 +82,11 @@ function get_board_db($bo_table, $is_cache=false){
$sql = " select * from {$g5['board_table']} where bo_table = '$bo_table' ";
$cache[$key] = sql_fetch($sql);
$board = sql_fetch($sql);
$board_defaults = array('bo_table'=>'', 'bo_skin'=>'', 'bo_mobile_skin'=>'', 'bo_upload_count' => 0, 'bo_use_dhtml_editor'=>'', 'bo_subject'=>'', 'bo_image_width'=>0);
$cache[$key] = array_merge($board_defaults, (array) $board);
}
return $cache[$key];
@ -116,6 +119,7 @@ function get_menu_db($use_mobile=0, $is_cache=false){
$row['ori_me_link'] = $row['me_link'];
$row['me_link'] = short_url_clean($row['me_link']);
$row['sub'] = isset($row['sub']) ? $row['sub'] : array();
$cache[$key][$i] = $row;
$sql2 = " select *
@ -473,5 +477,4 @@ function get_scrap_totals($mb_id=''){
$row = sql_fetch($sql, false);
return $row['cnt'];
}
?>
}