Done ! 403WebShell
403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/middletvnew/wp-content/plugins/easy-google-fonts/src/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/middletvnew/wp-content/plugins/easy-google-fonts/src/includes/api.php
<?php
/**
 * API
 *
 * Registers any functionality to use/extend
 * the WordPress REST API.
 *
 * @package easy-google-fonts
 * @author  Sunny Johal - Titanium Themes <support@titaniumthemes.com>
 */

namespace EGF\Api;

use EGF\Data;

/**
 * DELETE: Bulk Font Controls Delete Endpoint
 */
add_action(
	'rest_api_init',
	function() {
		register_rest_route(
			'easy-google-fonts/v1',
			'font_controls',
			[
				'methods'             => 'DELETE',
				'callback'            => function () {
					return Data\delete_all_font_controls();
				},
				'permission_callback' => function() {
					return current_user_can( 'edit_theme_options' );
				},
			]
		);
	}
);

/**
 * Option API Endpoints
 */
add_action(
	'rest_api_init',
	function() {
		register_rest_route(
			'easy-google-fonts/v1',
			'api_key',
			[
				[
					'methods'             => 'GET',
					'callback'            => function () {
						return get_option( 'tt-font-google-api-key', '' );
					},
					'permission_callback' => function() {
						return current_user_can( 'edit_theme_options' );
					},
				],
				[
					'methods'             => 'POST',
					'callback'            => function ( $request ) {
						return update_option( 'tt-font-google-api-key', $request->get_param( 'api_key' ) );
					},
					'permission_callback' => function() {
						return current_user_can( 'edit_theme_options' );
					},
				],
			]
		);
	}
);

/**
 * POST: Dismiss Admin WP Pointer
 */
add_action(
	'rest_api_init',
	function() {
		register_rest_route(
			'easy-google-fonts/v1',
			'/hide-pointer',
			[
				'methods'             => 'POST',
				'callback'            => function () {
					return update_option( 'egf_show_admin_pointer', false );
				},
				'permission_callback' => function() {
					return current_user_can( 'edit_theme_options' );
				},
			]
		);
	}
);

Youez - 2016 - github.com/yon3zu
LinuXploit