Ded86
Junior Member | Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору Помогите устанавливаю но выводит PLEASE NOTE: USING THIS INSTALLER WILL DELETE ANY CURRENT INVISION POWER BOARD DATABASE IF YOU ARE USING THE SAME TABLE PREFIX "; //--------------------------------------- // Check to make sure that the config file // is there and it's got suitable permissions to write to: //--------------------------------------- $file = ROOT_PATH."conf_global.php"; $templates = THIS_ROOT_PATH."installfiles/ipb_templates.xml"; $warnings = array(); $checkfiles = array( ROOT_PATH ."ipb_templates.xml", THIS_ROOT_PATH."installfiles/components.php", THIS_ROOT_PATH."installfiles/ipb_macro.xml", THIS_ROOT_PATH."installfiles/ipb_settings.xml", THIS_ROOT_PATH."sql", KERNEL_PATH ."class_converge.php", KERNEL_PATH ."class_xml.php", // KERNEL_PATH ."class_db_".SQL_DRIVER.".php", ROOT_PATH ."conf_global.php", ); $writeable = array( ROOT_PATH."conf_global.php", ROOT_PATH."skin_cache/" ); foreach ( $checkfiles as $cf ) { if ( ! file_exists($cf) ) { $warnings[] = "Cannot locate the file '$cf'."; } } foreach ( $writeable as $cf ) { if ( ! is_writeable($cf) ) { $warnings[] = "Cannot write to the file '$cf'. Please CHMOD to 0777."; } } $phpversion = phpversion(); //---------------------------------- // CHECK BASICS //---------------------------------- if ($phpversion < '4.1.0') { $warnings[] = "You cannot install Invision Power Board. Invision Power Board requires PHP Version 4.1.0 or better."; } if ( ! function_exists('get_cfg_var') ) { $warnings[] = "You cannot install Invision Power Board. Your PHP installation isn't sufficient to run IPB."; } if ( ! function_exists('xml_parse_into_struct') ) { $warnings[] = "You cannot install Invision Power Board. IPB requires that the XML functions in PHP are enabled, please ask your host to enable XML."; } //---------------------------------- // Got error? //---------------------------------- if ( count($warnings) > 0 ) { $err_string = '·'.implode( " ·", $warnings ); $template->contents .= " Warning! The following errors must be rectified before continuing! $err_string "; } else { $template->contents .= " "; } $template->contents .= " "; $template->output(); } function install_error($msg="") { global $std, $template, $root; $template->print_top('Warning!'); $template->contents .= " Warning! The following errors must be rectified before continuing! Please go back and try again! $msg "; $template->output(); } //+-------------------------------------------------------------------------- // CLASSES //+-------------------------------------------------------------------------- class info { function info() { global $INFO; $ibforums->vars = $INFO; } } class template { var $contents = ""; function output() { echo $this->contents; echo " |