Cylul007 Webshell
Uname
:
Linux h2web131 4.9.0-0.bpo.12-amd64 #1 SMP Debian 4.9.210-1~deb8u1 (2020-02-21) x86_64
PHP
:
7.2.34
on
fpm-fcgi
Time
:
10 Dec 2025 21:29:53
Path :
/
home
/
clients
/
bc55d1d9a618a64acfd6a3c258c080a1
/
web
/
wp-content
/
plugins
/
instant-images
/
api
/
File Upload :
New File
New Folder
Current File : /home/clients/bc55d1d9a618a64acfd6a3c258c080a1/web/wp-content/plugins/instant-images/api/test.php
Download
HOME
<?php /* * rest_api_init * Custom /resize route * * @since 3.0 */ add_action( 'rest_api_init', function () { $my_namespace = 'instant-images'; $my_endpoint = '/test'; register_rest_route( $my_namespace, $my_endpoint, array( 'methods' => 'GET', 'callback' => 'instant_images_test', ) ); }); /* * test * Test REST API access * * @param $request $_POST * @return $response json * @since 3.2 */ function instant_images_test( WP_REST_Request $request ) { if (is_user_logged_in() && current_user_can( apply_filters('instant_images_user_role', 'upload_files') )){ error_reporting(E_ALL|E_STRICT); // Access is enable, send the response $response = array( 'success' => true ); // Send response as JSON wp_send_json($response); } }
Copyright © 2018 - Powered By CytoXploit