From dcc3b7cd7046dd93a51aa331a3c5ad0129ecadf3 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 26 Mar 2013 16:20:51 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=EC=97=90=20=EB=AA=A8=EB=B0=94=EC=9D=BC=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_copy_update.php | 4 +++ adm/board_form.php | 67 ++++++++++++++++++++++++++++++++++++++- adm/board_form_update.php | 12 +++++++ bbs/board_head.php | 12 ++++--- bbs/board_tail.php | 10 ++++-- bbs/list.php | 20 ++++++++---- install/gnuboard4s.sql | 4 +++ 7 files changed, 114 insertions(+), 15 deletions(-) diff --git a/adm/board_copy_update.php b/adm/board_copy_update.php index ed4e1370d..1715617fc 100644 --- a/adm/board_copy_update.php +++ b/adm/board_copy_update.php @@ -63,7 +63,9 @@ $sql = " insert into {$g4['board_table']} bo_use_list_content = '{$board[bo_use_list_content]}', bo_table_width = '{$board[bo_table_width]}', bo_subject_len = '{$board[bo_subject_len]}', + bo_mobile_subject_len = '{$board[bo_mobile_subject_len]}', bo_page_rows = '{$board[bo_page_rows]}', + bo_mobile_page_rows = '{$board[bo_mobile_page_rows]}', bo_new = '{$board[bo_new]}', bo_hot = '{$board[bo_hot]}', bo_image_width = '{$board[bo_image_width]}', @@ -73,6 +75,8 @@ $sql = " insert into {$g4['board_table']} bo_include_tail = '{$board['bo_include_tail']}', bo_content_head = '".addslashes($board['bo_content_head'])."', bo_content_tail = '".addslashes($board['bo_content_tail'])."', + bo_mobile_content_head = '".addslashes($board['bo_mobile_content_head'])."', + bo_mobile_content_tail = '".addslashes($board['bo_mobile_content_tail'])."', bo_insert_content = '".addslashes($board['bo_insert_content'])."', bo_gallery_cols = '{$board[bo_gallery_cols]}', bo_gallery_width = '{$board[bo_gallery_width]}', diff --git a/adm/board_form.php b/adm/board_form.php index 7150ff4e3..a87adb62b 100644 --- a/adm/board_form.php +++ b/adm/board_form.php @@ -33,6 +33,18 @@ if (!isset($board['bo_gallery_width'])) { sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_gallery_width` INT NOT NULL AFTER `bo_gallery_cols`, ADD `bo_gallery_height` INT NOT NULL DEFAULT '0' AFTER `bo_gallery_width`, ADD `bo_mobile_gallery_cols` INT NOT NULL DEFAULT '0' AFTER `bo_gallery_height`, ADD `bo_mobile_gallery_width` INT NOT NULL DEFAULT '0' AFTER `bo_mobile_gallery_cols`, ADD `bo_mobile_gallery_height` INT NOT NULL DEFAULT '0' AFTER `bo_mobile_gallery_width` ", false); } +if (!isset($board['bo_mobile_subject_len'])) { + sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_subject_len` INT(11) NOT NULL DEFAULT '0' AFTER `bo_subject_len` ", false); +} + +if (!isset($board['bo_mobile_page_rows'])) { + sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_page_rows` INT(11) NOT NULL DEFAULT '0' AFTER `bo_page_rows` ", false); +} + +if (!isset($board['bo_mobile_content_head'])) { + sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_mobile_content_head` TEXT NOT NULL AFTER `bo_content_head`, ADD `bo_mobile_content_tail` TEXT NOT NULL AFTER `bo_content_tail`", false); +} + $required = ""; $readonly = ""; if ($w == '') { @@ -58,7 +70,9 @@ if ($w == '') { $board['bo_mobile_gallery_height'] = 100; $board['bo_table_width'] = 100; $board['bo_page_rows'] = $config['cf_page_rows']; + $board['bo_mobile_page_rows'] = $config['cf_page_rows']; $board['bo_subject_len'] = 60; + $board['bo_mobile_subject_len'] = 30; $board['bo_new'] = 24; $board['bo_hot'] = 100; $board['bo_image_width'] = 600; @@ -755,6 +769,30 @@ $pg_anchor = "