Parašė kLx· 2007 Spa. 16 15:10:48
#14
Kad ir pridėtiniuos puslapiuos įvykdyk šią užklausą
<?php
$fail = FALSE;
$result = dbquery("ALTER TABLE ".$db_prefix."forums ADD forum_sub smallint(5) unsigned NOT NULL default '0'");
if(!$result) $fail = TRUE;
$result = dbquery("ALTER TABLE ".$db_prefix."forums ADD forum_reply tinyint(3) unsigned NOT NULL default '0' AFTER forum_posting;");
$result = dbquery("ALTER TABLE ".$db_prefix."forums ADD forum_edit tinyint(1) unsigned NOT NULL default '1' AFTER forum_reply;");
$result = dbquery("ALTER TABLE ".$db_prefix."forums ADD forum_delete tinyint(1) unsigned NOT NULL default '1' AFTER forum_edit;");
if(!$result) $fail = TRUE;
$result = dbquery("CREATE TABLE `".DB_PREFIX."warning` (
`warning_id` int(11) NOT NULL default '0',
`warning_user` int(11) NOT NULL default '0',
`warning_level` int(11) NOT NULL default '0'
)");
if(!$result) $fail = TRUE;
$result = dbquery("ALTER TABLE ".$db_prefix."forums ADD forum_icon VARCHAR(200) NOT NULL");
if(!$result) $fail = TRUE;
if(!$fail){
echo "Pavyko !!! Šaunuolis [by badboy]";
} else {
echo "ERROR!";
}
?>
Redagavo kLx· 2007 Spa. 16 15:10:25