e index.php,WordPress源码分析-index.php

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));

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值