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 = "