diff --git a/OTHER/kusaba_freshinstall.mysql.sql b/OTHER/kusaba_freshinstall.mysql.sql index 6644b97..69a96eb 100644 --- a/OTHER/kusaba_freshinstall.mysql.sql +++ b/OTHER/kusaba_freshinstall.mysql.sql @@ -105,7 +105,7 @@ CREATE TABLE `PREFIX_boards` ( `messagelength` int(10) NOT NULL default '8192', `createdon` int(20) NOT NULL, `locked` tinyint(1) NOT NULL default '0', - `includeheader` text collate utf8_unicode_ci NOT NULL default '', + `includeheader` text collate utf8_unicode_ci NOT NULL, `redirecttothread` tinyint(1) NOT NULL default '0', `anonymous` varchar(255) collate utf8_unicode_ci NOT NULL default 'Anonymous', `forcedanon` tinyint(1) NOT NULL default '0', diff --git a/inc/classes/manage.class.php b/inc/classes/manage.class.php index c95d646..6cd7301 100644 --- a/inc/classes/manage.class.php +++ b/inc/classes/manage.class.php @@ -1164,7 +1164,7 @@ class Manage { if ($_POST['firstpostid'] < 1) { $_POST['firstpostid'] = 1; } - $tc_db->Execute("INSERT INTO `" . KU_DBPREFIX . "boards` ( `name` , `desc` , `createdon`, `start`, `image` ) VALUES ( " . $tc_db->qstr($dir) . " , " . $tc_db->qstr($desc) . " , '" . time() . "', " . $_POST['firstpostid'] . ", '' )"); + $tc_db->Execute("INSERT INTO `" . KU_DBPREFIX . "boards` ( `name` , `desc` , `createdon`, `start`, `image`, `includeheader` ) VALUES ( " . $tc_db->qstr($dir) . " , " . $tc_db->qstr($desc) . " , '" . time() . "', " . $_POST['firstpostid'] . ", '', '' )"); $boardid = $tc_db->Insert_Id(); $filetypes = $tc_db->GetAll("SELECT " . KU_DBPREFIX . "filetypes.id FROM " . KU_DBPREFIX . "filetypes WHERE " . KU_DBPREFIX . "filetypes.filetype = 'JPG' OR " . KU_DBPREFIX . "filetypes.filetype = 'GIF' OR " . KU_DBPREFIX . "filetypes.filetype = 'PNG';"); foreach ($filetypes AS $filetype) {