编辑:ms-files.php
<?php /** * Multisite upload handler. * * @since 3.0.0 * * @package WordPress * @subpackage Multisite */ define( 'MS_FILES_REQUEST', true ); define( 'SHORTINIT', true ); /** Load WordPress Bootstrap */ require_once dirname( __DIR__ ) . '/wp-load.php'; if ( ! is_multisite() ) { die( 'Multisite support not enabled' ); } ms_file_constants(); if ( '1' === $current_blog->archived || '1' === $current_blog->spam || '1' === $current_blog->deleted ) { status_header( 404 ); die( '404 — File not found.' ); } if ( ! defined( 'BLOGUPLOADDIR' ) ) { status_header( 500 ); die( '500 — Directory not configured.' ); } $file = rtrim( BLOGUPLOADDIR, '/' ) . '/' . str_replace( '..', '', $_GET['file'] ); if ( ! is_file( $file ) ) { status_header( 404 ); die( '404 — File not found.' ); } $mime = wp_check_filetype( $file ); if ( false === $mime['type'] && function_exists( 'mime_content_type' ) ) { $mime['type'] = mime_content_type( $file ); } if ( $mime['type'] ) { $mimetype = $mime['type']; } else { $mimetype = 'image/' . substr( $file, strrpos( $file, '.' ) + 1 ); } header( 'Content-Type: ' . $mimetype ); // Always send this. if ( ! str_contains( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS' ) ) { header( 'Content-Length: ' . filesize( $file ) ); } // Optional support for X-Sendfile and X-Accel-Redirect. if ( WPMU_ACCEL_REDIRECT ) { header( 'X-Accel-Redirect: ' . str_replace( WP_CONTENT_DIR, '', $file ) ); exit; } elseif ( WPMU_SENDFILE ) { header( 'X-Sendfile: ' . $file ); exit; } $wp_last_modified = gmdate( 'D, d M Y H:i:s', filemtime( $file ) ); $wp_etag = '"' . md5( $wp_last_modified ) . '"'; header( "Last-Modified: $wp_last_modified GMT" ); header( 'ETag: ' . $wp_etag ); header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + 100000000 ) . ' GMT' ); // Support for conditional GET - use stripslashes() to avoid formatting.php dependency. if ( isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ) { $client_etag = stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ); } else { $client_etag = ''; } if ( isset( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) { $client_last_modified = trim( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ); } else { $client_last_modified = ''; } // If string is empty, return 0. If not, attempt to parse into a timestamp. $client_modified_timestamp = $client_last_modified ? strtotime( $client_last_modified ) : 0; // Make a timestamp for our most recent modification. $wp_modified_timestamp = strtotime( $wp_last_modified ); if ( ( $client_last_modified && $client_etag ) ? ( ( $client_modified_timestamp >= $wp_modified_timestamp ) && ( $client_etag === $wp_etag ) ) : ( ( $client_modified_timestamp >= $wp_modified_timestamp ) || ( $client_etag === $wp_etag ) ) ) { status_header( 304 ); exit; } // If we made it this far, just serve the file. readfile( $file ); flush();
保存文件
位置:
home
/
fembzvrs
/
zimeza.com
/
wp-includes
批量上传
创建
创建
批量权限
批量删除
名称
权限
大小
修改时间
操作
↑ 返回上级
-
-
-
-
ID3
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
IXR
drwxr-xr-x
-
2025-07-18 20:29
权限
删除
重命名
PHPMailer
drwxr-xr-x
-
2026-01-29 20:52
权限
删除
重命名
Requests
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
SimplePie
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
Text
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
abilities-api
drwxr-xr-x
-
2025-12-03 02:17
权限
删除
重命名
assets
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
block-bindings
drwxr-xr-x
-
2025-12-21 04:19
权限
删除
重命名
block-patterns
drwxr-xr-x
-
2025-12-21 04:19
权限
删除
重命名
block-supports
drwxr-xr-x
-
2025-12-03 02:17
权限
删除
重命名
blocks
drwxr-xr-x
-
2025-12-03 02:17
权限
删除
重命名
certificates
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
css
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
customize
drwxr-xr-x
-
2025-07-06 17:21
权限
删除
重命名
fonts
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
html-api
drwxr-xr-x
-
2025-12-21 04:20
权限
删除
重命名
images
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
interactivity-api
drwxr-xr-x
-
2025-12-21 04:20
权限
删除
重命名
js
drwxr-xr-x
-
2025-12-03 02:17
权限
删除
重命名
l10n
drwxr-xr-x
-
2025-12-21 04:21
权限
删除
重命名
php-compat
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
pomo
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
rest-api
drwxr-xr-x
-
2025-12-21 04:21
权限
删除
重命名
sitemaps
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
sodium_compat
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
style-engine
drwxr-xr-x
-
2025-07-06 02:11
权限
删除
重命名
theme-compat
drwxr-xr-x
-
2026-05-13 12:01
权限
删除
重命名
widgets
drwxr-xr-x
-
2025-12-21 04:21
权限
删除
重命名
class-walker-category-dropdown.php
-rw-r--r--
2.41 KB
2023-09-14 16:46
编辑
下载
权限
删除
重命名
class-wp-ajax-response.php
-rw-r--r--
5.14 KB
2022-09-12 19:47
编辑
下载
权限
删除
重命名
class-wp-block-list.php
-rw-r--r--
4.6 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-pattern-categories-registry.php
-rw-r--r--
5.32 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-type-registry.php
-rw-r--r--
4.91 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-block-type.php
-rw-r--r--
16.86 KB
2024-05-02 04:01
编辑
下载
权限
删除
重命名
class-wp-classic-to-block-menu-converter.php
-rw-r--r--
3.97 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
class-wp-list-util.php
-rw-r--r--
7.27 KB
2024-02-28 03:38
编辑
下载
权限
删除
重命名
class-wp-post-type.php
-rw-r--r--
29.96 KB
2025-02-09 16:09
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-cookie-service.php
-rw-r--r--
6.72 KB
2022-10-04 07:59
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-email-service.php
-rw-r--r--
10.92 KB
2023-05-02 19:45
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-key-service.php
-rw-r--r--
4.77 KB
2025-02-17 16:24
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-link-service.php
-rw-r--r--
3.38 KB
2022-09-12 19:47
编辑
下载
权限
删除
重命名
class-wp-text-diff-renderer-inline.php
-rw-r--r--
979 B
2024-02-15 00:27
编辑
下载
权限
删除
重命名
class-wp-text-diff-renderer-table.php
-rw-r--r--
18.44 KB
2025-01-23 00:48
编辑
下载
权限
删除
重命名
class-wp-user-meta-session-tokens.php
-rw-r--r--
2.94 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
default-filters.php
-rw-r--r--
37.02 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名
error_log
-rw-r--r--
564 B
2026-05-14 05:46
编辑
下载
权限
删除
重命名
media.php
-rw-r--r--
216.06 KB
2026-03-11 02:16
编辑
下载
权限
删除
重命名
ms-default-filters.php
-rw-r--r--
6.48 KB
2023-02-24 06:23
编辑
下载
权限
删除
重命名
ms-files.php
-rw-r--r--
2.79 KB
2025-12-03 02:17
编辑
下载
权限
删除
重命名