Plugin Directory

Changeset 3045208


Ignore:
Timestamp:
03/04/2024 07:00:42 PM (2 years ago)
Author:
TechGasp
Message:

Version 7.3.4

Location:
spam-master
Files:
93 added
4 edited

Legend:

Unmodified
Added
Removed
  • spam-master/trunk/class-spammaster.php

    r3045173 r3045208  
    33 * Plugin Name: Spam Master
    44 * Plugin URI: https://www.spammaster.org
    5  * Version: 7.3.3
     5 * Version: 7.3.4
    66 * Author: TechGasp
    77 * Author URI: https://www.techgasp.com
     
    3434if ( ! class_exists( 'SpamMaster' ) ) :
    3535
    36     define( 'SPAM_MASTER_VERSION', '7.3.3' );
     36    define( 'SPAM_MASTER_VERSION', '7.3.4' );
    3737    define( 'SPAM_MASTER_NAME', 'Spam Master' );
    3838    define( 'SPAM_MASTER_DOMAIN', 'SpamMaster.org' );
     
    11401140            ?>
    11411141            <div class="notice notice-warning is-dismissible">
    1142             <p><strong><?php echo esc_attr( __( 'Spam Master Malfunction 8!!!', 'spam-master' ) ); ?></strong>. <?php echo esc_attr( __( 'We have detected CDN WAF that masks the end users IP addresses with CDN, WAF Ips. Please read Spam Master online documentation to solve the issue.', 'spam-master' ) ); ?>
     1142            <p><strong><?php echo esc_attr( __( 'Spam Master Malfunction 8!!!', 'spam-master' ) ); ?></strong>. <?php echo esc_attr( __( 'We have detected CDN WAF that masks the end users IP addresses with CDN, WAF Ips. In Spam Master Settings -> Protection Tools tab activate CDN. Please read Spam Master online documentation to solve the issue.', 'spam-master' ) ); ?>
    11431143            </div>
    11441144            <?php
  • spam-master/trunk/includes/admin/spam-master-admin-status-table.php

    r3045149 r3045208  
    203203        // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
    204204        $wpdb->update( $spam_master_keys, $data_ip, $where_ip );
     205
     206        if ( ! empty( $_POST['spam_master_new_license'] ) ) {
     207            $spam_master_new_license = sanitize_text_field( wp_unslash( $_POST['spam_master_new_license'] ) );
     208            $spam_license_key = $spam_master_new_license;
     209            $data_spam2  = array( 'spamvalue' => substr( $spam_master_new_license, 0, 64 ) );
     210            $where_spam2 = array(
     211                'spamkey'  => 'Option',
     212                'spamtype' => 'spam_license_key',
     213            );
     214            // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
     215            $wpdb->update( $spam_master_keys, $data_spam2, $where_spam2 );
     216        }
    205217
    206218        if ( ! empty( $spam_license_key ) ) {
     
    327339            ?>
    328340            <div id="message" class="updated fade">
    329             <p><?php echo esc_attr( __( 'Key RE-SYNC Done. Please wait refreshing in 5 seconds.', 'spam-master' ) ); ?></p>
     341            <p><strong><?php echo esc_attr( __( 'Key RE-SYNC Done. Please wait refreshing in 5 seconds.', 'spam-master' ) ); ?></strong></p>
    330342            </div>
    331343            <?php
     
    333345            ?>
    334346            <div class="notice notice-warning is-dismissible">
    335             <p><?php echo esc_attr( __( 'Your Key is empty, insert a valid key, press Save & Refresh. Please wait refreshing in 5 seconds.', 'spam-master' ) ); ?></p>
     347            <p><strong><?php echo esc_attr( __( 'Your Key is empty, insert a valid key, press Save & Refresh. Please wait refreshing in 5 seconds.', 'spam-master' ) ); ?></strong></p>
    336348            </div>
    337349            <?php
     
    505517        ?>
    506518        <div id="message" class="updated fade">
    507         <p><?php echo esc_attr( __( 'Key Saved. Please wait refreshing in 5 seconds.', 'spam-master' ) ); ?></p>
     519        <p><strong><?php echo esc_attr( __( 'Key Saved. Please wait refreshing in 5 seconds.', 'spam-master' ) ); ?></strong></p>
    508520        </div>
    509521        <?php
     
    511523        ?>
    512524        <div class="notice notice-warning is-dismissible">
    513         <p><?php echo esc_attr( __( 'Your Key is empty, insert a valid key. Please wait refreshing in 5 seconds.', 'spam-master' ) ); ?></p>
     525        <p><strong><?php echo esc_attr( __( 'Your Key is empty, insert a valid key. Please wait refreshing in 5 seconds.', 'spam-master' ) ); ?></strong></p>
    514526        </div>
    515527        <?php
     
    544556// STATUS EXPIRED.
    545557if ( 'EXPIRED' === $spam_master_status ) {
     558    $spam_master_type_small_display   = 'PRO';
     559    $spam_master_type_small_span      = 'spam-master-admin-red spam-master-top-admin-shadow-offline';
    546560    $spam_master_protection_selection = __( 'EXPIRED > OFFLINE', 'spam-master' );
    547561    $spam_master_protection_bgcolor   = 'spam-master-top-admin-red';
     
    554568// STATUS MALFUNCTION_1.
    555569if ( 'MALFUNCTION_1' === $spam_master_status ) {
     570    if ( 'FULL' === $spam_master_type ) {
     571        $spam_master_type_small_display   = 'PRO';
     572        $spam_master_type_small_span      = 'spam-master-admin-green spam-master-top-admin-shadow-offline';
     573    } else {
     574        $spam_master_type_small_display   = $spam_master_type;
     575        $spam_master_type_small_span      = 'spam-master-admin-yellow spam-master-top-admin-shadow-red';
     576    }
    556577    $spam_master_protection_selection = __( 'MALFUNCTION 1 > ACTIVE > ONLINE', 'spam-master' );
    557578    $spam_master_protection_bgcolor   = 'spam-master-top-admin-orange';
     
    564585// STATUS MALFUNCTION_2.
    565586if ( 'MALFUNCTION_2' === $spam_master_status ) {
     587    if ( 'FULL' === $spam_master_type ) {
     588        $spam_master_type_small_display   = 'PRO';
     589        $spam_master_type_small_span      = 'spam-master-admin-green spam-master-top-admin-shadow-offline';
     590    } else {
     591        $spam_master_type_small_display   = $spam_master_type;
     592        $spam_master_type_small_span      = 'spam-master-admin-yellow spam-master-top-admin-shadow-red';
     593    }
    566594    $spam_master_protection_selection = __( 'MALFUNCTION 2 > ACTIVE > ONLINE', 'spam-master' );
    567595    $spam_master_protection_bgcolor   = 'spam-master-top-admin-orangina';
     
    574602// STATUS MALFUNCTION_3.
    575603if ( 'MALFUNCTION_3' === $spam_master_status ) {
     604    $spam_master_type_small_display   = false;
     605    $spam_master_type_small_span      = false;
    576606    $spam_master_protection_selection = __( 'MALFUNCTION 3 > INACTIVE > OFFLINE', 'spam-master' );
    577607    $spam_master_protection_bgcolor   = 'spam-master-top-admin-red';
     
    585615// STATUS MALFUNCTION_4.
    586616if ( 'MALFUNCTION_4' === $spam_master_status ) {
     617    $spam_master_type_small_display   = false;
     618    $spam_master_type_small_span      = false;
    587619    $spam_master_protection_selection = __( 'MALFUNCTION 4 > INACTIVE > OFFLINE', 'spam-master' );
    588620    $spam_master_protection_bgcolor   = 'spam-master-top-admin-yellow';
     
    596628// STATUS MALFUNCTION_5.
    597629if ( 'MALFUNCTION_5' === $spam_master_status ) {
     630    $spam_master_type_small_display   = false;
     631    $spam_master_type_small_span      = false;
    598632    $spam_master_protection_selection = __( 'MALFUNCTION 5 > INACTIVE > OFFLINE', 'spam-master' );
    599633    $spam_master_protection_bgcolor   = 'spam-master-top-admin-yellow';
     
    607641// STATUS MALFUNCTION_6.
    608642if ( 'MALFUNCTION_6' === $spam_master_status ) {
     643    $spam_master_type_small_display   = false;
     644    $spam_master_type_small_span      = false;
    609645    $spam_master_protection_selection = __( 'MALFUNCTION 6 > INACTIVE > OFFLINE', 'spam-master' );
    610646    $spam_master_protection_bgcolor   = 'spam-master-top-admin-yellow';
     
    618654// STATUS MALFUNCTION_7.
    619655if ( 'MALFUNCTION_7' === $spam_master_status ) {
     656    $spam_master_type_small_display   = false;
     657    $spam_master_type_small_span      = false;
    620658    $spam_master_protection_selection = __( 'MALFUNCTION 7 > INACTIVE > OFFLINE', 'spam-master' );
    621659    $spam_master_protection_bgcolor   = 'spam-master-top-admin-yellow';
     
    629667// STATUS MALFUNCTION_8.
    630668if ( 'MALFUNCTION_8' === $spam_master_status ) {
     669    $spam_master_type_small_display   = false;
     670    $spam_master_type_small_span      = false;
    631671    $spam_master_protection_selection = __( 'MALFUNCTION 8 > INACTIVE > OFFLINE', 'spam-master' );
    632672    $spam_master_protection_bgcolor   = 'spam-master-top-admin-yellow';
     
    640680// STATUS DISCONNECTED.
    641681if ( 'DISCONNECTED' === $spam_master_status ) {
     682    $spam_master_type_small_display   = false;
     683    $spam_master_type_small_span      = false;
    642684    $spam_master_protection_selection = __( 'DISCONNECTED > INACTIVE > OFFLINE', 'spam-master' );
    643685    $spam_master_protection_bgcolor   = 'spam-master-top-admin-yellow';
     
    651693// STATUS UNSTABLE.
    652694if ( 'UNSTABLE' === $spam_master_status ) {
     695    $spam_master_type_small_display   = false;
     696    $spam_master_type_small_span      = false;
    653697    $spam_master_protection_selection = __( 'UNSTABLE > WARNING', 'spam-master' );
    654698    $spam_master_protection_bgcolor   = 'spam-master-top-admin-yellow';
     
    662706// STATUS HIGH VOLUME.
    663707if ( 'HIGH_VOLUME' === $spam_master_status ) {
     708    $spam_master_type_small_display   = false;
     709    $spam_master_type_small_span      = false;
    664710    $spam_master_protection_selection = __( 'HIGH VOLUME > WARNING', 'spam-master' );
    665711    $spam_master_protection_bgcolor   = 'spam-master-top-admin-yellow';
     
    673719// STATUS INACTIVE, NO KEY SENT YET.
    674720if ( 'INACTIVE' === $spam_master_status ) {
     721    $spam_master_type_small_display   = false;
     722    $spam_master_type_small_span      = false;
    675723    $spam_master_protection_selection = __( 'INACTIVE > OFFLINE', 'spam-master' );
    676724    $spam_master_protection_bgcolor   = 'spam-master-top-admin-yellow';
     
    689737if ( empty( $spam_master_expires ) ) {
    690738    $spam_master_expires = '0000-00-00 00:00:00';
     739}
     740if ( empty( $spam_master_attached ) ) {
     741    $spam_master_attached = 'NO ATTACHED EMAIL';
    691742}
    692743
  • spam-master/trunk/includes/admin/spam-master-admin-tools-table.php

    r3045150 r3045208  
    512512                        </tr>';
    513513}
    514 if ( 'VALID' === $spam_master_status || 'MALFUNCTION_1' === $spam_master_status || 'MALFUNCTION_2' === $spam_master_status ) {
     514if ( 'VALID' === $spam_master_status || 'MALFUNCTION_1' === $spam_master_status || 'MALFUNCTION_2' === $spam_master_status || 'MALFUNCTION_8' === $spam_master_status) {
    515515    ?>
    516516<form method="post" width='1'>
  • spam-master/trunk/readme.txt

    r3045173 r3045208  
    44Requires at least: 5.0
    55Tested up to: 6.4.3
    6 Stable tag: 7.3.3
     6Stable tag: 7.3.4
    77License: GPLv2 or later
    88
     
    215215
    216216== Changelog ==
     217
     218= 7.3.4 =
     219Fixing Undefined variable: spam_master_type_small_span
     220Fixing Undefined variable: spam_master_type_small_display
     221Fixing inserting new key.
     222Fixing re-sync key.
     223Fixing protection tools with malfunction_8
    217224
    218225= 7.3.3 =
Note: See TracChangeset for help on using the changeset viewer.