403Webshell
Server IP : 104.21.14.103  /  Your IP : 18.226.164.82
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/fingerprinting/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

/**
 * Class ITSEC_Fingerprinting_Privacy
 */
final class ITSEC_Fingerprinting_Privacy {

	/**
	 * ITSEC_Fingerprinting_Privacy constructor.
	 */
	public function __construct() {
		add_filter( 'itsec_get_privacy_policy_sections', array( $this, 'get_privacy_policy_sections' ) );
		add_filter( 'itsec_get_privacy_policy_for_fingerprints', array( $this, 'get_privacy_policy_for_fingerprints' ) );
		add_filter( 'itsec_get_privacy_policy_for_sharing', array( $this, 'get_privacy_policy_for_sharing' ) );
		add_filter( 'itsec_get_privacy_policy_for_cookies', array( $this, 'get_privacy_policy_for_cookies' ) );
	}

	public function get_privacy_policy_sections( $sections ) {

		$sections['collection']['subheadings']['fingerprints'] = __( 'Login Device Protection', 'it-l10n-ithemes-security-pro' );

		return $sections;
	}

	public function get_privacy_policy_for_fingerprints( $policy ) {
		$suggested_text = '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:', 'it-l10n-ithemes-security-pro' ) . '</strong>';

		$policy .= "<p>{$suggested_text} ";
		$policy .= esc_html__( 'Session data, such as IP addresses and user agents, are stored to verify that users are logging in from trusted devices.', 'it-l10n-ithemes-security-pro' );
		$policy .= '<p>';

		return $policy;
	}

	public function get_privacy_policy_for_sharing( $policy ) {

		require_once( ITSEC_Core::get_core_dir() . 'lib/class-itsec-lib-geolocation.php' );
		$geolocators = apply_filters( 'itsec_geolocator_apis', array() );

		$has_mm_api = $has_mm_db = false;

		foreach ( $geolocators as $geolocator ) {
			if ( $geolocator instanceof ITSEC_Geolocator_MaxMind_API ) {
				$has_mm_api = true;
			}

			if ( $geolocator instanceof ITSEC_Geolocator_MaxMind_DB ) {
				$has_mm_db = true;
			}
		}

		$suggested_text = '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:', 'it-l10n-ithemes-security-pro' ) . '</strong>';

		if ( $has_mm_api ) {
			$policy .= "<p>{$suggested_text} ";
			$policy .= sprintf(
				esc_html__( 'When logging into this website, some users may have their IP address transmitted to MaxMind to provide a rough estimate of their location to help prevent unauthorized access to their account. Read the %1$sMaxMind EULA%2$s for more details about their service.', 'it-l10n-ithemes-security-pro' ),
				'<a href="https://go.solidwp.com/maxmind-end-user-license-agreements">',
				'</a>'
			);
			$policy .= '</p>';
		} elseif ( ! $has_mm_db ) {
			$policy .= "<p>{$suggested_text} ";
			$policy .= wp_sprintf(
				esc_html__( 'When logging into this website, some users may have their IP address transmitted to one of the following 3rd-parties, depending on availability, to provide a rough estimate of their location to help prevent unauthorized access to their account: %1$l', 'it-l10n-ithemes-security-pro' ),
				array(
					'<a href="https://go.solidwp.com/ip-address-info-lookup">IP Info</a>',
					'<a href="https://go.solidwp.com/geolocation-services-from-geobytes">Geobytes</a>',
					'<a href="https://go.solidwp.com/geolocation">GeoPlugin</a>',
					'<a href="https://go.solidwp.com/ip-geolocation-api">IP API</a>',
				)
			);
			$policy .= '</p>';
		}

		return $policy;
	}

	public function get_privacy_policy_for_cookies( $policy ) {
		$suggested_text = '<strong class="privacy-policy-tutorial">' . __( 'Suggested text:', 'it-l10n-ithemes-security-pro' ) . ' </strong>';

		$policy .= "<p>$suggested_text " . esc_html__( 'The trusted devices feature employs a cookie named “itsec-fingerprint-shp” to validate and ensure that users are logging in from devices that are considered trustworthy.', 'it-l10n-ithemes-security-pro' ) . "</p>\n";

		return $policy;
	}
}

new ITSEC_Fingerprinting_Privacy();

Youez - 2016 - github.com/yon3zu
LinuXploit