Parašė kLx· 2007 Spa. 16 14:10:55
#10
sukurk failą install.php ir į jį įrašyk šį kodą :
<?php
require_once "../../maincore.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 "FusionBoard3 installed";
} else {
echo "ERROR!";
}
?>
Tada jį įkelk į savo ftp ir nueik adresu
www.tavosaitas.com/install.php vsio