403Webshell
Server IP : 104.21.14.103  /  Your IP : 18.227.52.84
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/recaptcha/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/recaptcha/settings.php
<?php

class ITSEC_Recaptcha_Settings extends \iThemesSecurity\Config_Settings {

	public function get_settings_schema() {
		$schema = parent::get_settings_schema();

		if ( $this->is_rcp_enabled() ) {
			$schema['properties']['provider']['description'] .=
				' ' . __( 'Solid Security has detected that Restrict Content Pro is installed.', 'it-l10n-ithemes-security-pro' ) .
				' ' . __( 'Google reCAPTCHA v3 is the only supported provider when using Restrict Content Pro.', 'it-l10n-ithemes-security-pro' );

			$schema['properties']['provider']['oneOf'] = array_filter(
				$schema['properties']['provider']['oneOf'],
				function ( $oneOf ) {
					return $oneOf['enum'][0] === 'google';
				}
			);
		}

		return $schema;
	}

	public function load() {
		parent::load();

		if ( $this->is_rcp_enabled() ) {
			$this->settings['provider'] = 'google';
		}
	}

	protected function is_rcp_enabled(): bool {
		return function_exists( 'restrict_content_pro' );
	}
}

ITSEC_Modules::register_settings( new ITSEC_Recaptcha_Settings( ITSEC_Modules::get_config( 'recaptcha' ) ) );

Youez - 2016 - github.com/yon3zu
LinuXploit