404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.118.1.100: ~ $
<?php

if ( ! defined( 'ABSPATH' ) ) {
	header( 'Status: 403 Forbidden' );
	header( 'HTTP/1.1 403 Forbidden' );
	exit;
}

if ( ! class_exists( 'Breeze_Prefetch' ) ) {
	/**
	 * Handles the Prefetch functionality.
	 *
	 * Class Breeze_Prefetch
	 * v
	 */
	class Breeze_Prefetch {

		public function __construct() {
			add_action( 'wp_enqueue_scripts', array( $this, 'load_prefetch_scripts' ) );
		}

		/**
		 * Load Prefetch JavaScript library.
		 * @since 1.2.0
		 * @access public
		 */
		public function load_prefetch_scripts() {
			// Check if the option is enabled by admin.
			$preload_links = Breeze_Options_Reader::get_option_value( 'breeze-preload-links' );

			if ( isset( $preload_links ) && true === filter_var( $preload_links, FILTER_VALIDATE_BOOLEAN ) ) {
				// Load the prefetch library.
				wp_enqueue_script( 'breeze-prefetch', BREEZE_PLUGIN_URL . 'assets/js/js-front-end/breeze-prefetch-links.min.js', array(), BREEZE_VERSION, false );
				wp_localize_script(
					'breeze-prefetch',
					'breeze_prefetch',
					array(
						'local_url'              => home_url(),
						'ignore_remote_prefetch' => true,
						'ignore_list'            => $this->href_ignore_list(),
					)
				);
			}
		}


		/**
		 * The list of links that do not need pre-fetch.
		 *
		 * @return array|mixed
		 * @since 1.2.0
		 * @access public
		 */
		public function href_ignore_list() {

			$exclude_urls = array();

			if (
				isset( $GLOBALS['breeze_config'] ) &&
				isset( $GLOBALS['breeze_config']['exclude_url'] ) &&
				! empty( $GLOBALS['breeze_config']['exclude_url'] )
			) {
				$exclude_urls = $GLOBALS['breeze_config']['exclude_url'];

				$clear_star   = function ( $value ) {
					$value = str_replace( '*', '', $value );
					$value = str_replace( home_url(), '', $value );

					return $value;
				};
				$exclude_urls = array_map( $clear_star, $exclude_urls );
			}
			$exclude_urls[] = '/wp-admin/';

			return $exclude_urls;
		}
	}

	new Breeze_Prefetch();
}

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