Another fix for strict MySQL installs.
git-svn-id: http://kusabax.cultnet.net/svn/repo/stable@230 73d99b7e-4f53-4972-b7b7-2ecd3c4d89ee
This commit is contained in:
1 parent
340763e147
commit
298d2223bc
2 files changed
+2
-2
No files matched your search
@@ -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',
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user