Plugin Directory

Changeset 3152072


Ignore:
Timestamp:
09/14/2024 11:02:44 PM (17 months ago)
Author:
devozon
Message:

Commit New Version 1.2.0

Location:
fense-block-vpn-proxy/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • fense-block-vpn-proxy/trunk/admin/partials/fense-bpvt-admin-display.php

    r3026592 r3152072  
    1616 * Devozon All rights reserved
    1717 * Copyright (c) 2023-2024.
    18  * Last Update 24 \ 1 \ 2024
     18 * Last Update 15 \ 9 \ 2024
    1919 */
    2020
     
    6262                        </div>
    6363                    </div>
     64
     65                    <?php if ($Fense_FUN->IsDailyLimitReached()): ?>
     66                        <div class="alert alert-danger alert-dismissible alert-additional fade show mb-3 "
     67                             role="alert">
     68                            <div class="alert-body">
     69                                <button type="button" class="btn-close" data-bs-dismiss="alert"
     70                                        aria-label="Close"></button>
     71                                <div class="d-flex">
     72                                    <div class="flex-shrink-0 me-3">
     73                                        <i class="ri-alert-line fs-16 align-middle"></i>
     74                                    </div>
     75                                    <div class="flex-grow-1">
     76                                        <h5 class="alert-heading"><?php echo esc_html__('Looks Like your current plan has reached its daily request limit !', 'fense-block-vpn-proxy') ?></h5>
     77                                        <p class="mb-0"><?php echo esc_html__('You can always upgrade your plan from ', 'fense-block-vpn-proxy')
     78                                                . '<a target="_blank" class="text-danger" href="' . esc_url(FENSE_BPVT_MAIN_LINK) . 'register">' . esc_html__('Fense', 'fense-block-vpn-proxy') . '</a>' ?></p>
     79                                    </div>
     80                                </div>
     81                            </div>
     82                        </div>
     83                    <?php endif; ?>
    6484
    6585                    <div class="col-lg-2">
  • fense-block-vpn-proxy/trunk/admin/partials/fense-bpvt-admin-settings-display.php

    r3026592 r3152072  
    1616 * Devozon All rights reserved
    1717 * Copyright (c) 2023-2024.
    18  * Last Update 24 \ 1 \ 2024
     18 * Last Update 15 \ 9 \ 2024
    1919 */
    2020
     
    193193                </div>
    194194            </div>
    195 
    196195        </div>
    197196
    198197
    199198        <div class="row">
     199
     200            <?php if ($Fense_FUN->IsDailyLimitReached()): ?>
     201                <div class="col-12">
     202                    <div class="alert alert-danger alert-dismissible alert-additional fade show mb-xl-0"
     203                         role="alert">
     204                        <div class="alert-body">
     205                            <button type="button" class="btn-close" data-bs-dismiss="alert"
     206                                    aria-label="Close"></button>
     207                            <div class="d-flex">
     208                                <div class="flex-shrink-0 me-3">
     209                                    <i class="ri-alert-line fs-16 align-middle"></i>
     210                                </div>
     211                                <div class="flex-grow-1">
     212                                    <h5 class="alert-heading"><?php echo esc_html__('Looks Like your current plan has reached its daily request limit !', 'fense-block-vpn-proxy') ?></h5>
     213                                    <p class="mb-0"><?php echo esc_html__('You can always upgrade your plan from ', 'fense-block-vpn-proxy')
     214                                            . '<a target="_blank" class="text-danger" href="' . esc_url(FENSE_BPVT_MAIN_LINK) . 'register">' . esc_html__('Fense', 'fense-block-vpn-proxy') . '</a>' ?></p>
     215                                </div>
     216                            </div>
     217                        </div>
     218                    </div>
     219
     220                </div>
     221            <?php endif; ?>
     222
    200223            <div class="col-md-3">
    201224                <div class="card p-1" style="height: 521px">
  • fense-block-vpn-proxy/trunk/fense-bpvt.php

    r3026592 r3152072  
    1616 * Devozon All rights reserved
    1717 * Copyright (c) 2023-2024.
    18  * Last Update 24 \ 1 \ 2024
     18 * Last Update 15 \ 9 \ 2024
    1919 */
    2020
     
    3535 * Plugin URI:        https://fense.in/
    3636 * Description:       With Fense You can easily Protect Your ads and Website From Bad Traffic that Leads To Destroy Your Rank and Force Ad Network To Close Your Account.
    37  * Version:           1.1.0
     37 * Version:           1.2.0
    3838 * Author:            Devozon
    3939 * Author URI:        https://devozon.com/
     
    5050
    5151
    52 const FENSE_BPVT_VERSION = '1.2';
     52const FENSE_BPVT_VERSION = '1.2.0';
    5353const FENSE_BPVT_API_LINK = 'https://api.fense.in/';
    5454const FENSE_BPVT_MAIN_LINK = 'https://fense.in/';
  • fense-block-vpn-proxy/trunk/includes/core/class-fense-bpvt-functions.php

    r3026592 r3152072  
    1616 * Devozon All rights reserved
    1717 * Copyright (c) 2023-2024.
    18  * Last Update 24 \ 1 \ 2024
     18 * Last Update 15 \ 9 \ 2024
    1919 */
    2020
     
    3838        $cache_time = (int)get_option('TOTAL_GUARD_DEVOZON_enable_cache');
    3939
    40         $api = $this->Fense_data('8.8.8.8', $apkey);
     40        $result = wp_remote_retrieve_body(wp_remote_get(sprintf(esc_url(FENSE_BPVT_MAIN_LINK) . 'wp/%s', $apkey)));
     41        $api = json_decode($result);
    4142
    4243        if ($api->status === 'success') {
     
    4445            set_transient('bpvt_is_api_key_valid', ['status' => 'success'], $cache_time * 3600);
    4546
     47            return true;
     48        }
     49
     50        return false;
     51    }
     52
     53    public function IsDailyLimitReached()
     54    {
     55        $apkey = get_option('FENSE_BPVT_DEVOZON_licence_key');
     56
     57        $result = wp_remote_retrieve_body(wp_remote_get(sprintf(esc_url(FENSE_BPVT_MAIN_LINK) . 'wp/%s', $apkey)));
     58        $api = json_decode($result);
     59
     60        if ($api->DailyLimitReached) {
    4661            return true;
    4762        }
  • fense-block-vpn-proxy/trunk/includes/system/fense-bpvt-check-version.php

    r3026592 r3152072  
    1616 * Devozon All rights reserved
    1717 * Copyright (c) 2023-2024.
    18  * Last Update 24 \ 1 \ 2024
     18 * Last Update 15 \ 9 \ 2024
    1919 */
    2020
     
    5656            echo '<div class="notice notice-warning is-dismissible" style="margin-bottom: 12px">
    5757                <p>' . esc_html__('Hello, there is a new version of Fense extension.', 'fense-block-vpn-proxy') . '
    58                 <a href="https://fense.in/wordpress/download-fense" >' . esc_html__('Download new version for free now.', 'fense-block-vpn-proxy') . '</a></p>
     58                </p>
    5959              </div>';
    6060        }
  • fense-block-vpn-proxy/trunk/languages/fense-block-vpn-proxy-ar.po

    r3026592 r3152072  
    33"Project-Id-Version: fense-block-vpn-proxy\n"
    44"POT-Creation-Date: 2021-12-04 13:17+0200\n"
    5 "PO-Revision-Date: 2024-01-24 18:28+0200\n"
     5"PO-Revision-Date: 2024-09-15 00:44+0300\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    241241
    242242#: admin/partials/fense-bpvt-admin-settings-display.php:125
     243msgid "You can always upgrade your plan from "
     244msgstr "يمكنك دائمًا ترقية خطتك من خلال موقع "
     245
     246#: admin/partials/fense-bpvt-admin-settings-display.php:125
     247msgid "Looks Like your current plan has reached its daily request limit !"
     248msgstr "يبدو أن خطتك الحالية قد وصلت إلى الحد الأقصى للطلب اليومي!"
     249
     250#: admin/partials/fense-bpvt-admin-settings-display.php:125
    243251msgid "Last 7 Days"
    244252msgstr "اخر 7 ايام"
  • fense-block-vpn-proxy/trunk/readme.txt

    r3026592 r3152072  
    11=== Fense Proxy & VPN Blocker ===
    2 Contributors: Sanad Nabil
    3 Tags: Fense,security, proxy blocker, vpn blocker, proxy, vpn, proxycheck, anti spam, spam, anti-spam, Tor, Anti-Tor, Tor block,ads,adsense
     2Contributors: devozon
     3Tags: fense,proxy,adsense,devozon,proxy blocker
    44Requires at least: 4.9
    5 Tested up to: 6.4.2
     5Tested up to: 6.6.2
    66Requires PHP: 5.6
    7 Stable tag: 1.1.0
     7Stable tag: 1.2.0
    88License: GPLv2
    99
    10 Blocks Proxies, VPN's, select Countries, IP's, Ranges & ASN's accessing your site login or commenting on pages & posts using the Fense.in API.
     10Blocks Proxies, VPN's, IP's, Ranges & ASN's accessing your site login or commenting on pages & posts using the Fense.in API.
    1111
    1212== Description ==
     
    4949== Description ==
    5050
    51 This Plugin relies on a 3rd party service called "fense" to enhance its functionality. This service is designed to block and prevent proxy, VPN, and secure websites. Users should be aware of the following information regarding the use of this external service:
     51Fense designed to block proxy, VPN, and secure websites. Users should be aware of the following information regarding the use of this service:
    5252
    5353### External Service Details
Note: See TracChangeset for help on using the changeset viewer.