$60 GRAYBYTE WORDPRESS FILE MANAGER $66

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.groupg.com.sg/wp-content/plugins/jetformbuilder/modules/security/

HOME
Current File : /home/bqrcodec/contact.groupg.com.sg/wp-content/plugins/jetformbuilder/modules/security//module.php
<?php


namespace JFB_Modules\Security;

use JFB_Modules\Logger;
use JFB_Components\Module\Base_Module_After_Install_It;
use JFB_Components\Module\Base_Module_Dir_It;
use JFB_Components\Module\Base_Module_Dir_Trait;
use JFB_Components\Module\Base_Module_Handle_It;
use JFB_Components\Module\Base_Module_Handle_Trait;
use JFB_Components\Module\Base_Module_It;
use JFB_Components\Module\Base_Module_Url_It;
use JFB_Components\Module\Base_Module_Url_Trait;
use JFB_Modules\Security\Exceptions\Spam_Exception;
use JFB_Modules\Security\Csrf;
use JFB_Modules\Security\Honeypot;
use JFB_Modules\Security\Wp_Nonce;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

class Module implements
	Base_Module_It,
	Base_Module_Url_It,
	Base_Module_Dir_It,
	Base_Module_After_Install_It,
	Base_Module_Handle_It {

	use Base_Module_Handle_Trait;
	use Base_Module_Url_Trait;
	use Base_Module_Dir_Trait;

	private $spam_statuses = array();

	public function rep_item_id() {
		return 'security';
	}

	public function on_install() {
		$this->spam_statuses = apply_filters(
			'jet-form-builder/security/spam-statuses',
			array()
		);

		jet_form_builder()->get_modules()->install( new Csrf\Module() );
		jet_form_builder()->get_modules()->install( new Honeypot\Module() );
		jet_form_builder()->get_modules()->install( new Wp_Nonce\Module() );
	}

	public function on_uninstall() {
		$this->spam_statuses = array();

		jet_form_builder()->get_modules()->uninstall( new Csrf\Module() );
		jet_form_builder()->get_modules()->uninstall( new Honeypot\Module() );
		jet_form_builder()->get_modules()->uninstall( new Wp_Nonce\Module() );
	}

	public function condition(): bool {
		return true;
	}

	public function init_hooks() {
	}

	public function remove_hooks() {
	}

	public function has_spam(): bool {
		$status = jet_fb_handler()->response_args['status'] ?? '';

		return (
			in_array( $status, $this->spam_statuses, true ) ||
			Logger\Module::instance()->has_log( Spam_Exception::class )
		);
	}

	public static function get_hasher(): \PasswordHash {
		global $wp_hasher;

		if ( ! empty( $wp_hasher ) ) {
			return $wp_hasher;
		}

		require_once ABSPATH . WPINC . '/class-phpass.php';
		// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
		$wp_hasher = new \PasswordHash( 8, true );

		return $wp_hasher;
	}

}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
csrf
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
exceptions
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
honeypot
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
wp-nonce
--
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0755
module.php
2.287 KB
6 Jun 2024 10.38 AM
bqrcodec / bqrcodec
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF