From 0e0a992325a3d7e8dad71cfc8f26b9aec8f18de7 Mon Sep 17 00:00:00 2001 From: Arcturus Date: Sun, 22 Sep 2024 23:17:57 +0900 Subject: [PATCH] misc update --- AvocadoEdition_Light/adm/board_form.php | 312 +++++++++++++++++- .../adm/board_form_update.php | 2 + AvocadoEdition_Light/bbs/password.php | 17 +- AvocadoEdition_Light/bbs/password_check.php | 33 ++ .../bbs/write_comment_update.php | 102 +++--- 5 files changed, 405 insertions(+), 61 deletions(-) diff --git a/AvocadoEdition_Light/adm/board_form.php b/AvocadoEdition_Light/adm/board_form.php index ab0c7f5..8fc7a78 100644 --- a/AvocadoEdition_Light/adm/board_form.php +++ b/AvocadoEdition_Light/adm/board_form.php @@ -45,6 +45,10 @@ if (!isset($board['bo_use_cert'])) { sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_use_cert` ENUM('','cert','adult') NOT NULL DEFAULT '' AFTER `bo_use_email` ", false); } +if (!isset($board['bo_pass'])) { + sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_pass` varchar(255) NOT NULL DEFAULT '' AFTER `bo_use_email` , ADD `bo_use_pass` TINYINT NOT NULL DEFAULT '0' AFTER `bo_use_email`", false); +} + if (!isset($board['bo_use_sns'])) { sql_query("ALTER TABLE `{$g5['board_table']}` ADD `bo_use_sns` TINYINT NOT NULL DEFAULT '0' AFTER `bo_use_cert` ", false); @@ -86,8 +90,8 @@ if ($w == '') { $required_valid = 'alnum_'; $sound_only = '필수'; - $board['bo_count_delete'] = 0; - $board['bo_count_modify'] = 0; + $board['bo_count_delete'] = 1; + $board['bo_count_modify'] = 1; $board['bo_read_point'] = $config['cf_read_point']; $board['bo_write_point'] = $config['cf_write_point']; $board['bo_comment_point'] = $config['cf_comment_point']; @@ -102,8 +106,10 @@ if ($w == '') { $board['bo_new'] = 24; $board['bo_hot'] = 100; $board['bo_image_width'] = 600; - $board['bo_upload_count'] = 0; + $board['bo_upload_count'] = 1; $board['bo_upload_size'] = (int) ini_get("upload_max_filesize") * 1048576; + $board['bo_gallery_cols'] = 4; + $board['bo_gallery_width'] = 130; $board['bo_reply_order'] = 1; $board['bo_use_search'] = 1; $board['bo_skin'] = 'basic'; @@ -112,10 +118,17 @@ if ($w == '') { $board['bo_use_secret'] = 0; $board['bo_include_head'] = '_head.php'; $board['bo_include_tail'] = '_tail.php'; + $board['bo_table_width'] = '100'; } else if ($w == 'u') { $html_title .= ' 수정'; + if ($board['bo_gallery_cols'] == 0) + $board['bo_gallery_cols'] = 4; + if ($board['bo_table_width'] == 0) + $board['bo_table_width'] = '100'; + if ($board['bo_gallery_width'] == 0) + $board['bo_gallery_width'] = 130; if (!$board['bo_table']) alert('존재하지 않은 게시판 입니다.'); @@ -143,6 +156,7 @@ $pg_anchor = ''; @@ -175,6 +189,20 @@ $pg_anchor = '