Update includes in import files, fixes #1427

git-svn-id: http://svn.automattic.com/wordpress/trunk@2687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-07-02 23:39:29 +00:00
parent e065df406a
commit df98e352ac
7 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
<?php
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. Double check that you updated wp-config-sample.php with the proper database connection information and renamed it to wp-config.php.");
require_once('../wp-config.php');
require('upgrade-functions.php');
require_once('upgrade-functions.php');
$step = $_GET['step'];
if (!$step) $step = 0;
header( 'Content-Type: text/html; charset=utf-8' );

View File

@ -16,7 +16,7 @@ for ($i=0; $i<count($wpvarstoreset); $i += 1) {
}
}
require_once('../wp-config.php');
require('upgrade-functions.php');
require_once('upgrade-functions.php');
header( 'Content-Type: text/html; charset=utf-8' );
switch ($action) {

View File

@ -2,7 +2,7 @@
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. You must install WordPress before you import any entries.");
require_once('../wp-config.php');
require('upgrade-functions.php');
require_once('upgrade-functions.php');
$wpvarstoreset = array('action', 'gmpath', 'archivespath', 'lastentry');
for ($i=0; $i<count($wpvarstoreset); $i += 1) {

View File

@ -13,7 +13,7 @@ $add_hours = intval($timezone_offset);
$add_minutes = intval(60 * ($timezone_offset - $add_hours));
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. You must install WordPress before you import any entries.");
require('../wp-config.php');
require_once('../wp-config.php');
$step = $_GET['step'];
if (!$step) $step = 0;

View File

@ -4,8 +4,8 @@ define('MTEXPORT', '');
//should be define('MTEXPORT', 'import.txt');
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. You must install WordPress before you import any entries.");
require('../wp-config.php');
require ('upgrade-functions.php');
require_once('../wp-config.php');
require_once('upgrade-functions.php');
$step = $_GET['step'];
if (!$step) $step = 0;
header( 'Content-Type: text/html; charset=utf-8' );

View File

@ -18,7 +18,7 @@ $add_hours = intval($timezone_offset);
$add_minutes = intval(60 * ($timezone_offset - $add_hours));
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. You must install WordPress before you import any entries.");
require('../wp-config.php');
require_once('../wp-config.php');
$step = $_GET['step'];
if (!$step) $step = 0;

View File

@ -8,8 +8,8 @@ $tp_database_password = 'password';
$tp_database_host = 'localhost';
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. Double check that you updated wp-config-sample.php with the proper database connection information and renamed it to wp-config.php.");
require('../wp-config.php');
require('upgrade-functions.php');
require_once('../wp-config.php');
require_once('upgrade-functions.php');
$step = $_GET['step'];
if (!$step) $step = 0;