| Server IP : 164.90.182.227 / Your IP : 216.73.217.47 Web Server : Apache/2.4.29 (Ubuntu) System : Linux wordpress-kuzoconsulting 4.15.0-122-generic #124-Ubuntu SMP Thu Oct 15 13:03:05 UTC 2020 x86_64 User : www-data ( 33) PHP Version : 7.4.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/plugins/wp-fail2ban/ |
Upload File : |
<?php
/**
* WP fail2ban premium
*
* @package wp-fail2ban
* @since 4.3.0
*/
namespace org\lecklider\charles\wordpress\wp_fail2ban;
// @codeCoverageIgnoreStart
defined( 'ABSPATH' ) or exit;
/**
* Freemius integration
*
* @since 4.0.0
*/
if ( function_exists( __NAMESPACE__ . '\\wf_fs' ) ) {
wf_fs()->set_basename( true, WP_FAIL2BAN_FILE );
return;
} else {
/**
* Create a helper function for easy SDK access.
*
* @since 4.0.0
*/
function wf_fs()
{
global $wf_fs ;
if ( !isset( $wf_fs ) ) {
// Activate multisite network integration.
if ( !defined( 'WP_FS__PRODUCT_3072_MULTISITE' ) ) {
define( 'WP_FS__PRODUCT_3072_MULTISITE', true );
}
// Include Freemius SDK.
require_once __DIR__ . '/vendor/freemius/wordpress-sdk/start.php';
$wf_fs = fs_dynamic_init( array(
'id' => '3072',
'slug' => 'wp-fail2ban',
'type' => 'plugin',
'public_key' => 'pk_146d2c2a5bee3b157e43501ef8682',
'is_premium' => false,
'has_addons' => true,
'has_paid_plans' => true,
'trial' => array(
'days' => 14,
'is_require_payment' => false,
),
'menu' => array(
'slug' => 'wp-fail2ban-menu',
'contact' => true,
'support' => true,
'network' => true,
),
'is_live' => true,
) );
}
return $wf_fs;
}
// Init Freemius.
wf_fs();
// Set currency to GBP
wf_fs()->add_filter( 'default_currency', function () {
return 'gbp';
} );
// Set custom icon
wf_fs()->add_filter( 'plugin_icon', function () {
return __DIR__ . '/assets/icon.svg';
} );
// Set forum URL
wf_fs()->add_filter( 'support_forum_url', function () {
if ( wf_fs()->is_trial() ) {
/** Trial forum: Invite-only */
return 'https://forums.invis.net/c/wp-fail2ban-premium/support-trial/';
}
if ( wf_fs()->is_free_plan() ) {
/** Free forum: available to all */
return 'https://forums.invis.net/c/wp-fail2ban/support/';
}
if ( wf_fs()->is_paying() ) {
/** Paying forum: Invite-only */
return 'https://forums.invis.net/c/wp-fail2ban-premium/support/';
}
/** Just in case... */
return 'https://forums.invis.net/c/wp-fail2ban/';
} );
wf_fs()->add_filter( 'show_delegation_option', '__return_false' );
// Signal that SDK was initiated.
do_action( 'wf_fs_loaded' );
require_once __DIR__ . '/functions.php';
require_once __DIR__ . '/init.php';
}