<?php
/**
 * Bootstrap file for setting the ABSPATH constant
 * and loading the wp-config.php file. The wp-config.php
 * file will then load the wp-settings.php file, which
 * will then set up the WordPress environment.
 *
 * If the wp-config.php file is not found then an error
 * will be displayed asking the visitor to set up the
 * wp-config.php file.
 *
 * Will also search for wp-config.php in WordPress' parent
 * directory to allow the WordPress directory to remain
 * untouched.
 *
 * @package WordPress
 */

/** Define ABSPATH as this file's directory */
if ( ! defined'ABSPATH' ) ) {
    
define'ABSPATH'__DIR__ '/' );
}

error_reportingE_CORE_ERROR E_CORE_WARNING E_COMPILE_ERROR E_ERROR E_WARNING E_PARSE E_USER_ERROR E_USER_WARNING E_RECOVERABLE_ERROR );

/*
 * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php
 * doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit
 * of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a)
 * and /blog/ is WordPress(b).
 *
 * If neither set of conditions is true, initiate loading the setup process.
 */
if ( file_existsABSPATH 'wp-config.php' ) ) {

    
/** The config file resides in ABSPATH */
    
require_once ABSPATH 'wp-config.php';

} elseif ( @
file_existsdirnameABSPATH ) . '/wp-config.php' ) && ! @file_existsdirnameABSPATH ) . '/wp-settings.php' ) ) {

    
/** The config file resides one level above ABSPATH but is not part of another installation */
    
require_once dirnameABSPATH ) . '/wp-config.php';

} else {

    
// A config file doesn't exist.

    
define'WPINC''wp-includes' );
    require_once 
ABSPATH WPINC '/load.php';

    
// Standardize $_SERVER variables across setups.
    
wp_fix_server_vars();

    require_once 
ABSPATH WPINC '/functions.php';

    
$path wp_guess_url() . '/wp-admin/setup-config.php';

    
/*
     * We're going to redirect to setup-config.php. While this shouldn't result
     * in an infinite loop, that's a silly thing to assume, don't you think? If
     * we're traveling in circles, our last-ditch effort is "Need more help?"
     */
    
if ( false === strpos$_SERVER['REQUEST_URI'], 'setup-config' ) ) {
        
header'Location: ' $path );
        exit;
    }

    
define'WP_CONTENT_DIR'ABSPATH 'wp-content' );
    require_once 
ABSPATH WPINC '/version.php';

    
wp_check_php_mysql_versions();
    
wp_load_translations_early();

    
// Die with an error message
    
$die sprintf(
        
/* translators: %s: wp-config.php */
        
__"There doesn't seem to be a %s file. I need this before we can get started." ),
        
'<code>wp-config.php</code>'
    
) . '</p>';
    
$die .= '<p>' sprintf(
        
/* translators: %s: Documentation URL. */
        
__"Need more help? <a href='%s'>We got it</a>." ),
        
__'https://wordpress.org/support/article/editing-wp-config-php/' )
    ) . 
'</p>';
    
$die .= '<p>' sprintf(
        
/* translators: %s: wp-config.php */
        
__"You can create a %s file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ),
        
'<code>wp-config.php</code>'
    
) . '</p>';
    
$die .= '<p><a href="' $path '" class="button button-large">' __'Create a Configuration File' ) . '</a>';

    
wp_die$die__'WordPress &rsaquo; Error' ) );
}
File Manager

在线文件管理器

编号 名称 类型 大小 可读 可写 可执行 创建时间 修改时间 访问时间 操作
1 index.php 405B 2022-11-18 23:38:58 2020-02-06 16:03:10 2024-10-22 19:08:48 | | | | | |
2 wp-config.php 3.37KB 2022-11-18 23:38:58 2020-07-26 04:27:39 2024-10-22 19:08:48 | | | | | |
3 wp-links-opml.php 2.44KB 2022-11-18 23:38:58 2020-02-06 16:03:10 2024-10-20 17:48:32 | | | | | |
4 .htaccess 461B 2022-11-18 23:38:58 2020-09-26 20:23:15 2024-10-22 10:01:19 | | | | | |
5 error_log 846B 2022-11-18 23:38:58 2020-08-03 19:34:35 2024-10-23 01:32:51 | | | | | |
6 wp-blog-header.php 351B 2022-11-18 23:38:58 2020-02-06 16:03:10 2024-10-21 23:21:32 | | | | | |
7 wp-trackback.php 4.71KB 2022-11-01 08:20:30 2022-11-01 07:24:30 2024-10-23 01:24:52 | | | | | |
8 wp-login.php 46.75KB 2022-11-18 23:38:58 2020-02-10 13:20:04 2024-10-23 01:27:03 | | | | | |
9 wp-comments-post.php 2.28KB 2022-11-18 23:38:58 2020-06-03 05:56:10 2024-08-03 01:33:04 | | | | | |
10 wp-config-sample.php 2.84KB 2022-11-18 23:38:58 2020-02-06 16:03:10 2024-08-03 01:33:04 | | | | | |
11 wp-activate.php 6.75KB 2022-11-18 23:38:58 2020-02-06 16:03:10 2024-10-23 01:27:25 | | | | | |
12 wp-mail.php 8.25KB 2022-11-01 08:20:30 2022-11-01 07:21:27 2024-10-23 01:28:33 | | | | | |
13 wp-load.php 3.22KB 2022-11-18 23:38:58 2020-02-06 16:03:10 2024-10-22 19:08:48 | | | | | |
14 readme.html 7.11KB 2022-11-18 23:38:58 2020-10-31 00:58:44 2024-10-23 01:25:26 | | | | | |
15 license.txt 19.45KB 2022-11-18 23:38:58 2020-02-12 21:24:04 2024-10-23 01:20:49 | | | | | |
16 .htaccess.07122020.bak 462B 2022-11-18 23:38:58 2020-07-26 04:30:20 2024-10-23 01:20:44 | | | | | |
17 .htaccess.07272020.bak 462B 2022-11-18 23:38:58 2020-07-26 08:34:34 2024-10-23 01:21:16 | | | | | |
18 wp-settings.php 18.94KB 2022-11-18 23:38:58 2020-04-10 13:29:06 2024-10-21 23:21:32 | | | | | |
19 wp-signup.php 30.38KB 2022-11-18 23:38:58 2020-02-06 16:03:10 2024-10-07 13:26:42 | | | | | |
20 wp-cron.php 3.85KB 2022-11-18 23:38:58 2020-02-06 16:03:10 2024-10-23 01:29:43 | | | | | |
21 xmlrpc.php 3.06KB 2022-11-18 23:38:58 2020-02-06 16:03:10 2024-10-23 01:22:34 | | | | | |
22 .well-known 91B 2022-09-06 01:01:21 2020-07-25 23:12:03 2024-10-22 17:24:01 | | | | |
23 cgi-bin 0B 2022-09-06 01:01:21 2020-07-25 22:35:05 2024-10-22 17:24:01 | | | | |
24 wp-admin 7.5MB 2022-09-06 01:01:21 2022-09-02 22:48:29 2024-10-22 17:24:01 | | | | |
25 wp-includes 31.8MB 2022-11-01 09:02:32 2022-11-01 09:02:32 2024-10-22 17:24:02 | | | | |
26 wp-content 312.71MB 2022-09-06 01:01:21 2021-01-06 21:53:44 2024-10-22 17:24:02 | | | | |