示例#1
0
	1  => 'Verify Configuration',
	2  => 'Connect to the database',
	3  => 'Creating Tables',
	4  => 'Altering Tables',
	5  => 'Inserting Default Data',
	6  => 'Importing Language',
	7  => 'Importing Style Information',
	8  => 'Importing Admin Help',
	9  => 'Obtain Some Default Settings',
	10 => 'Import Default Settings',
	11 => 'Obtain User Data',
	12 => 'Setup Default Data',
	13 => 'Install Complete'
);

if (should_install_suite())
{
	$install_phrases['steps'][15] = $install_phrases['steps'][13];
	$install_phrases['steps'][13] = 'Install Blog';
	$install_phrases['steps'][14] = 'Install CMS';
	ksort($install_phrases['steps']);
}

$install_phrases['welcome'] = '<p style="font-size:10pt"><b>Welcome to vBulletin version 4.0</b></p>
	<p>You are about to perform an install.</p>
	<p>Clicking the <b>[Next Step]</b> button will begin the installation process on your database.</p>
	<p>In order to prevent possible browser crashes during this script, we strongly recommend that you disable any additional toolbars you may be using on your browser, such as the <b>Google</b> toolbar etc.</p>';
$install_phrases['turck'] = '<p><strong>Turck MMCache</strong> has been detected on your server.  <strong>Turck MMCache</strong> is not supported in recent versions of PHP and can cause problems with vBulletin. We recommend that it be disabled.</p>';
$install_phrases['cant_find_config'] = 'We were unable to locate the \'includes/config.php\' file, please confirm that this file exists.';
$install_phrases['cant_read_config'] = 'We were unable to read the \'includes/config.php\' file, please check the permissions.';
$install_phrases['config_exists'] = 'Config file exists and is readable.';
示例#2
0
				if (can_install_default_data() AND $row['count'] == 0)
				{
					define('HIDEPROCEED', true);
					print_cms_default_data_form();
				}
			}
		}
		else
		{
			$vbulletin->GPC['step'] = 15;
		}
	}
}

if ($vbulletin->GPC['step'] == (should_install_suite() ? 15 : 13))
{
	echo "<blockquote>\n";
	echo "<p>" . sprintf($install_phrases['install_complete'], $vbulletin->config['Misc']['admincpdir']) . "</p>\n";
	echo "</blockquote>\n";

	define('HIDEPROCEED', true);
}

print_next_step();
print_upgrade_footer();

/*======================================================================*\
|| ####################################################################
|| # 
|| # CVS: $RCSfile$ - $Revision: 34530 $
示例#3
0
 /**
  * Template Merge
  *
  * @param	array	contains start info
  * @param	int		Master styleid
  *
  */
 function merge_templates($data, $mastertype)
 {
     if ($data['options']['skiptemplatemerge']) {
         $this->skip_message();
         return;
     }
     if ($data['response'] == 'timeout') {
         $this->show_message($this->phrase['final']['step_timed_out']);
         return;
     }
     $this->show_message($this->phrase['final']['merge_template_changes']);
     $startat = intval($data['startat']);
     require_once DIR . '/includes/class_template_merge.php';
     $products = array("''", "'vbulletin'", "'skimlinks'", "'forumrunner'", "'postrelease'");
     if (should_install_suite()) {
         $products = array_merge($products, array("'vbblog'", "'vbcms'"));
     }
     $merge_data = new vB_Template_Merge_Data($this->registry);
     $merge_data->start_offset = $startat;
     $merge_data->add_condition($c = "tnewmaster.product IN (" . implode(', ', $products) . ")");
     $merge = new vB_Template_Merge($this->registry);
     $merge->time_limit = 4;
     $output = array();
     $completed = $merge->merge_templates($merge_data, $output, $mastertype == 'standard' ? -1 : -2);
     if ($output) {
         foreach ($output as $message) {
             $this->show_message($message);
         }
     }
     if ($completed) {
         $this->set_option('upgrade_from', 'version', '', 'string', '');
         if ($error = build_all_styles(0, 0, '', true, $mastertype)) {
             $this->add_error($error, self::PHP_TRIGGER_ERROR, true);
             return false;
         }
     } else {
         return array('startat' => $startat + $merge->fetch_processed_count());
     }
 }