HEX
Server: Apache
System: Linux webm006.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: perditaeyz (838589)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/p/e/r/perditaeyz/www/wp-content/plugins/better-wp-security/core/integrations/rcp.php
<?php

/**
 * Overrides the RCP IP address to use iThemes Security.
 *
 * @return string
 */
function itsec_rcp_get_ip() {
	return ITSEC_Lib::get_ip();
}

add_filter( 'rcp_get_ip', 'itsec_rcp_get_ip' );

/**
 * Adds the RCP login redirect to the session.
 *
 * @param ITSEC_Login_Interstitial_Session $session
 */
function itsec_rcp_initialize_interstitial( ITSEC_Login_Interstitial_Session $session ) {
	if ( isset( $_REQUEST['rcp_redirect'] ) ) {
		$session->set_redirect_to( $_REQUEST['rcp_redirect'] );
	}
}

add_action( 'itsec_initialize_login_interstitial_session_from_global_state', 'itsec_rcp_initialize_interstitial' );