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

@ -2,10 +2,13 @@
include_once('./_common.php');
include_once(G5_EDITOR_LIB);
$qa_id = isset($_REQUEST['qa_id']) ? (int) $_REQUEST['qa_id'] : 0;
if($is_guest)
alert('회원이시라면 로그인 후 이용해 보십시오.', './login.php?url='.urlencode(G5_BBS_URL.'/qaview.php?qa_id='.$qa_id));
$qaconfig = get_qa_config();
$content = '';
$g5['title'] = $qaconfig['qa_title'];
include_once('./qahead.php');
@ -20,7 +23,7 @@ if(is_file($skin_file)) {
$view = sql_fetch($sql);
if(!$view['qa_id'])
if(!(isset($view['qa_id']) && $view['qa_id']))
alert('게시글이 존재하지 않습니다.\\n삭제되었거나 자신의 글이 아닌 경우입니다.');
$subject_len = G5_IS_MOBILE ? $qaconfig['qa_mobile_subject_len'] : $qaconfig['qa_subject_len'];
@ -168,10 +171,19 @@ if(is_file($skin_file)) {
}
}
$html_value = '';
$html_checked = '';
if (isset($view['qa_html']) && $view['qa_html']) {
$html_checked = 'checked';
$html_value = $view['qa_html'];
if($view['qa_html'] == 1 && !$is_dhtml_editor)
$html_value = 2;
}
include_once($skin_file);
} else {
echo '<div>'.str_replace(G5_PATH.'/', '', $skin_file).'이 존재하지 않습니다.</div>';
}
include_once('./qatail.php');
?>
include_once('./qatail.php');