phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

FAQFAQ - PIERWSZA POMOC!!  regulaminREGULAMIN  SzukajSZUKAJ  UżytkownicyUżytkownicy  GrupyGrupy  StatystykiStatystyki
RejestracjaRejestracja  ZalogujZaloguj  DownloadDownload  katalog Forów DyskusyjnychKatalog Forów   FAQ Video tutoriale

Poprzedni temat «» Następny temat
Przesunięty przez: joli
22-11-2007, 23:30
[1.9] Instalacja
Autor Wiadomość
bartekkk

Posty: 7
Wysłany: 11-02-2006, 01:41   [1.9] Instalacja

Wgrałem wszystkie pliki i próbuje zainstalowac wyskakuje to:

$i; $i++) { if ( md5_checksum($file_list[$i]) != $md5_sum[$file_list[$i]] ) { $content = md5_checksum($file_list[$i]); $result .= ($content) ? '' . $file_list[$i] . ' - Zla zawartosc pliku ! Suma kontrolna: [ ' . $content . ' ]
' : '' . $file_list[$i] . ' - Brak pliku!
'; } } if ( $result && $HTTP_GET_VARS['mode'] != 'break') { echo' Nie mozesz zainstalowac forum, poniewaz niektore pliki maja zla zawartosc (sa uszkodzone). Jezeli nie edytowales zadnych plikow, oznacza to, ze wystapily problemy z ich uploadem na serwer. Sprobuj ponownie wgrac pliki, ktore sa wyswietlone ponizej

Szczegoly:
' . $result . '
Jezeli zmieniales zawartosc plikow celowo, kliknij TUTAJ zeby zainstalowac forum. Ale TYLKO w tym przypadku! Jezeli sciagnales oryginalny pakiet ze strony http://przemo.org/phpBB2 i nie zmieniales zadnych plikow, wgraj je ponownie na serwer. W innym przypadku forum nie bedzie pracowalo prawidlowo! '; exit; } define('IN_PHPBB', true); $phpbb_root_path='./'; include($phpbb_root_path.'extension.inc'); include($phpbb_root_path . 'includes/functions_selects.'.$phpEx); $userdata = array(); $lang = array(); $reinstall = false; if( !get_magic_quotes_gpc() ) { if( is_array($HTTP_GET_VARS) ) { while( list($k, $v) = each($HTTP_GET_VARS) ) { if( is_array($HTTP_GET_VARS[$k]) ) { while( list($k2, $v2) = each($HTTP_GET_VARS[$k]) ) { $HTTP_GET_VARS[$k][$k2] = addslashes($v2); } @reset($HTTP_GET_VARS[$k]); } else { $HTTP_GET_VARS[$k] = addslashes($v); } } @reset($HTTP_GET_VARS); } if( is_array($HTTP_POST_VARS) ) { while( list($k, $v) = each($HTTP_POST_VARS) ) { if( is_array($HTTP_POST_VARS[$k]) ) { while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) ) { $HTTP_POST_VARS[$k][$k2] = addslashes($v2); } @reset($HTTP_POST_VARS[$k]); } else { $HTTP_POST_VARS[$k] = addslashes($v); } } @reset($HTTP_POST_VARS); } if( is_array($HTTP_COOKIE_VARS) ) { while( list($k, $v) = each($HTTP_COOKIE_VARS) ) { if( is_array($HTTP_COOKIE_VARS[$k]) ) { while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) ) { $HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2); } @reset($HTTP_COOKIE_VARS[$k]); } else { $HTTP_COOKIE_VARS[$k] = addslashes($v); } } @reset($HTTP_COOKIE_VARS); } } /*************************************************************************** * Install Customization Section * * This section can be modified to set up some basic default information * used by the install script. Specifically the default theme data * and the default template. * **************************************************************************/ $default_language = 'polish'; $default_template = 'subSilver'; $available_dbms = array( "mysql" => array( "LABEL" => "MySQL 3.x", "SCHEMA" => "mysql", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "remove_remarks" ), "mysql4" => array( "LABEL" => "MySQL 4.x", "SCHEMA" => "mysql", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "remove_remarks" ), "postgres" => array( "LABEL" => "PostgreSQL 7.x", "SCHEMA" => "postgres", "DELIM" => ";", "DELIM_BASIC" => ";", "COMMENTS" => "remove_comments" ), "mssql" => array( "LABEL" => "MS SQL Server 7/2000", "SCHEMA" => "mssql", "DELIM" => "GO", "DELIM_BASIC" => ";", "COMMENTS" => "remove_comments" ), "msaccess" => array( "LABEL" => "MS Access [ ODBC ]", "SCHEMA" => "", "DELIM" => "", "DELIM_BASIC" => ";", "COMMENTS" => "" ), "mssql-odbc" => array( "LABEL" => "MS SQL Server [ ODBC ]", "SCHEMA" => "mssql", "DELIM" => "GO", "DELIM_BASIC" => ";", "COMMENTS" => "remove_comments" ) ); // // drop table schema // $sql_array = array(); $sql_array['drop_schema'][] = "DROP TABLE phpbb_auth_access"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_banlist"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_categories"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_config"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_disallow"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_forum_prune"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_forums"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_groups"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_posts"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_posts_text"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_privmsgs"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_privmsgs_text"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_ranks"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_search_results"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_search_wordlist"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_search_wordmatch"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_sessions"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_smilies"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_themes"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_themes_name"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_topics"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_topics_watch"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_user_group"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_users"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_vote_desc"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_vote_results"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_vote_voters"; $sql_array['drop_schema'][] = "DROP TABLE phpbb_words"; // // Uncomment the following line to completely disable the ftp option... // // define('NO_FTP', true); /*************************************************************************** * * End Install Customization Section * ***************************************************************************/ // // Obtain various vars // $confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? true : false; $cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? true : false; if( isset($HTTP_POST_VARS['install_step']) || isset($HTTP_GET_VARS['install_step']) ) { $install_step = ( isset($HTTP_POST_VARS['install_step']) ) ? $HTTP_POST_VARS['install_step'] : $HTTP_GET_VARS['install_step']; } else { $install_step = ""; } $upgrade = ( !empty($HTTP_POST_VARS['upgrade']) ) ? $HTTP_POST_VARS['upgrade']: ''; $upgrade_now = ( !empty($HTTP_POST_VARS['upgrade_now']) ) ? $HTTP_POST_VARS['upgrade_now']:''; $dbms = isset($HTTP_POST_VARS['dbms']) ? $HTTP_POST_VARS['dbms'] : ""; $language = ( !empty($HTTP_POST_VARS['language']) ) ? $HTTP_POST_VARS['language'] : $default_language; $dbhost = ( !empty($HTTP_POST_VARS['dbhost']) ) ? $HTTP_POST_VARS['dbhost'] : ""; $dbuser = ( !empty($HTTP_POST_VARS['dbuser']) ) ? $HTTP_POST_VARS['dbuser'] : ""; $dbpasswd = ( !empty($HTTP_POST_VARS['dbpasswd']) ) ? $HTTP_POST_VARS['dbpasswd'] : ""; $dbname = ( !empty($HTTP_POST_VARS['dbname']) ) ? $HTTP_POST_VARS['dbname'] : ""; $table_prefix = ( !empty($HTTP_POST_VARS['prefix']) ) ? $HTTP_POST_VARS['prefix'] : ""; $admin_name = ( !empty($HTTP_POST_VARS['admin_name']) ) ? $HTTP_POST_VARS['admin_name'] : ""; $admin_pass1 = ( !empty($HTTP_POST_VARS['admin_pass1']) ) ? $HTTP_POST_VARS['admin_pass1'] : ""; $admin_pass2 = ( !empty($HTTP_POST_VARS['admin_pass2']) ) ? $HTTP_POST_VARS['admin_pass2'] : ""; $ftp_path = ( !empty($HTTP_POST_VARS['ftp_path']) ) ? $HTTP_POST_VARS['ftp_path'] : ""; $ftp_user = ( !empty($HTTP_POST_VARS['ftp_user']) ) ? $HTTP_POST_VARS['ftp_user'] : ""; $ftp_pass = ( !empty($HTTP_POST_VARS['ftp_pass']) ) ? $HTTP_POST_VARS['ftp_pass'] : ""; $server_name = ( !empty($HTTP_POST_VARS['server_name']) ) ? $HTTP_POST_VARS['server_name'] : ""; $server_port = ( !empty($HTTP_POST_VARS['server_port']) ) ? $HTTP_POST_VARS['server_port'] : ""; $board_email = ( !empty($HTTP_POST_VARS['board_email']) ) ? $HTTP_POST_VARS['board_email'] : ""; $script_path = ( !empty($HTTP_POST_VARS['script_path']) ) ? $HTTP_POST_VARS['script_path'] : ""; if( @file_exists('config.'.$phpEx) ) { include('config.'.$phpEx); } if( !defined("PHPBB_INSTALLED") ) { include($phpbb_root_path.'includes/sql_parse.'.$phpEx); include($phpbb_root_path.'includes/constants.'.$phpEx); include($phpbb_root_path.'includes/template.'.$phpEx); include($phpbb_root_path.'includes/functions.'.$phpEx); include($phpbb_root_path.'includes/sessions.'.$phpEx); // // Import language file, setup template ... // include($phpbb_root_path.'language/lang_' . $language . '/lang_main.'.$phpEx); include($phpbb_root_path.'language/lang_' . $language . '/lang_admin.'.$phpEx); $template = new Template($phpbb_root_path . "templates/" . $default_template); // // Ok for the time being I'm commenting this out whilst I'm working on // better integration of the install with upgrade as per Bart's request // JLH // if( $upgrade == 1 ) { // require('upgrade.'.$phpEx); $install_step = 1; } // // Load default template for install // $template->set_filenames(array( "body" => "install.tpl") ); $template->assign_vars(array( "L_INSTALLATION" => $lang['Welcome_install']) ); } else { echo'Forum arleady installed'; exit; } // // // if( !empty($HTTP_POST_VARS['send_file']) && $HTTP_POST_VARS['send_file'] == 1 && !defined("PHPBB_INSTALLED") && empty($HTTP_POST_VARS['upgrade_now']) ) { header("Content-Type: text/x-delimtext; name=\"config.$phpEx\""); header("Content-disposition: attachment; filename=config.$phpEx"); // // We need to stripslashes no matter what the setting of magic_quotes_gpc is // because we add slahes at the top if its off, and they are added automaticlly // if it is on. // $HTTP_POST_VARS['config_data'] = stripslashes($HTTP_POST_VARS['config_data']); echo $HTTP_POST_VARS['config_data']; exit; } else if( !empty($HTTP_POST_VARS['send_file']) && $HTTP_POST_VARS['send_file'] == 2 && !defined("PHPBB_INSTALLED") ) { // // Ok we couldn't write the config file so let's try ftping it. // $HTTP_POST_VARS['config_data'] = stripslashes($HTTP_POST_VARS['config_data']); $s_hidden_fields = ''; $s_hidden_fields .= ''; if( $upgrade == 1 ) { $s_hidden_fields .= ''; } $template->assign_block_vars("switch_ftp_file", array()); $template->assign_block_vars("switch_common_install", array()); $template->assign_vars(array( "L_INSTRUCTION_TEXT" => $lang['ftp_instructs'], "L_FTP_INFO" => $lang['ftp_info'], "L_FTP_PATH" => $lang['ftp_path'], "L_FTP_PASS" => $lang['ftp_password'], "L_FTP_USER" => $lang['ftp_username'], "L_SUBMIT" => $lang['Transfer_config'], "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FORM_ACTION" => "install.$phpEx?mode=break") ); $template->pparse("body"); exit; } else if( !empty($HTTP_POST_VARS['ftp_file']) && !defined("PHPBB_INSTALLED") ) { // // Here we'll actually send the file... // $HTTP_POST_VARS['config_data'] = stripslashes($HTTP_POST_VARS['config_data']); $conn_id = @ftp_connect('localhost'); $login_result = @ftp_login($conn_id, "$ftp_user", "$ftp_pass"); if( !$conn_id || !$login_result ) { // // Error couldn't get connected... Go back to option to send file... // $s_hidden_fields = ''; $s_hidden_fields .= ''; if( $upgrade == 1 ) { $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $template->assign_block_vars("switch_upgrade_install", array()); $template->assign_vars(array( "L_UPGRADE_INST" => $lang['continue_upgrade'], "L_UPGRADE_SUBMIT" => $lang['upgrade_submit']) ); } $template->assign_block_vars("switch_common_install", array()); $template->assign_vars(array( "L_INSTRUCTION_TEXT" => $lang['NoFTP_config'], "L_SUBMIT" => $lang['Download_config'], "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FORM_ACTION" => "install.$phpEx?mode=break") ); $template->pparse('body'); exit; } else { // // Write out a temp file... // $tmpfname = @tempnam('/tmp', 'cfg'); @unlink($tmpfname); // unlink for safety on php4.0.3+ $fp = @fopen($tmpfname, 'w'); @fwrite($fp, $HTTP_POST_VARS['config_data']); @fclose($fp); // // Now ftp it across. // @ftp_chdir($conn_id, $ftp_dir); $res = ftp_put($conn_id, 'config.'.$phpEx, $tmpfname, FTP_ASCII); @ftp_quit($conn_id); unlink($tmpfname); if( $upgrade == 1 ) { require('upgrade.'.$phpEx); exit; } // // Ok we are basically done with the install process let's go on // and let the user configure their board now. // // We are going to do this by calling the admin_board.php from the // normal board admin section. // $s_hidden_fields = ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $template->assign_block_vars("switch_common_install", array()); $template->assign_vars(array( "L_INSTRUCTION_TEXT" => $lang['Inst_Step_2'], "L_SUBMIT" => $lang['Finish_Install'], "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FORM_ACTION" => "login.$phpEx") ); $template->pparse('body'); exit(); } } else if( ( empty($install_step) || $admin_pass1 != $admin_pass2 || empty($admin_pass1) || $dbhost == "" ) && !defined("PHPBB_INSTALLED") ) { // // Ok we haven't installed before so lets work our way through the various // steps of the install process. This could turn out to be quite a lengty // process. // // // Step 0 gather the pertinant info for database setup... // Namely dbms, dbhost, dbname, dbuser, and dbpasswd. // // // Guess at some basic info used for install.. // if ( !empty($HTTP_SERVER_VARS['SERVER_NAME']) || !empty($HTTP_ENV_VARS['SERVER_NAME']) ) { $server_name = ( !empty($HTTP_SERVER_VARS['SERVER_NAME']) ) ? $HTTP_SERVER_VARS['SERVER_NAME'] : $HTTP_ENV_VARS['SERVER_NAME']; } else if ( !empty($HTTP_SERVER_VARS['HTTP_HOST']) || !empty($HTTP_ENV_VARS['HTTP_HOST']) ) { $server_name = ( !empty($HTTP_SERVER_VARS['HTTP_HOST']) ) ? $HTTP_SERVER_VARS['HTTP_HOST'] : $HTTP_ENV_VARS['HTTP_HOST']; } else { $server_name = ''; } if ( !empty($HTTP_SERVER_VARS['SERVER_PORT']) || !empty($HTTP_ENV_VARS['SERVER_PORT']) ) { $server_port = ( !empty($HTTP_SERVER_VARS['SERVER_PORT']) ) ? $HTTP_SERVER_VARS['SERVER_PORT'] : $HTTP_ENV_VARS['SERVER_PORT']; } else { $server_port = '80'; } $script_path = preg_replace('/install\.'.$phpEx.'/i', '', $HTTP_SERVER_VARS['PHP_SELF']); $instruction_text = $lang['Inst_Step_0']; if( (($HTTP_POST_VARS['admin_pass1'] != $HTTP_POST_VARS['admin_pass2']) && $install_step != '0') || (empty($HTTP_POST_VARS['admin_pass1']) && !empty($dbhost))) { $instruction_text = $lang['Password_mismatch'] . '
' . $instruction_text; } $lang_options = language_select($language, 'language'); $dbms_options = ''; while( list($dbms_name, $details) = @each($available_dbms) ) { $selected = ( $dbms_name == $dbms ) ? "selected=\"selected\"" : ""; $dbms_options .= '' . $details['LABEL'] . ''; } $dbms_options .= ''; $upgrade_option = 'assign_block_vars("switch_stage_one_install", array()); $template->assign_block_vars("switch_common_install", array()); $template->assign_vars(array( "L_INSTRUCTION_TEXT" => $instruction_text, "L_INITIAL_CONFIGURATION" => $lang['Initial_config'], "L_DATABASE_CONFIGURATION" => $lang['DB_config'], "L_ADMIN_CONFIGURATION" => $lang['Admin_config'], "L_LANGUAGE" => $lang['Default_lang'], "L_DBMS" => $lang['dbms'], "L_DB_HOST" => $lang['DB_Host'], "L_DB_NAME" => $lang['DB_Name'], "L_DB_USER" => $lang['DB_Username'], "L_DB_PASSWORD" => $lang['DB_Password'], "L_DB_PREFIX" => $lang['Table_Prefix'], "L_UPGRADE" => $lang['Install_Method'], "L_ADMIN_USERNAME" => $lang['Admin_Username'], "L_ADMIN_PASSWORD" => $lang['Admin_Password'], "L_ADMIN_CONFIRM_PASSWORD" => $lang['Admin_Password_confirm'], "L_SUBMIT" => $lang['Start_Install'], "L_ADMIN_EMAIL" => $lang['Admin_email'], "L_SERVER_NAME" => $lang['Server_name'], "L_SERVER_PORT" => $lang['Server_port'], "L_SCRIPT_PATH" => $lang['Script_path'], "SCRIPT_PATH" => $script_path, "SERVER_PORT" => $server_port, "SERVER_NAME" => $server_name, "DB_PREFIX" => ( !empty($table_prefix) ) ? $table_prefix : "phpbb_", "DB_HOST" => ( $dbhost != "" ) ? $dbhost : "", "DB_USER" => ( $dbuser != "" ) ? $dbuser : "", "DB_PASSWD" => ( $dbpasswd != "" ) ? $dbpasswd : "", "ADMIN_USERNAME" => ( $admin_name != "" ) ? $admin_name : "", "S_LANG_SELECT" => $lang_options, "S_DBMS_SELECT" => $dbms_options, "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_UPGRADE_SELECT" => $upgrade_option, "S_FORM_ACTION" => "install.$phpEx?mode=break") ); $template->pparse("body"); exit; } else { // // Go ahead and create the DB, then populate it // // MS Access is slightly different in that a pre-built, pre- // populated DB is supplied, all we need do here is update // the relevant entries // if( $reinstall ) { $sql_query = preg_replace('/phpbb_/', $table_prefix, $sql_array['drop_schema']); $sql_count = count($sql_query); for($i = 0; $i < $sql_count; $i++) { $result = $db->sql_query($sql_query[$i]); if( !$result ) { $error = $db->sql_error(); $template->assign_block_vars("switch_error_install", array()); $template->assign_vars(array( "L_ERROR_TITLE" => $lang['Installer_Error'], "L_ERROR" => $lang['Install_db_error'] . '' . $sql_query[$i] . '' . $error . '') ); $template->pparse('body'); exit; } } $admin_name = $userdata['username']; $admin_pass1 = $userdata['user_password']; $language = $userdata['user_lang']; } else if( isset($dbms) ) { switch( $dbms ) { case 'msaccess': case 'mssql-odbc': $check_exts = 'odbc'; $check_other = 'odbc'; break; case 'mssql': $check_exts = 'mssql'; $check_other = 'sybase'; break; case 'mysql': case 'mysql4': $check_exts = 'mysql'; $check_other = 'mysql'; break; case 'postgres': $check_exts = 'pgsql'; $check_other = 'pgsql'; break; } if( !extension_loaded( $check_exts ) && !extension_loaded( $check_other ) ) { $template->assign_block_vars("switch_error_install", array()); $template->assign_vars(array( "L_ERROR_TITLE" => $lang['Installer_Error'], "L_ERROR" => $lang['Install_No_Ext']) ); $template->pparse('body'); exit; } include($phpbb_root_path.'includes/db.'.$phpEx); } $dbms_schema = 'db/schemas/' . $available_dbms[$dbms]['SCHEMA'] . '_schema.sql'; $dbms_basic = 'db/schemas/' . $available_dbms[$dbms]['SCHEMA'] . '_basic.sql'; $remove_remarks = $available_dbms[$dbms]['COMMENTS'];; $delimiter = $available_dbms[$dbms]['DELIM']; $delimiter_basic = $available_dbms[$dbms]['DELIM_BASIC']; if( $install_step == 1 || $reinstall ) { if( $upgrade != 1 ) { if( $dbms != 'msaccess' ) { // // Ok we have the db info go ahead and read in the relevant schema // and work on building the table.. probably ought to provide some // kind of feedback to the user as we are working here in order // to let them know we are actually doing something. // $sql_query = @fread(@fopen($dbms_schema, 'r'), @filesize($dbms_schema)); $sql_query = preg_replace('/phpbb_/', $table_prefix, $sql_query); $sql_query = $remove_remarks($sql_query); $sql_query = split_sql_file($sql_query, $delimiter); $sql_count = count($sql_query); for($i = 0; $i < $sql_count; $i++) { $result = $db->sql_query($sql_query[$i]); if( !$result ) { $error = $db->sql_error(); $template->assign_block_vars("switch_error_install", array()); $template->assign_vars(array( "L_ERROR_TITLE" => $lang['Installer_Error'], "L_ERROR" => $lang['Install_db_error'] . '' . $sql_query[$i] . '' . $error['message'] . '') ); $template->pparse('body'); exit; } } // // Ok tables have been built, let's fill in the basic information // $sql_query = @fread(@fopen($dbms_basic, 'r'), @filesize($dbms_basic)); $sql_query = preg_replace('/phpbb_/', $table_prefix, $sql_query); $sql_query = $remove_remarks($sql_query); $sql_query = split_sql_file($sql_query, $delimiter_basic); $sql_count = count($sql_query); for($i = 0; $i < $sql_count; $i++) { $result = $db->sql_query($sql_query[$i]); if( !$result ) { $error = $db->sql_error(); $template->assign_block_vars("switch_error_install", array()); $template->assign_vars(array( 'L_ERROR_TITLE' => $lang['Installer_Error'], 'L_ERROR' => $lang['Install_db_error'] . '' . $sql_query[$i] . '' . $error['message'] . '') ); $template->pparse('body'); exit; } } } // // Ok at this point they have entered their admin password, let's go // ahead and create the admin account with some basic default information // that they can customize later, and write out the config file. After // this we are going to pass them over to the admin_forum.php script // to set up their forum defaults. // $error = ''; // // Update the default admin user with their information. // $sql = "INSERT INTO " . $table_prefix . "config (config_name, config_value) VALUES ('board_startdate', " . time() . ")"; $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not insert board_startdate :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } $sql = "INSERT INTO " . $table_prefix . "config (config_name, config_value) VALUES ('default_lang', '" . str_replace("\'", "''", $language) . "')"; $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not insert default_lang :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } $sql = "UPDATE " . $table_prefix . "config SET config_value = '" . $server_name . "' WHERE config_name = 'server_name'"; $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } $sql = "UPDATE " . $table_prefix . "config SET config_value = '" . $server_port . "' WHERE config_name = 'server_port'"; $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } $sql = "UPDATE " . $table_prefix . "config SET config_value = '" . $script_path . "' WHERE config_name = 'script_path'"; $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } $sql = "UPDATE " . $table_prefix . "config SET config_value = '" . $board_email . "' WHERE config_name = 'board_email'"; $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } $sql = "UPDATE " . $table_prefix . "config SET config_value = '" . $board_email . "' WHERE config_name = 'email_return_path'"; $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } $sql = "UPDATE " . $table_prefix . "config SET config_value = '" . $board_email . "' WHERE config_name = 'email_from'"; $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } $sql = "UPDATE " . $table_prefix . "config SET config_value = '" . $server_name . "' WHERE config_name = 'cookie_domain'"; $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not update Board info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } $admin_pass_md5 = ( $confirm && $userdata['user_level'] == ADMIN ) ? $admin_pass1 : md5($admin_pass1); $sql = "UPDATE " . $table_prefix . "users SET username = '" . str_replace("\'", "''", $admin_name) . "', user_password='" . str_replace("\'", "''", $admin_pass_md5) . "', user_lang = '" . str_replace("\'", "''", $language) . "', user_email='" . str_replace("\'", "''", $board_email) . "' WHERE username = 'Admin'"; $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not update admin info :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } $sql = "UPDATE " . $table_prefix . "users SET user_regdate = " . time(); $result = $db->sql_query($sql); if( !$result ) { $error .= "Could not update user_regdate :: " . $sql . " :: " . __LINE__ . " :: " . __FILE__ . ""; } // // Change session table to HEAP if MySQL version matches // $sql = "SELECT VERSION() AS mysql_version"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Couldn\'t obtain MySQL Version'); } $row = $db->sql_fetchrow($result); $version = $row['mysql_version']; if ( preg_match("/^(3\.23)|(4\.)/", $version) ) { $sql = "ALTER TABLE " . $table_prefix . "sessions TYPE=HEAP MAX_ROWS=500"; $db->sql_query($sql); } if( $error != '' ) { $template->assign_block_vars("switch_error_install", array()); $template->assign_vars(array( "L_ERROR_TITLE" => $lang['Installer_Error'], "L_ERROR" => $lang['Install_db_error'] . '' . $error) ); $template->pparse('body'); exit; } } if( !$reinstall && !$upgrade_now ) { $template->assign_block_vars("switch_common_install", array()); // // Write out the config file. // $config_data = 'assign_block_vars('switch_ftp_option', array()); $lang['Unwriteable_config'] .= '' . $lang['ftp_option'] . ''; $template->assign_vars(array( "L_CHOOSE_FTP" => $lang['ftp_choose'], "L_ATTEMPT_FTP" => $lang['Attempt_ftp'], "L_SEND_FILE" => $lang['Send_file']) ); } else { $s_hidden_fields .= ''; } if( $upgrade == 1 ) { $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $template->assign_block_vars("switch_upgrade_install", array()); $template->assign_vars(array( "L_UPGRADE_INST" => $lang['continue_upgrade'], "L_UPGRADE_SUBMIT" => $lang['upgrade_submit']) ); } $template->assign_vars(array( "L_INSTRUCTION_TEXT" => $lang['Unwriteable_config'], "L_SUBMIT" => $lang['Download_config'], "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FORM_ACTION" => "install.$phpEx?mode=break") ); $template->pparse('body'); exit; } $result = @fputs($fp, $config_data, strlen($config_data)); @fclose($fp); $upgrade_now = $lang['upgrade_submit']; } else { $template->assign_block_vars("switch_common_install", array()); } // // First off let's check and see if we are supposed to be doing an upgrade. // if ( $upgrade == 1 && $upgrade_now == $lang['upgrade_submit'] ) { define('INSTALLING', true); require('upgrade.'.$phpEx); exit; } // // Ok we are basically done with the install process let's go on // and let the user configure their board now. // // We are going to do this by calling the admin_board.php from the // normal board admin section. // if( !$reinstall ) { $s_hidden_fields = ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; $s_hidden_fields .= ''; } else { $s_hidden_fields = ""; } $template->assign_vars(array( "L_INSTRUCTION_TEXT" => $lang['Inst_Step_2'], "L_SUBMIT" => $lang['Finish_Install'], "S_HIDDEN_FIELDS" => $s_hidden_fields, "S_FORM_ACTION" => ( $reinstall ) ? append_sid("login.$phpEx") : "login.$phpEx") ); $template->pparse('body'); exit; } } ?>




Wgrywałem pliki jeszcze raz ale nadal bez zmian.
Pliki wgywane przez Total Commender, w trybie binarnym

Prosze o pomoc
 
     
Gadatliwa Kasia 

   
ORI



Pomógł: 72 razy
Posty: 956
Wysłany: 11-02-2006, 09:08   

Aby uzyskać pomoc wymagany jest adres forum z problemem.
Podaj pełny, realny adres forum, z http:// (klikalny!), nie używaj aliasów.
Adres ma być w profilu lub w treści posta.
Jesli masz kilka forów, napisz którego problem dotyczy!

Jeśli tego nie zrobisz Twój post zostanie usunięty!

Dupny serwer jak widac.
 
     
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!

Powered by phpBB modified by Przemo © 2003 phpBB
Strona wygenerowana w 0,09 sekundy. Zapytań do SQL: 14
Polecane serwisy

Najlepsze oprogramowanie do prowadzenia sklepu internetowegoNajlepszy program do sklepu firmowany przez Przem'a

Sklep z gadżetami

Design Cart - Tworzenie sklepu internetowego

iRonin.IT

• Zamów reklamę