<?php
/**
 * XML-RPC protocol support for WordPress
 *
 * @package WordPress
 */

/**
 * Whether this is an XML-RPC Request
 *
 * @var bool
 */
define'XMLRPC_REQUEST'true );

// Some browser-embedded clients send cookies. We don't want them.
$_COOKIE = array();

// A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not set by default,
// but we can do it ourself.
if ( ! isset( $HTTP_RAW_POST_DATA ) ) {
    
$HTTP_RAW_POST_DATA file_get_contents'php://input' );
}

// Fix for mozBlog and other cases where '<?xml' isn't on the very first line.
if ( isset( $HTTP_RAW_POST_DATA ) ) {
    
$HTTP_RAW_POST_DATA trim$HTTP_RAW_POST_DATA );
}

/** Include the bootstrap for setting up WordPress environment */
require_once __DIR__ '/wp-load.php';

if ( isset( 
$_GET['rsd'] ) ) { // http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
    
header'Content-Type: text/xml; charset=' get_option'blog_charset' ), true );
    echo 
'<?xml version="1.0" encoding="' get_option'blog_charset' ) . '"?' '>';
    
?>
<rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
    <service>
        <engineName>WordPress</engineName>
        <engineLink>https://wordpress.org/</engineLink>
        <homePageLink><?php bloginfo_rss'url' ); ?></homePageLink>
        <apis>
            <api name="WordPress" blogID="1" preferred="true" apiLink="<?php echo site_url'xmlrpc.php''rpc' ); ?>" />
            <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php echo site_url'xmlrpc.php''rpc' ); ?>" />
            <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url'xmlrpc.php''rpc' ); ?>" />
            <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url'xmlrpc.php''rpc' ); ?>" />
            <?php
            
/**
             * Add additional APIs to the Really Simple Discovery (RSD) endpoint.
             *
             * @link http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
             *
             * @since 3.5.0
             */
            
do_action'xmlrpc_rsd_apis' );
            
?>
        </apis>
    </service>
</rsd>
    <?php
    
exit;
}

require_once 
ABSPATH 'wp-admin/includes/admin.php';
require_once 
ABSPATH WPINC '/class-IXR.php';
require_once 
ABSPATH WPINC '/class-wp-xmlrpc-server.php';

/**
 * Posts submitted via the XML-RPC interface get that title
 *
 * @name post_default_title
 * @var string
 */
$post_default_title '';

/**
 * Filters the class used for handling XML-RPC requests.
 *
 * @since 3.1.0
 *
 * @param string $class The name of the XML-RPC server class.
 */
$wp_xmlrpc_server_class apply_filters'wp_xmlrpc_server_class''wp_xmlrpc_server' );
$wp_xmlrpc_server       = new $wp_xmlrpc_server_class;

// Fire off the request.
$wp_xmlrpc_server->serve_request();

exit;

/**
 * logIO() - Writes logging info to a file.
 *
 * @deprecated 3.4.0 Use error_log()
 * @see error_log()
 *
 * @param string $io Whether input or output
 * @param string $msg Information describing logging reason.
 */
function logIO$io$msg ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
    
_deprecated_function__FUNCTION__'3.4.0''error_log()' );
    if ( ! empty( 
$GLOBALS['xmlrpc_logging'] ) ) {
        
error_log$io ' - ' $msg );
    }
}
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-09-30 06:55:15 | | | | | |
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-07 13:33:36 | | | | | |
8 wp-login.php 46.75KB 2022-11-18 23:38:58 2020-02-10 13:20:04 2024-10-20 16:59:38 | | | | | |
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-06 17:26:28 | | | | | |
12 wp-mail.php 8.25KB 2022-11-01 08:20:30 2022-11-01 07:21:27 2024-10-21 05:05:41 | | | | | |
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-15 13:45:51 | | | | | |
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-20 20:49:57 | | | | | |
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 | | | | |