Jump to content
xisto Community
Sign in to follow this  
catforum

Why I Face Problems When Installing Discuz Board?

Recommended Posts

connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect); $msg = ''; $quit = FALSE; $curr_os = PHP_OS; $curr_php_version = PHP_VERSION; if($curr_php_version < '4.0.0') { $msg .= "$lang[php_version_400]\t"; $quit = TRUE; } elseif($curr_php_version < '4.0.6') { $msg .= "$lang[php_version_406]\t"; } if(@ini_get(file_uploads)) { $max_size = @ini_get(upload_max_filesize); $curr_upload_status = $lang['attach_enabled'].$max_size; $msg .= $lang['attach_enabled_info'].$max_size."\t"; } else { $curr_upload_status = $lang['attach_disabled']; $msg .= "$lang[attach_disabled_info]\t"; } $query = $db->query("SELECT VERSION()"); $curr_mysql_version = $db->result($query, 0); if($curr_mysql_version < '3.23') { $msg .= "$lang[mysql_version_323]\t"; $quit = TRUE; } $curr_disk_space = intval(diskfreespace('.') / (1024 * 1024)).'M'; if(dir_writeable('./templates')) { $curr_tpl_writeable = $lang['writeable']; } else { $curr_tpl_writeable = $lang['unwriteable']; $msg .= "$lang[unwriteable_template]\t"; } if(dir_writeable('./customavatars')) { $curr_avatar_writeable = $lang['writeable']; } else { $curr_avatar_writeable = $lang['unwriteable']; $msg .= "$lang[unwriteable_avatar]\t"; } if(dir_writeable($attachdir)) { $curr_attach_writeable = $lang['writeable']; } else { $curr_attach_writeable = $lang['unwriteable']; $msg .= "$lang[unwriteable_attach]\t"; } if(dir_writeable('./forumdata')) { $curr_data_writeable = $lang['writeable']; } else { $curr_data_writeable = $lang['unwriteable']; $msg .= "$lang[unwriteable_forumdata]\t"; } if(dir_writeable('./forumdata/templates')) { $curr_template_writeable = $lang['writeable']; } else { $curr_template_writeable = $lang['unwriteable']; $msg .= "$lang[unwriteable_forumdata_template]\t"; $quit = TRUE; } if(dir_writeable('./forumdata/cache')) { $curr_cache_writeable = $lang['writeable']; } else { $curr_cache_writeable = $lang['unwriteable']; $msg .= "$lang[unwriteable_forumdata_cache]\t"; $quit = TRUE; } if(dir_writeable('./forumdata/accesslogs')) { $curr_accesslog_writeable = $lang['writeable']; } else { $curr_accesslog_writeable = $lang['unwriteable']; $msg .= "$lang[unwriteable_forumdata_accesslog]\t"; } if(strstr($tablepre, '.')) { $msg .= "$lang[tablepre_invalid]\t"; $quit = TRUE; } $db->select_db($dbname); if($db->error()) { $db->query("CREATE DATABASE $dbname"); if($db->error()) { $msg .= "$lang[db_invalid]\t"; $quit = TRUE; } else { $db->select_db($dbname); $msg .= "$lang[db_auto_created]\t"; } } $query - $db->query("SELECT COUNT(*) FROM $tablepre"."settings", 'SILENT'); if(!$db->error()) { $msg .= "$lang[db_not_null]\t"; $alert = " onSubmit=\"return confirm('$lang[db_drop_table_confirm]');\""; } else { $alert = ''; } if($quit) { $msg .= "$lang[install_abort]"; } else { $msg .= $lang['install_process']; } ?>

One of the example is above

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.