php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -3,7 +3,7 @@ $sub_menu = "300100";
|
||||
include_once('./_common.php');
|
||||
include_once(G5_EDITOR_LIB);
|
||||
|
||||
auth_check($auth[$sub_menu], 'w');
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
$sql = " select count(*) as cnt from {$g5['group_table']} ";
|
||||
$row = sql_fetch($sql);
|
||||
@ -11,6 +11,8 @@ if (!$row['cnt'])
|
||||
alert('게시판그룹이 한개 이상 생성되어야 합니다.', './boardgroup_form.php');
|
||||
|
||||
$html_title = '게시판';
|
||||
$reaonly = '';
|
||||
$required_valid = '';
|
||||
|
||||
if (!isset($board['bo_device'])) {
|
||||
// 게시판 사용 필드 추가
|
||||
@ -84,6 +86,57 @@ if (!isset($board['bo_select_editor'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['board_table']}` ADD `bo_select_editor` VARCHAR(50) NOT NULL DEFAULT '' AFTER `bo_use_dhtml_editor` ", false);
|
||||
}
|
||||
|
||||
$board_default = array(
|
||||
'bo_mobile_subject'=>'',
|
||||
'bo_device'=>'',
|
||||
'bo_use_category'=>0,
|
||||
'bo_category_list'=>'',
|
||||
'bo_admin'=>'',
|
||||
'bo_list_level'=>0,
|
||||
'bo_read_level'=>0,
|
||||
'bo_write_level'=>0,
|
||||
'bo_reply_level'=>0,
|
||||
'bo_comment_level'=>0,
|
||||
'bo_link_level'=>0,
|
||||
'bo_upload_level'=>0,
|
||||
'bo_download_level'=>0,
|
||||
'bo_html_level'=>0,
|
||||
'bo_use_sideview'=>0,
|
||||
'bo_select_editor'=>'',
|
||||
'bo_use_rss_view'=>0,
|
||||
'bo_use_good'=>0,
|
||||
'bo_use_nogood'=>0,
|
||||
'bo_use_name'=>0,
|
||||
'bo_use_signature'=>0,
|
||||
'bo_use_ip_view'=>0,
|
||||
'bo_use_list_content'=>0,
|
||||
'bo_use_list_file'=>0,
|
||||
'bo_use_list_view'=>0,
|
||||
'bo_use_email'=>0,
|
||||
'bo_use_file_content'=>0,
|
||||
'bo_use_cert'=>'',
|
||||
'bo_write_min'=>0,
|
||||
'bo_write_max'=>0,
|
||||
'bo_comment_min'=>0,
|
||||
'bo_comment_max'=>0,
|
||||
'bo_use_sns'=>0,
|
||||
'bo_order'=>0,
|
||||
'bo_use_captcha'=>0,
|
||||
'bo_content_head'=>'',
|
||||
'bo_content_tail'=>'',
|
||||
'bo_mobile_content_head'=>'',
|
||||
'bo_mobile_content_tail'=>'',
|
||||
'bo_insert_content'=>'',
|
||||
'bo_sort_field'=>'',
|
||||
);
|
||||
|
||||
for($i=0;$i<=10;$i++){
|
||||
$board_default['bo_'.$i.'_subj'] = '';
|
||||
$board_default['bo_'.$i] = '';
|
||||
}
|
||||
|
||||
$board = array_merge($board_default, $board);
|
||||
|
||||
run_event('adm_board_form_before', $board, $w);
|
||||
|
||||
$required = "";
|
||||
@ -1439,5 +1492,4 @@ function fboardform_submit(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
?>
|
||||
include_once ('./admin.tail.php');
|
||||
Reference in New Issue
Block a user