Parašė _Tomas· 2007 Spa. 16 14:10:26
#13
badboy parašė:
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
Vo :D
Fatal error: require_once() [function.require]: Failed opening required '../../maincore.php' (include_path='.:/php/php5/lib/php') in /home/savgir/csfan/instal.php on line 2
Redagavo _Tomas· 2007 Spa. 16 14:10:58