Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.16.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : class-protection.php
<?php
/**
 * Forminator Protection
 *
 * @package Forminator
 */

/**
 * Class Forminator_Protection
 * Loas all protection modules if vailable
 */
class Forminator_Protection {

	/**
	 * Plugin instance
	 *
	 * @var null
	 */
	private static $instance = null;

	/**
	 * Return the plugin instance
	 *
	 * @since 1.0
	 * @return Forminator_Protection
	 */
	public static function get_instance() {
		if ( is_null( self::$instance ) ) {
			self::$instance = new self();
		}

		return self::$instance;
	}


	/**
	 * Main constructor
	 *
	 * @since 1.0
	 */
	public function __construct() {
		$this->include_in_built();
		$this->init_modules();
	}

	/**
	 * Load our in-built spam protectors
	 *
	 * @since 1.0
	 */
	private function include_in_built() {
		/* @noinspection PhpIncludeInspection */
		include_once forminator_plugin_dir() . 'library/protection/class-akismet.php';
	}

	/**
	 * Initialise spam modules
	 *
	 * @since 1.0
	 */
	public function init_modules() {
		Forminator_Akismet::get_instance();
		do_action( 'fominator_init_spam_modules' );
	}
}
© 2025 XylotrechusZ