403Webshell
Server IP : 104.21.14.103  /  Your IP : 18.222.163.136
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/passwordless-login/integrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/passwordless-login/integrations/RestrictContentPro.php
<?php

namespace iThemesSecurity\PasswordlessLogin\Integrations;

use iThemesSecurity\PasswordlessLogin\Integration\Integration;

class RestrictContentPro implements Integration {
	public function get_name() {
		return 'Restrict Content Pro';
	}

	public function get_slug() {
		return 'rcp';
	}

	public function run() {
		add_action( 'rcp_before_register_form_fields', [ $this, 'render_passwordless_link' ] );
		add_action( 'rcp_before_login_form_fields', [ $this, 'render_passwordless_link' ] );
	}

	public function render_passwordless_link() {
		$redirect_to = rcp_get_current_url();

		if ( doing_action( 'rcp_before_register_form_fields' ) ) {
			$fields = [ 'discount', 'level' ];

			foreach ( $fields as $field ) {
				if ( isset( $_REQUEST[ $field ] ) ) {
					$redirect_to = add_query_arg( $field, urlencode( $_REQUEST[ $field ] ), $redirect_to );
				}
			}
		}

		add_filter( 'rcp_do_login_hijack', '__return_false', 100 );
		?>
		<p><?php echo \ITSEC_Passwordless_Login_Utilities::render_modal_link( $redirect_to ); ?></p>
		<?php
		remove_filter( 'rcp_do_login_hijack', '__return_false', 100 );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit