HEX
Server: Apache/2
System: Linux server-80-13-140-150.da.direct 5.14.0-362.24.1.el9_3.0.1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 4 22:31:43 UTC 2024 x86_64
User: cpt (1004)
PHP: 8.1.24
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/cpt/public_html/wp-content/plugins/events-manager/classes/consent/privacy-consent.php
<?php
namespace EM\Consent;

class Privacy extends Consent {
	
	public static $options = array(
		'remember' => 'dbem_data_privacy_consent_remember',
		'label' => 'dbem_data_privacy_consent_text',
		'param' => 'data_privacy_consent',
		'meta_key' => 'em_data_privacy_consent',
	);
	
	public static $prefix = 'privacy_consent';
	
	public static function init() {
		parent::init();
		if( is_admin() ) {
			include('privacy-consent-admin.php');
		}
	}
	
	public static function get_error_booking() {
		return esc_html__('You must allow us to collect and store your data in order for us to process your booking.', 'events-manager');
	}
	
	public static function get_error_cpt() {
		return esc_html__('Please check the consent box so we can collect and store your submitted information.', 'events-manager');
	}
	
	public static function get_label() {
		$label = get_option( static::$options['label'] );
		// buddyboss fix since bb v1.6.0
		if( has_filter( 'the_privacy_policy_link', 'bp_core_change_privacy_policy_link_on_private_network') ) $bb_fix = remove_filter('the_privacy_policy_link', 'bp_core_change_privacy_policy_link_on_private_network', 999999);
		// replace privacy policy text %s with link to policy page
		if( function_exists('get_the_privacy_policy_link') ) $label = sprintf($label, get_the_privacy_policy_link());
		// buddyboss unfix since bb v1.6.0
		if( !empty($bb_fix) ) add_filter( 'the_privacy_policy_link', 'bp_core_change_privacy_policy_link_on_private_network', 999999, 2 );
		return $label;
	}
}

Privacy::init();