__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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.3
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'WP_FS__SECURITY_PARAMS_PREFIX', 's_' );
/**
* Class FS_Security
*/
class FS_Security {
/**
* @var FS_Security
* @since 1.0.3
*/
private static $_instance;
/**
* @var FS_Logger
* @since 1.0.3
*/
private static $_logger;
/**
* @return \FS_Security
*/
public static function instance() {
if ( ! isset( self::$_instance ) ) {
self::$_instance = new FS_Security();
self::$_logger = FS_Logger::get_logger(
WP_FS__SLUG,
WP_FS__DEBUG_SDK,
WP_FS__ECHO_DEBUG_SDK
);
}
return self::$_instance;
}
private function __construct() {
}
/**
* @param \FS_Scope_Entity $entity
* @param int $timestamp
* @param string $action
*
* @return string
*/
function get_secure_token( FS_Scope_Entity $entity, $timestamp, $action = '' ) {
return md5(
$timestamp .
$entity->id .
$entity->secret_key .
$entity->public_key .
$action
);
}
/**
* @param \FS_Scope_Entity $entity
* @param int|bool $timestamp
* @param string $action
*
* @return array
*/
function get_context_params( FS_Scope_Entity $entity, $timestamp = false, $action = '' ) {
if ( false === $timestamp ) {
$timestamp = time();
}
return array(
's_ctx_type' => $entity->get_type(),
's_ctx_id' => $entity->id,
's_ctx_ts' => $timestamp,
's_ctx_secure' => $this->get_secure_token( $entity, $timestamp, $action ),
);
}
/**
* Gets a sandbox trial token for a given plugin, plan, and trial timestamp.
*
* @param FS_Plugin $plugin
* @param FS_Plugin_Plan $plan
* @param int $trial_timestamp
*
* @return string
*/
function get_trial_token( FS_Plugin $plugin, FS_Plugin_Plan $plan, $trial_timestamp ) {
return md5(
$plugin->secret_key . $plugin->public_key .
$plan->trial_period .
$plan->id .
$trial_timestamp
);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| customizer | Folder | 0750 |
|
|
| debug | Folder | 0750 |
|
|
| entities | Folder | 0750 |
|
|
| managers | Folder | 0750 |
|
|
| sdk | Folder | 0750 |
|
|
| supplements | Folder | 0750 |
|
|
| class-freemius-abstract.php | File | 11.99 KB | 0640 |
|
| class-freemius.php | File | 990.57 KB | 0640 |
|
| class-fs-admin-notices.php | File | 11.62 KB | 0640 |
|
| class-fs-api.php | File | 22.07 KB | 0640 |
|
| class-fs-garbage-collector.php | File | 16.39 KB | 0640 |
|
| class-fs-lock.php | File | 2.79 KB | 0640 |
|
| class-fs-logger.php | File | 17.53 KB | 0640 |
|
| class-fs-options.php | File | 16.57 KB | 0640 |
|
| class-fs-plugin-updater.php | File | 64.06 KB | 0640 |
|
| class-fs-security.php | File | 2.17 KB | 0640 |
|
| class-fs-storage.php | File | 22.78 KB | 0640 |
|
| class-fs-user-lock.php | File | 2.27 KB | 0640 |
|
| fs-core-functions.php | File | 52.55 KB | 0640 |
|
| fs-essential-functions.php | File | 14.95 KB | 0640 |
|
| fs-html-escaping-functions.php | File | 4.07 KB | 0640 |
|
| fs-plugin-info-dialog.php | File | 81.94 KB | 0640 |
|
| index.php | File | 87 B | 0640 |
|
| l10n.php | File | 1.09 KB | 0640 |
|