404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.116.118.214: ~ $
<?php
if ( ! defined( 'ABSPATH' ) ) {
	header( 'Status: 403 Forbidden' );
	header( 'HTTP/1.1 403 Forbidden' );
	exit;
}


class Breeze_Api_Handler {
	var $options = array();

	public function __construct( $options ) {
		add_action( 'rest_api_init', array( $this, 'register_breeze_api_route' ) );

		$this->options = $options;
	}

	public function register_breeze_api_route() {
		register_rest_route( 'breeze/v1', '/clear-all-cache', array(
			'methods'             => 'POST',
			'callback'            => array( $this, 'breeze_clear_cache' ),
			'permission_callback' => '__return_true',
		) );
	}

	public function breeze_clear_cache( $request ) {

		if ( $this->options["breeze-secure-api"] && $this->options["breeze-api-token"] != $request->get_param( 'key' ) ) {
			// Access is denied, set status code to 403 (Forbidden)
			$status_code   = 403;
			$response_data = array(
				'message' => 'Access Denied',
			);
		} else {
			// Access is allowed, set status code to 200 (OK)
			$status_code   = 200;
			$response_data = array(
				'message' => 'Cache Cleared',
			);

			( new Breeze_Admin )->breeze_clear_all_cache();
		}

		// Set the HTTP status code in the response
		return new WP_REST_Response( $response_data, $status_code );
	}
}

Filemanager

Name Type Size Permission Actions
cache Folder 0755
cdn-integration Folder 0755
compatibility Folder 0755
helpers Folder 0755
minification Folder 0755
plugin-incompatibility Folder 0755
wp-cli Folder 0755
breeze-admin.php File 39.48 KB 0644
breeze-configuration.php File 72.97 KB 0644
class-breeze-api.php File 1.21 KB 0644
class-breeze-cache-cronjobs.php File 6.03 KB 0644
class-breeze-cloudflare-helper.php File 12.74 KB 0644
class-breeze-disable-emoji-option.php File 3.11 KB 0644
class-breeze-dns-prefetch.php File 1.45 KB 0644
class-breeze-file-permissions.php File 8.26 KB 0644
class-breeze-heartbeat-settings.php File 4.73 KB 0644
class-breeze-lazy-load.php File 10.33 KB 0644
class-breeze-options-reader.php File 3.17 KB 0644
class-breeze-prefetch.php File 1.93 KB 0644
class-breeze-preload-fonts.php File 1.53 KB 0644
class-breeze-query-strings-rules.php File 11.18 KB 0644
class-breeze-store-files-locally.php File 8.94 KB 0644
class-breeze-woocommerce-product-cache.php File 2.54 KB 0644
class-exclude-pages-by-shortcode.php File 3.06 KB 0644
functions.php File 24.62 KB 0644
helpers.php File 34.84 KB 0644