Plugin Directory

Changeset 3045786


Ignore:
Timestamp:
03/05/2024 03:13:30 PM (2 years ago)
Author:
TechGasp
Message:

Version 7.3.5

Location:
spam-master
Files:
93 added
7 edited

Legend:

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

    r3045208 r3045786  
    33 * Plugin Name: Spam Master
    44 * Plugin URI: https://www.spammaster.org
    5  * Version: 7.3.4
     5 * Version: 7.3.5
    66 * Author: TechGasp
    77 * Author URI: https://www.techgasp.com
     
    3434if ( ! class_exists( 'SpamMaster' ) ) :
    3535
    36     define( 'SPAM_MASTER_VERSION', '7.3.4' );
     36    define( 'SPAM_MASTER_VERSION', '7.3.5' );
    3737    define( 'SPAM_MASTER_NAME', 'Spam Master' );
    3838    define( 'SPAM_MASTER_DOMAIN', 'SpamMaster.org' );
     
    381381
    382382    // Hook connection.
    383     if ( is_multisite() ) {
    384         $future = false;
    385     } else {
    386         if ( ! isset( $spam_master_connection ) || empty( $spam_master_connection ) && '2.4' === $spam_master_keys_db_installed_ver ) {
    387             require_once WP_PLUGIN_DIR . '/spam-master/includes/admin/spam-master-admin-connection-sender.php';
    388         }
     383    if ( ! isset( $spam_master_connection ) || empty( $spam_master_connection ) && '2.4' === $spam_master_keys_db_installed_ver ) {
     384        require_once WP_PLUGIN_DIR . '/spam-master/includes/admin/spam-master-admin-connection-sender.php';
    389385    }
    390386}
  • spam-master/trunk/includes/admin/spam-master-admin-connection-sender.php

    r3045158 r3045786  
    147147        );
    148148        // create lic hash.
    149         $spam_master_lic_hash = substr( md5( uniqid( wp_rand(), true ) ), 0, 64 );
     149        // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand
     150        $spam_master_lic_hash = substr( md5( uniqid( mt_rand(), true ) ), 0, 64 );
    150151        if ( empty( $spam_master_lic_hash ) ) {
    151152            $spam_master_lic_hash = 'md5-' . gmdate( 'YmdHis' );
  • spam-master/trunk/includes/admin/spam-master-admin-status-table.php

    r3045208 r3045786  
    206206        if ( ! empty( $_POST['spam_master_new_license'] ) ) {
    207207            $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(
     208            $spam_license_key        = $spam_master_new_license;
     209            $data_spam2              = array( 'spamvalue' => substr( $spam_master_new_license, 0, 64 ) );
     210            $where_spam2             = array(
    211211                'spamkey'  => 'Option',
    212212                'spamtype' => 'spam_license_key',
     
    569569if ( 'MALFUNCTION_1' === $spam_master_status ) {
    570570    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';
     571        $spam_master_type_small_display = 'PRO';
     572        $spam_master_type_small_span    = 'spam-master-admin-green spam-master-top-admin-shadow-offline';
    573573    } 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';
     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';
    576576    }
    577577    $spam_master_protection_selection = __( 'MALFUNCTION 1 > ACTIVE > ONLINE', 'spam-master' );
     
    586586if ( 'MALFUNCTION_2' === $spam_master_status ) {
    587587    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';
     588        $spam_master_type_small_display = 'PRO';
     589        $spam_master_type_small_span    = 'spam-master-admin-green spam-master-top-admin-shadow-offline';
    590590    } 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';
     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';
    593593    }
    594594    $spam_master_protection_selection = __( 'MALFUNCTION 2 > ACTIVE > ONLINE', 'spam-master' );
  • spam-master/trunk/includes/admin/spam-master-admin-tools-table.php

    r3045208 r3045786  
    512512                        </tr>';
    513513}
    514 if ( 'VALID' === $spam_master_status || 'MALFUNCTION_1' === $spam_master_status || 'MALFUNCTION_2' === $spam_master_status || 'MALFUNCTION_8' === $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/includes/admin/upgrade/spam-master-admin-upgrade-to-6-6-0.php

    r2783190 r3045786  
    8888        }
    8989        // Create db protection hash.
    90         $spam_master_db_protection_hash = substr( md5( uniqid( wp_rand(), true ) ), 0, 64 );
     90        // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand
     91        $spam_master_db_protection_hash = substr( md5( uniqid( mt_rand(), true ) ), 0, 64 );
    9192        if ( empty( $spam_master_db_protection_hash ) ) {
    9293            $spam_master_db_protection_hash = 'md5-' . gmdate( 'YmdHis' );
     
    10441045    }
    10451046    // Create db protection hash.
    1046     $spam_master_db_protection_hash = substr( md5( uniqid( wp_rand(), true ) ), 0, 64 );
     1047    // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand
     1048    $spam_master_db_protection_hash = substr( md5( uniqid( mt_rand(), true ) ), 0, 64 );
    10471049    if ( empty( $spam_master_db_protection_hash ) ) {
    10481050        $spam_master_db_protection_hash = 'md5-' . gmdate( 'YmdHis' );
  • spam-master/trunk/includes/admin/upgrade/spam-master-admin-upgrade-to-6-6-2.php

    r2783190 r3045786  
    1818        $is_there = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_db_protection_hash'" );
    1919        if ( empty( $is_there ) ) {
    20             $spam_master_db_protection_hash = substr( md5( uniqid( wp_rand(), true ) ), 0, 64 );
     20            // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand
     21            $spam_master_db_protection_hash = substr( md5( uniqid( mt_rand(), true ) ), 0, 64 );
    2122            if ( empty( $spam_master_db_protection_hash ) ) {
    2223                $spam_master_db_protection_hash = 'md5-' . gmdate( 'YmdHis' );
     
    4546    $is_there = $wpdb->get_var( "SELECT spamvalue FROM {$spam_master_keys} WHERE spamkey = 'Option' AND spamtype = 'spam_master_db_protection_hash'" );
    4647    if ( empty( $is_there ) ) {
    47         $spam_master_db_protection_hash = substr( md5( uniqid( wp_rand(), true ) ), 0, 64 );
     48        // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand
     49        $spam_master_db_protection_hash = substr( md5( uniqid( mt_rand(), true ) ), 0, 64 );
    4850        if ( empty( $spam_master_db_protection_hash ) ) {
    4951            $spam_master_db_protection_hash = 'md5-' . gmdate( 'YmdHis' );
  • spam-master/trunk/readme.txt

    r3045208 r3045786  
    11=== Spam Master ===
    22Contributors: TechGasp,pedromalves
    3 Tags: spam, firewall, anti bot, security, free, malware, brute force, anti crawler, anti flood, protection
     3Tags: firewall, spam, antispam, antibot, protection
    44Requires at least: 5.0
    55Tested up to: 6.4.3
    6 Stable tag: 7.3.4
     6Stable tag: 7.3.5
    77License: GPLv2 or later
    88
    9 Real-Time Firewall and anti-spam, anti-bot, anti-crawler, anti-flood protection from millions of known spam threats, emails, domains, ips and words by blocking registrations, comments, contact forms, etc.
     9Real-Time Saas Firewall, anti-spam, anti-bot, anti-crawler and anti-flood protection from millions of known spam ips, emails, domains and words.
    1010
    1111== Description ==
     
    215215
    216216== Changelog ==
     217
     218= 7.3.5 =
     219* Fixing Call to undefined function wp_rand()
     220* 5 tags limit
     221* Short Description section is too long and was truncated. A maximum of 150 characters
    217222
    218223= 7.3.4 =
Note: See TracChangeset for help on using the changeset viewer.