define( 'ABSPATH', dirname(__FILE__) . '/' );
echo ABSPATH;
error_reporting( E_CORE_ERROR | E_CORE_WARNING |
E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR |
E_USER_WARNING | E_RECOVERABLE_ERROR );
if ( file_exists( ABSPATH . 'wp-config.php') ) {
require_once( ABSPATH . 'wp-config.php' );
} elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' )
&& ! file_exists( dirname(ABSPATH)
. '/wp-settings.php' ) ) {
require_once( dirname(ABSPATH) . '/wp-config.php' );
} else {
// A config file doesn't exist
// Set a path for the link to the installer
if ( strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false
)
$path = '';
else
$path = 'wp-admin/';
require_once( ABSPATH . '/wp-includes/load.php' );
require_once( ABSPATH . '/wp-includes/version.php' );
define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
wp_check_php_mysql_versions();
// Die with an error message
require_once( ABSPATH . '/wp-includes/class-wp-error.php'
);
require_once( ABSPATH . '/wp-includes/functions.php' );
require_once( ABSPATH . '/wp-includes/plugin.php' );
$text_direction = 'ltr';
wp_die(sprintf('
There
doesn\'t seem to be a
wp-config.php
file. I need this before we can get
started.
Need more help?
href=\'http://codex.wordpress.org/Editing_wp-config.php\'>We
got
it
.You can create a
wp-config.php
file through a web interface, but this doesn\'t work for all server
setups. The safest way is to manually create the
file.
href=\'%ssetup-config.php\' class=\'button\'>Create
a Configuration
File
',$path), 'WordPress › 閿欒',
array('text_direction' => $text_direction));
}