<?php
#  ________         ____________      _____ ________                       ________      
#  ___  __ )____  _____  /___  /_____ __  /____  __ \______________ ______ ___  __/      
#  __  __  |_  / / /__  / __  / _  _ \_  __/__  /_/ /__  ___/_  __ \_  __ \__  /_        
#  _  /_/ / / /_/ / _  /  _  /  /  __// /_  _  ____/ _  /    / /_/ // /_/ /_  __/        
#  /_____/  \__,_/  /_/   /_/   \___/ \__/  /_/      /_/     \____/ \____/ /_/           
#  ________                             _____ _____              ________                
#  __  ___/_____ ___________  _____________(_)__  /______  __    ___  __ \______________ 
#  _____ \ _  _ \_  ___/_  / / /__  ___/__  / _  __/__  / / /    __  /_/ /__  ___/_  __ \
#  ____/ / /  __// /__  / /_/ / _  /    _  /  / /_  _  /_/ /     _  ____/ _  /    / /_/ /
#  /____/  \___/ \___/  \__,_/  /_/     /_/   \__/  _\__, /      /_/      /_/     \____/ 
#                                                   /____/                               
# 42756C6C657450726F6F66 5365637572697479 50726F 
#
/*	The Copyright, AITpro Software Products License Information must remain
	intact or all BulletProof Security Pro warranties, guarantees, liabilities are void.
	
	Copyright (C) Edward Alexander, AIT-pro.com. All rights reserved.

	AITpro Software Products License Information:
	BY DOWNLOADING, INSTALLING, COPYING, ACCESSING, OR USING BulletProof Security Pro YOU AGREE TO THE TERMS OF THIS AGREEMENT. 
	IF YOU 	ARE ACCEPTING THESE TERMS ON BEHALF OF ANOTHER PERSON OR A COMPANY OR OTHER LEGAL ENTITY, YOU REPRESENT AND WARRANT
	THAT YOU HAVE FULL AUTHORITY TO BIND THAT PERSON, COMPANY, OR LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT AGREE TO THESE TERMS,
	* DO NOT DOWNLOAD, INSTALL, COPY, ACCESS, OR USE BulletProof Security Pro; AND
	* PROMPTLY RETURN BulletProof Security Pro TO THE PARTY FROM WHOM YOU ACQUIRED IT. IF YOU DOWNLOADED BulletProof Security Pro
	FROM THE AITPRO WEBSITE, CONTACT AITPRO FOR A REFUND IF APPLICABLE.
	
	AITpro Software Products License Information continued:
	You agree to keep the AITpro Software Products License for BulletProof Security Pro, unmodified or altered in any way,
	with the original copy of BulletProof Security Pro that you have and any and all copies or partial copies of BulletProof
	Security Pro that You make. 
*/
// Direct calls to this file are Forbidden when core files are not present
if ( ! function_exists('add_action') ) {
		header('Status: 403 Forbidden');
		header('HTTP/1.1 403 Forbidden');
		exit();
}
 
if ( ! current_user_can('manage_options') ) { 
		header('Status: 403 Forbidden');
		header('HTTP/1.1 403 Forbidden');
		exit();
}
?>

<!-- force the vertical scrollbar -->
<style>
#wpwrap{min-height:100.1%};
</style>

<div id="bps-container" class="wrap" style="margin:10px 20px 5px 0px;">

<noscript><div id="message" class="updated" style="font-weight:600;font-size:13px;padding:5px;background-color:#dfecf2;border:1px solid #999;-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-topright:3px;-webkit-border-top-right-radius:3px;-khtml-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);-moz-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);"><span style="color:blue">BPS Warning: JavaScript is disabled in your Browser</span><br />BPS plugin pages will not display visually correct and all BPS JavaScript functionality will not work correctly.</div></noscript>

<?php 
$ScrollTop_options = get_option('bulletproof_security_options_scrolltop');

if ( isset( $ScrollTop_options['bps_scrolltop'] ) && $ScrollTop_options['bps_scrolltop'] != 'Off' ) {
	
	if ( esc_html($_SERVER['REQUEST_METHOD']) == 'POST' || isset( $_GET['settings-updated'] ) && @$_GET['settings-updated'] == true ) { 

		bpsPro_Browser_UA_scroll_animation();
	}
}
?>

<?php
// S-Monitor HUD - Heads Up Display - Warnings, Error messages, AutoFix Setup & Whitelist - displayed in BPS Only		
bps_HUD_autofix_setup_bps_only();
bps_HUD_autofix_whitelist_bps_only();
bps_HUD_bps_only();

// S-Monitor BPS Security Status for Root and wp-admin (wp-admin only if problem) - displayed in BPS Only
bps_security_status_bps_only();
bps_security_status_wpadmin_bps_only();

// S-Monitor & AutoRestore Status display - displayed in BPS Only 
bps_ARCM_admin_notice_status_bps();

// S-Monitor - MScan Status display - BPS pages ONLY
bps_MScan_admin_notice_status_bps();

// S-Monitor - DB Monitor Status display - BPS pages ONLY
bps_DBM_admin_notice_status_bps();

// S-Monitor - DB Backup Status display - BPS pages ONLY
bps_DBB_admin_notice_status_bps();

// S-Monitor - Plugin Firewall Status display - BPS pages ONLY
bps_PFWAP_admin_notice_status_bps();

// S-Monitor - Uploads Anti-Exploit Guard Status display - BPS pages ONLY
bps_UAEG_admin_notice_status_bps();

// S-Monitor - Login Security Status display - BPS pages ONLY
bps_Login_Security_admin_notice_status_bps();

// S-Monitor - JTC Anti-Spam Status display - BPS pages ONLY
bps_jtc_antispam_admin_notice_status_bps();

// S-Monitor - Idle Session Status display - BPS pages ONLY
bpsPro_isl_notice_status_bps();

// S-Monitor - Auth Cookie Expiration Status display - BPS pages ONLY
bpsPro_ace_notice_status_bps();

// S-Monitor - Login Security Alerts - BPS pages ONLY
bps_smonitor_LoginSecurityResetModTimeDiff_bps();

// S-Monitor - ARQ Alerts - BPS pages ONLY
bps_smonitor_ARQ_alerts_bps();

// S-Monitor PHP Error Log - New PHP Errors - displayed in BPS Only
bps_smonitor_ELogModTimeDiff_bps();

// S-Monitor Security Log - New Log Entry Has Been Logged - displayed in BPS Only
bps_smonitor_SecurityLogModTimeDiff_bps();

// S-Monitor - PHP Error Log Set & valid path, ini_set Options Checks & auto-update wp-config.php - BPS pages ONLY
bps_smonitor_phpini_bps();

// S-Monitor F-Lock - Check if F-Lock options saved - F-Lock Lock / Unlock File Status & actual file permissions 404 or 400
bps_smonitor_flock_bps();

?>

<div id="message" class="updated" style="border:1px solid #999;background-color:#000;">

<?php
// General all purpose "Settings Saved." message for forms - /includes/class.php
if ( current_user_can('manage_options') && wp_script_is( 'bps-accordion', $list = 'queue' ) ) {
if ( isset( $_GET['settings-updated'] ) && @$_GET['settings-updated'] == true ) {
	$text = '<p style="font-size:1em;font-weight:bold;padding:2px 0px 2px 5px;margin:0px -11px 0px -11px;background-color:#dfecf2;-webkit-box-shadow: 3px 3px 5px 0px rgba(153,153,153,0.7);-moz-box-shadow: 3px 3px 5px 0px rgba(153,153,153,0.7);box-shadow: 3px 3px 5px 0px rgba(153,153,153,0.7);"><font color="green"><strong>'.__('Settings Saved', 'bulletproof-security').'</strong></font></p>';
	echo $text;
	} else {
	echo '<font color="#fb0101"><strong>'.bps_cuser_errors().'</strong></font>';
	}
}
?>

</div>

<?php
// Reset/Recheck Dismiss Notices
function bpsDeleteUserMetaDismiss() {
	
	if ( isset( $_POST['bpsResetDismissSubmit'] ) && current_user_can('manage_options') ) {
		check_admin_referer( 'bulletproof_security_reset_dismiss_notices' );	  

	global $current_user;
	$user_id = $current_user->ID;

	echo '<div id="message" class="updated fade" style="color:#000000;font-weight:bold;background-color:#dfecf2;border:1px solid #999;-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-topright:3px;-webkit-border-top-right-radius:3px;-khtml-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);-moz-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);"><p>';

	if ( ! delete_user_meta($user_id, 'bps_ignore_iis_notice') ) {
		$text = __('The Windows IIS Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Windows IIS check is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

/*
	if ( ! delete_user_meta($user_id, 'bps_ignore_PFW_roles_notice') ) {
		$text = __('The Plugin Firewall Additional Roles IP Whitelist Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Plugin Firewall Additional Roles IP Whitelist check is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}	
*/
	
	if ( ! delete_user_meta($user_id, 'bps_ignore_sucuri_notice') ) {
		$text = __('The Sucuri Restrict wp-content access Hardening Option problem Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Sucuri Restrict wp-content access Hardening Option problem check is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}	

	if ( ! delete_user_meta($user_id, 'bps_ignore_wpfirewall2_notice') ) {
		$text = __('The WordPress Firewall 2 Plugin Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;>'.__('Success! The WordPress Firewall 2 Plugin check is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}	

	if ( ! delete_user_meta($user_id, 'bps_ignore_PhpiniHandler_notice') ) {
		$text = __('The PHP|php.ini handler htaccess code check Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The PHP|php.ini handler htaccess code check is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}	

	if ( ! delete_user_meta($user_id, 'bps_ignore_safemode_notice') ) {
		$text = __('The Safe Mode HUD Check Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Safe Mode HUD Check is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bps_ignore_Permalinks_notice') ) {
		$text = __('The Custom Permalinks HUD Check Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Custom Permalinks HUD Check is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}	

/*
	if ( ! delete_user_meta($user_id, 'bps_ignore_PFW_litespeed_notice') ) {
		$text = __('The LiteSpeed Server|Plugin Firewall Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The LiteSpeed Server|Plugin Firewall Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}
*/

	if ( ! delete_user_meta($user_id, 'bps_bonus_code_dismiss_all_notice') ) {
		$text = __('The Bonus Custom Code: Dismiss All Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Bonus Custom Code: Dismiss All Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bps_brute_force_login_protection_notice') ) {
		$text = __('The Bonus Custom Code: Brute Force Login Protection Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Bonus Custom Code: Brute Force Login Protection Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bps_speed_boost_cache_notice') ) {
		$text = __('The Bonus Custom Code: Speed Boost Cache Code Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Bonus Custom Code: Speed Boost Cache Code Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bps_author_enumeration_notice') ) {
		$text = __('The Bonus Custom Code: Author Enumeration BOT Probe Code Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Bonus Custom Code: Author Enumeration BOT Probe Code Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bps_xmlrpc_ddos_notice') ) {
		$text = __('The Bonus Custom Code: XML-RPC DDoS Protection Code Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Bonus Custom Code: XML-RPC DDoS Protection Code Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	/*
	if ( ! delete_user_meta($user_id, 'bps_referer_spam_notice') ) {
		$text = __('The Bonus Custom Code: Referer Spam|Phishing Protection Code Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Bonus Custom Code: Referer Spam|Phishing Protection Code Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}
	*/

	if ( ! delete_user_meta($user_id, 'bps_post_request_attack_notice') ) {
		$text = __('The Bonus Custom Code: POST Request Attack Protection Code Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Bonus Custom Code: POST Request Attack Protection Code Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bps_sniff_driveby_notice') ) {
		$text = __('The Bonus Custom Code: Mime Sniffing|Drive-by Download Attack Protection Code Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Bonus Custom Code: Mime Sniffing|Drive-by Download Attack Protection Code Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bps_iframe_clickjack_notice') ) {
		$text = __('The Bonus Custom Code: External iFrame|Clickjacking Protection Code Dismiss Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Bonus Custom Code: External iFrame|Clickjacking Protection Code Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bps_ignore_woocommerce_lsm_jtc_notice') ) {
		$text = __('The BPS Pro WooCommerce Options Notice: Enable Login Security for WooCommerce & Enable JTC for WooCommerce is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The BPS Pro WooCommerce Options Notice: Enable Login Security for WooCommerce & Enable JTC for WooCommerce is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
		delete_option('bulletproof_security_options_setup_wizard_woo'); 
	}

	if ( ! delete_user_meta($user_id, 'bpsPro_ignore_speed_boost_notice') ) {
		$text = __('The New Improved BPS Speed Boost Cache Code Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The New Improved BPS Speed Boost Cache Code Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	/*
	if ( ! delete_user_meta($user_id, 'bpsPro_ignore_EPC_plugin_notice') ) {
		$text = __('The Endurance Page Cache (EPC) plugin Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Endurance Page Cache (EPC) plugin Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}
	*/

	if ( ! delete_user_meta($user_id, 'bpsPro_ignore_wpcron_disabled_notice') ) {
		$text = __('The DISABLE_WP_CRON constant Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The DISABLE_WP_CRON constant Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bpsPro_ignore_wp_cron_control_plugin_notice') ) {
		$text = __('The WP-Cron Control plugin Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The WP-Cron Control plugin Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

/*
	if ( ! delete_user_meta($user_id, 'bps_ignore_mscan_notice') ) {
		$text = __('The MScan First Run Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The MScan First Run Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}
*/

	if ( ! delete_user_meta($user_id, 'bps_ignore_rate_notice') ) {
		$text = __('The BPS Pro Plugin Star Rating Request Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The BPS Pro Plugin Star Rating Request Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bpsPro_ignore_mod_security_notice') ) {
		$text = __('The Mod Security Module is Loaded|Enabled Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Mod Security Module is Loaded|Enabled Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bpsPro_ignore_gdpr_compliance_notice') ) {
		$text = __('The GDPR Compliance Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The GDPR Compliance Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bps_ignore_root_version_check_notice') ) {
		$text = __('The Root htaccess File Version Check Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Root htaccess File Version Check Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bpsPro_ignore_mu_wp_automatic_updates_notice') ) {
		$text = __('The BPS wp-config.php file WP Automatic Update constants detected Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The BPS wp-config.php file WP Automatic Update constants detected Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bpsPro_hud_EUM_plugin_check_notice') ) {
		$text = __('The Easy Updates Manager Plugin Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The Easy Updates Manager Plugin Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bpsPro_hud_new_feature_notice') ) {
		$text = __('The New Feature Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The New Feature Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	if ( ! delete_user_meta($user_id, 'bpsPro_hud_arq_add_notice') ) {
		$text = __('The AutoRestore Add Folders & Files Rebuild Notice is NOT set. Nothing to reset.', 'bulletproof-security').'<br>';
		echo $text;
	} else {
		$text = '<span style="color:#008000;">'.__('Success! The AutoRestore Add Folders & Files Rebuild Notice is reset.', 'bulletproof-security').'</span><br>';
		echo $text;
	}

	echo '<div class="bps-message-button" style="width:90px;margin-bottom:9px;"><a href="'.admin_url( 'admin.php?page=bulletproof-security/admin/monitor/monitor.php' ).'">'.__('Refresh Status', 'bulletproof-security').'</a></div>';
	echo '</p></div>';
	}
}

// Anti-Piracy check - Fallback 10R
$D8 = '42756C6C657450726F6F66';
bpsPro_AP_Check($D8);

?> 

<h2 class="bps-tab-title"><?php _e('S-Monitor ~ Security Monitoring and Alerting', 'bulletproof-security'); ?></h2>

<!-- jQuery UI Tab Menu -->
<div id="bps-tabs" class="bps-menu">
    <div id="bpsHead"><img src="<?php echo plugins_url('/bulletproof-security/admin/images/bps-pro-logo.gif'); ?>" /></div>
		<ul>
			<li><a href="#bps-tabs-1"><?php _e('Options', 'bulletproof-security'); ?></a></li>
			<li><a href="#bps-tabs-2"><?php _e('Help &amp; FAQ', 'bulletproof-security'); ?></a></li>
		</ul>
            
<div id="bps-tabs-1" class="bps-tab-page">

<?php if ( ! current_user_can('manage_options') ) { _e('Permission Denied', 'bulletproof-security'); } else { ?>

<div id="smonitor-options-table">

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bps-help_faq_table">
  <tr>
    <td colspan="2" class="bps-table_title"><h2><?php _e('Monitoring and Alerting Options', 'bulletproof-security'); ?></h2></td>
  </tr>
  <tr>
    <td width="50%" class="bps-table_cell_help">

<h3 style="margin:0px 0px 5px 0px;"><?php _e('Monitoring and Alerting Options', 'bulletproof-security'); ?>  <button id="bps-open-modal1" class="button bps-modal-button"><?php _e('Read Me', 'bulletproof-security'); ?></button></h3>
   
   <div id="bps-modal-content1" class="bps-dialog-hide" title="<?php _e('Monitoring and Alerting Options', 'bulletproof-security'); ?>">
	<p><?php $text = '<strong>'.__('This Read Me Help window is draggable (top) and resizable (bottom right corner)', 'bulletproof-security').'</strong><br><br><strong>'.__('Dashboard Status Display', 'bulletproof-security').'</strong><br>'.__('The Heads Up Dashboard Status Display displays at the top of all WordPress pages by default and displays the current BPS Pro version installed & clickable links to pages: Root Folder BulletProof Mode (RBM), wp-admin Folder BulletProof Mode (WBM), AutoRestore (ARQ), MScan Malware Scanner (MSCAN), Database Monitor (DBM), Database Backup (DBB), Plugin Firewall (PFW), Uploads Anti-Exploit Guard (UAEG), Login Security & Monitoring (LSM), JTC Anti-Spam|Anti-Hacker (JTC), Idle Session Logout (ISL) and Auth Cookie Expiration (ACE). It is recommended that you choose Display Status in WP Dashboard for all of these mission critical BPS Pro security features.', 'bulletproof-security').'<br><br><strong>'.__('Dashboard Status Display Functionality', 'bulletproof-security').'</strong><br>'.__('The Dashboard Status Display performs checks and displays the status of BPS Pro features, options and your site security in real-time. The Dashboard Status Display automatically turns itself off when a Form is submitted using POST and displays a Reload BPS Pro Status Display button. Automatically turning off the Status Display during Form processing is a performance enhancement|optimization. Clicking the Reload BPS Pro Status Display button reloads|displays the Dashboard Status Display.', 'bulletproof-security').'<br><br><strong>'.__('Reset|Recheck Dismiss Notices:', 'bulletproof-security').'</strong><br>'.__('Clicking this button resets ALL Dismiss Notices such as Bonus Code Dismiss Notices and ALL other Dismiss Notices. If you previously dismissed a Dismiss Notice and want to display it again at a later time click this button.', 'bulletproof-security').'<br><br><strong>'.__('Security Status: BPS Pro Version, RBM, WBM & Alerts', 'bulletproof-security').'</strong><br>'.__('Displays the currently installed BPS Pro version, RBM, WBM & more importantly critical security alerts in your WP Dashboard. It is recommended that you choose: Display Status & Alerts in WP Dashboard. RBM stands for Root BulletProof Mode & displays On or Off, WBM stands for wp-admin BulletProof Mode & displays On or Off.', 'bulletproof-security').'<br><br><strong>'.__('Security Log: New Log Entry Has Been Logged Alerts', 'bulletproof-security').'</strong><br>'.__('When new Security Log entries are logged in your Security Log file you are alerted by BPS that you have a new log entry. You can choose to have Security Log Alerts displayed in your WP Dashboard, in BPS pages Only or turn Alerts Off. You can also choose to have Security Log Alerts and log files emailed to you with Email Alerting & Log File Options. The Security Log Alert contains a link to the B-Core Security Log page. Security Log Alerts can be turned On or Off as needed. The Security Log is a primary troubleshooting tool in BPS Pro, but Security Log alerts will occur all day, every day and can be irritating. Recommended Usage/Setting: Security Log Dashboard Alerts should be used during troubleshooting and should be turned off normally when not troubleshooting.', 'bulletproof-security').'<br><br><strong>'.__('AutoRestore|Quarantine: ARQ Status', 'bulletproof-security').'</strong><br>'.__('The ARQ Status Display displays whether AutoRestore is On or Off, the ARQ Cron Frequency & the time the next ARQ Cron job will be run. Display options: in your WP Dashboard, BPS Pages Only or turn this status display Off. It is recommended that you choose to display the ARQ Status in your WP Dashboard.', 'bulletproof-security').'<br><br><strong>'.__('AutoRestore|Quarantine: ARQ Alerts', 'bulletproof-security').'</strong><br>'.__('Displays and AutoRestore|Quarantine Alert when a file has been autorestored or quarantined. You can choose to have ARQ Alerts displayed in your WP Dashboard, in BPS pages Only or turn Alerts Off. It is recommended that you choose to display the ARQ Alerts in your WP Dashboard.', 'bulletproof-security').'<br><br><strong>'.__('MScan Malware Scanner: MSCAN Status', 'bulletproof-security').'</strong><br>'.__('The MSCAN Status Display displays either a question mark hover icon indicating an MScan scan has not been run yet or the Delete Scan Status Tool has been used, the last successful scan timestamp (manual scans) or the MScan Cron Frequency & the time the next MScan Cron job will be run (BPS Pro only scheduled scans). Display options: Display last or next scan time in your WP Dashboard, BPS Pages Only or turn this status display Off.', 'bulletproof-security').'<br><br><strong>'.__('Database Monitor: DBM Status', 'bulletproof-security').'</strong><br>'.__('The DBM Status Display displays whether the Database Monitor is On or Off, the DBM Cron Frequency & the time the next DBM Cron job will be run. Display options: in your WP Dashboard, BPS Pages Only or turn this status display Off. It is recommended that you choose to display the DBM Status in your WP Dashboard.', 'bulletproof-security').'<br><br><strong>'.__('Database Monitor: DBM Alerts', 'bulletproof-security').'</strong><br>'.__('The DB Monitor alerts you via email anytime a change/modification occurs in your WordPress database or a new database table is created in your WordPress database based on your DBM Email Alerting & Log file options for DBM. Your DB Monitor Log also logs any changes/modifications to your WordPress database and other relevant help info. You can choose to have DBM Alerts displayed in your WP Dashboard, in BPS pages Only or turn Alerts Off.', 'bulletproof-security').'<br><br><strong>'.__('Database Backup: DBB Status', 'bulletproof-security').'</strong><br>'.__('The DBB Status Display displays either a question mark hover icon indicating a DB Backup has not been run yet or the last successful Database Backup timestamp. Display options: Last Backup time in your WP Dashboard, BPS Pages Only or turn this status display Off. It is recommended that you choose to display the DBB Status in your WP Dashboard.', 'bulletproof-security').'<br><br><strong>'.__('Plugin Firewall: Firewall Status', 'bulletproof-security').'</strong><br>'.__('Displays On or Off status of the Plugin Firewall in your WP Dashboard, BPS Pages Only or turn this status display Off. If you have AutoPilot Mode turned On, AutoPilot and the next scheduled Cron timestamp and frequency will be displayed. It is recommended that you choose to display the PFW Status in your WP Dashboard.', 'bulletproof-security').'<br><br><strong>'.__('Uploads Anti-Exploit Guard: UAEG Status', 'bulletproof-security').'</strong><br>'.__('Displays On or Off status of UAEG in your WP Dashboard, BPS Pages Only or turn this status display Off. It is recommended that you choose to display the UAEG Status in your WP Dashboard.', 'bulletproof-security').'<br><br><strong>'.__('Login Security: Login Security Status', 'bulletproof-security').'</strong><br>'.__('Displays On or Off status of Login Security in your WP Dashboard, BPS Pages Only or turn this status display Off. It is recommended that you choose to display the LSM Status in your WP Dashboard.', 'bulletproof-security').'<br><br><strong>'.__('Login Security: Login Security Alerts', 'bulletproof-security').'</strong><br>'.__('Displays Login Security Alerts in your WP Dashboard, BPS Pages Only or turn this status display Off. Choosing Turn Off Displayed Alerts turns Off Login Security Alerts. You can choose email alerting options instead if you do not want to see the WP Dashboard or BPS Pages Only Alerts.', 'bulletproof-security').'<br><br><strong>'.__('Idle Session Logout: ISL Status', 'bulletproof-security').'</strong><br>'.__('Displays On or Off status of Idle Session Logout in your WP Dashboard, BPS Pages Only or turn this status display Off. ISL is an optional feature so ISL is not displayed in your Dashboard Status Display by default.', 'bulletproof-security').'<br><br><strong>'.__('Auth Cookie Expiration: ACE Status', 'bulletproof-security').'</strong><br>'.__('Displays On or Off status of Auth Cookie Expiration in your WP Dashboard, BPS Pages Only or turn this status display Off. ACE is an optional feature so ACE is not displayed in your Dashboard Status Display by default.', 'bulletproof-security').'<br><br><strong>'.__('JTC Anti-Spam|Anti-Hacker: JTC Status', 'bulletproof-security').'</strong><br>'.__('Displays On or Off status of JTC Anti-Spam|Anti-Hacker in your WP Dashboard, BPS Pages Only or turn this status display Off. It is recommended that you choose to display the JTC Status in your WP Dashboard.', 'bulletproof-security').'<br><br><strong>'.__('F-Lock: File Lock|Unlock Alerts', 'bulletproof-security').'</strong><br>'.__('Checks file permissions for Mission Critical files in real time. If your Host Server is using CGI as the php handler and if your Server API is CGI displayed properly then this check works perfectly to determine your file permissions locked or unlocked status. If your Host is using DSO mod_php you may see error messages that the files are not locked depending on how your Host Servers are configured. If your Host Server is definitely using DSO mod_php then you can turn this S-monitor option off. DSO file permissions should be 644 and cannot be set more restrictive because of the way DSO works. File permissions for CGI and DSO are managed on the F-Lock page.', 'bulletproof-security').'<br><br><strong>'.__('F-Lock: Folder Lock|Unlock Alerts', 'bulletproof-security').'</strong><br>'.__('Cron based scheduled check that checks your Hosting Account Root folder for any new folders that are created. If a new folder is found it is automatically locked with 400 permissions. To unlock a locked folder use the F-Lock Folder Lock Tools. See the Folder Lock Help Info Read Me help button on the F-Lock Folder Lock page for more in depth help information about Folder Lock.', 'bulletproof-security').'<br><br><strong>'.__('HUD Alerts: BPS Error, Problem and Warning Alerts', 'bulletproof-security').'</strong><br>'.__('Heads Up Display - HUD Alerts are important and it is recommended that you choose to display these Alerts in your WordPress Dashboard. HUD Alerts will alert you to any serious problems with BPS or any other problem or issues that need to be corrected right away.', 'bulletproof-security').'<br><br><strong>'.__('PHP Error Log: Check Folder Path Location Alert', 'bulletproof-security').'</strong><br>'.__('Checks if your php error log file path has been set and that the path is correct. A php error log is a good thing to have in general to check for website problems and it is important in website security monitoring as well.', 'bulletproof-security').'<br><br><strong>'.__('PHP Error Log: New Errors in The PHP Error Log Alerts', 'bulletproof-security').'</strong><br>'.__('When new PHP errors occur on your website they are logged in your PHP Error Log and you are alerted by BPS that you have a new PHP error in your error log. You can choose to have PHP Error Log Alerts displayed in your WP Dashboard, in BPS pages Only or turn Alerts Off. You can also choose to have PHP Error Log Alerts and log files emailed to you with Email Alerting & Log File Options. The PHP Error Log Alert contains a link to the P-Security PHP Error Log page.', 'bulletproof-security').'<br><br><strong>'.__('Php.ini|ini_set: Error Checks & Alerts', 'bulletproof-security').'</strong><br>'.__('Various checks for possible issues or problems with php.ini files, ini_set options, Loaded Configuration file checks, PHP error log Set To Location matches the error log path seen by the Server, etc. For additional Status checking of individual directives see the Php.ini Security Status page. NOTE: As of PHP5.3.x adding a custom php.ini file for your website has become very complicated and problematic. It is recommended that you use the ini_set Options as an alternative to creating a custom php.ini file for your website if your PHP version is 5.3.x or greater.', 'bulletproof-security').'<br><br><strong>'.__('BPS Pro Video Tutorial links can be found in the Help & FAQ pages.', 'bulletproof-security').'</strong>'; echo $text; ?></p>
</div>

<div id="ResetDismissNotices">
<form name="bpsResetDismissNotices" action="<?php echo admin_url( 'admin.php?page=bulletproof-security/admin/monitor/monitor.php' ); ?>" method="post">
<?php wp_nonce_field('bulletproof_security_reset_dismiss_notices'); ?>
    <h3><?php _e('Reset|Recheck Dismiss Notices: ', 'bulletproof-security'); ?>
<input type="hidden" name="bpsRDN" value="bps-RDN" />
<input type="submit" name="bpsResetDismissSubmit" class="button bps-button smonitor" value="<?php esc_attr_e('Reset|Recheck', 'bulletproof-security') ?>" />
</h3>
<?php echo bpsDeleteUserMetaDismiss(); ?>
</form>
</div>
    
<div id="smonitor-alert-fields">

    <form name="bps-monitor-options" action="options.php" method="post">
<?php settings_fields('bulletproof_security_options_monitor'); ?>
<?php $options = get_option('bulletproof_security_options_monitor'); 
	$bps_security_status = ! isset($options['bps_security_status']) ? '' : $options['bps_security_status'];
	$bps_SecLog_entry = ! isset($options['bps_SecLog_entry']) ? '' : $options['bps_SecLog_entry'];
	$bps_autorestore_status = ! isset($options['bps_autorestore_status']) ? '' : $options['bps_autorestore_status'];
	$bps_autorestore_alerts = ! isset($options['bps_autorestore_alerts']) ? '' : $options['bps_autorestore_alerts'];
	$bps_mscan_status_display = ! isset($options['bps_mscan_status_display']) ? '' : $options['bps_mscan_status_display'];
	$bps_dbm_status = ! isset($options['bps_dbm_status']) ? '' : $options['bps_dbm_status'];
	$bps_dbm_alerts = ! isset($options['bps_dbm_alerts']) ? '' : $options['bps_dbm_alerts'];
	$bps_dbb_status = ! isset($options['bps_dbb_status']) ? '' : $options['bps_dbb_status'];
	$bps_plugin_firewall_status = ! isset($options['bps_plugin_firewall_status']) ? '' : $options['bps_plugin_firewall_status'];
	$bps_UAEG_status = ! isset($options['bps_UAEG_status']) ? '' : $options['bps_UAEG_status'];
	$bps_login_security_status = ! isset($options['bps_login_security_status']) ? '' : $options['bps_login_security_status'];
	$bps_login_security_alerts = ! isset($options['bps_login_security_alerts']) ? '' : $options['bps_login_security_alerts'];
	$bps_jtc_antispam_status = ! isset($options['bps_jtc_antispam_status']) ? '' : $options['bps_jtc_antispam_status'];
	$bps_isl_status = ! isset($options['bps_isl_status']) ? '' : $options['bps_isl_status'];
	$bps_ace_status = ! isset($options['bps_ace_status']) ? '' : $options['bps_ace_status'];
	$bps_flock_status = ! isset($options['bps_flock_status']) ? '' : $options['bps_flock_status'];
	$bps_flock_FL_alerts = ! isset($options['bps_flock_FL_alerts']) ? '' : $options['bps_flock_FL_alerts'];
	$bps_HUD_alerts = ! isset($options['bps_HUD_alerts']) ? '' : $options['bps_HUD_alerts'];
	$bps_PHP_ELogLoc_set = ! isset($options['bps_PHP_ELogLoc_set']) ? '' : $options['bps_PHP_ELogLoc_set'];
	$bps_PHP_ELog_error = ! isset($options['bps_PHP_ELog_error']) ? '' : $options['bps_PHP_ELog_error'];
	$bps_phpini_created = ! isset($options['bps_phpini_created']) ? '' : $options['bps_phpini_created'];
	$bps_first_launch = ! isset($options['bps_first_launch']) ? '' : $options['bps_first_launch'];
?>
<strong><label for="bps-monitor-options"><?php _e('Security Status: BPS Pro Version, RBM, WBM & Alerts', 'bulletproof-security'); ?></label></strong><br />       
<select name="bulletproof_security_options_monitor[bps_security_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_security_status); ?>><?php _e('Display Status & Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_security_status); ?>><?php _e('Display Status & Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_security_status); ?>><?php _e('Turn Off Displayed Status & Alerts', 'bulletproof-security'); ?></option>
</select>        
<br />
<strong><label for="bps-monitor-options"><?php _e('Security Log: New Log Entry Has Been Logged Alerts', 'bulletproof-security'); ?></label></strong><br />       
<select name="bulletproof_security_options_monitor[bps_SecLog_entry]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_SecLog_entry); ?>><?php _e('Display Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_SecLog_entry); ?>><?php _e('Display Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_SecLog_entry); ?>><?php _e('Turn Off Displayed Alerts', 'bulletproof-security'); ?></option>
</select>        
<br />
<strong><label for="bps-monitor-options"><?php _e('AutoRestore|Quarantine: ARQ Status', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_autorestore_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_autorestore_status); ?>><?php _e('Display Status in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_autorestore_status); ?>><?php _e('Display Status in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_autorestore_status); ?>><?php _e('Turn Off Displayed Status', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('AutoRestore|Quarantine: ARQ Alerts', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_autorestore_alerts]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_autorestore_alerts); ?>><?php _e('Display Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_autorestore_alerts); ?>><?php _e('Display Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_autorestore_alerts); ?>><?php _e('Turn Off Displayed Alerts', 'bulletproof-security'); ?></option>
</select> 
<br />
<strong><label for="bps-monitor-options"><?php _e('MScan Malware Scanner: MSCAN Status', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_mscan_status_display]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_mscan_status_display); ?>><?php _e('Display Status in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_mscan_status_display); ?>><?php _e('Display Status in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_mscan_status_display); ?>><?php _e('Turn Off Displayed Status', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-options"><?php _e('Database Monitor: DBM Status', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_dbm_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_dbm_status); ?>><?php _e('Display Status in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_dbm_status); ?>><?php _e('Display Status in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_dbm_status); ?>><?php _e('Turn Off Displayed Status', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('Database Monitor: DBM Alerts', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_dbm_alerts]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_dbm_alerts); ?>><?php _e('Display Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_dbm_alerts); ?>><?php _e('Display Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_dbm_alerts); ?>><?php _e('Turn Off Displayed Alerts', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('Database Backup: DBB Status', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_dbb_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_dbb_status); ?>><?php _e('Display Last Backup Status in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_dbb_status); ?>><?php _e('Display Last Backup Status in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_dbb_status); ?>><?php _e('Turn Off Displayed Status', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('Plugin Firewall: Firewall Status', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_plugin_firewall_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_plugin_firewall_status); ?>><?php _e('Display Status in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_plugin_firewall_status); ?>><?php _e('Display Status in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_plugin_firewall_status); ?>><?php _e('Turn Off Displayed Status', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('Uploads Anti-Exploit Guard: UAEG Status', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_UAEG_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_UAEG_status); ?>><?php _e('Display Status in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_UAEG_status); ?>><?php _e('Display Status in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_UAEG_status); ?>><?php _e('Turn Off Displayed Status', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('Login Security: Login Security Status', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_login_security_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_login_security_status); ?>><?php _e('Display Status in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_login_security_status); ?>><?php _e('Display Status in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_login_security_status); ?>><?php _e('Turn Off Displayed Status', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('Login Security: Login Security Alerts', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_login_security_alerts]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_login_security_alerts); ?>><?php _e('Display Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_login_security_alerts); ?>><?php _e('Display Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_login_security_alerts); ?>><?php _e('Turn Off Displayed Alerts', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('JTC Anti-Spam|Anti-Hacker: JTC Status', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_jtc_antispam_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_jtc_antispam_status); ?>><?php _e('Display Status in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_jtc_antispam_status); ?>><?php _e('Display Status in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_jtc_antispam_status); ?>><?php _e('Turn Off Displayed Status', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('Idle Session Logout: ISL Status', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_isl_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_isl_status); ?>><?php _e('Display Status in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_isl_status); ?>><?php _e('Display Status in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_isl_status); ?>><?php _e('Turn Off Displayed Status', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('Auth Cookie Expiration: ACE Status', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_ace_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_ace_status); ?>><?php _e('Display Status in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_ace_status); ?>><?php _e('Display Status in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_ace_status); ?>><?php _e('Turn Off Displayed Status', 'bulletproof-security'); ?></option>
</select>  
<br />
<strong><label for="bps-monitor-options"><?php _e('F-Lock: File Lock|Unlock Alerts', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_flock_status]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_flock_status); ?>><?php _e('Display Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_flock_status); ?>><?php _e('Display Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_flock_status); ?>><?php _e('Turn Off Displayed Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-options"><?php _e('F-Lock: Folder Lock|Unlock Alerts', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_flock_FL_alerts]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_flock_FL_alerts); ?>><?php _e('Display Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_flock_FL_alerts); ?>><?php _e('Display Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_flock_FL_alerts); ?>><?php _e('Turn Off Displayed Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-options"><?php _e('HUD Alerts: BPS Error, Problem and Warning Alerts', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_HUD_alerts]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_HUD_alerts); ?>><?php _e('Display Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_HUD_alerts); ?>><?php _e('Display Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_HUD_alerts); ?>><?php _e('Turn Off Displayed Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-options"><?php _e('PHP Error Log: Check Folder Path Location Alert', 'bulletproof-security'); ?></label></strong><br />    
<select name="bulletproof_security_options_monitor[bps_PHP_ELogLoc_set]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_PHP_ELogLoc_set); ?>><?php _e('Display Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_PHP_ELogLoc_set); ?>><?php _e('Display Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_PHP_ELogLoc_set); ?>><?php _e('Turn Off Displayed Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-options"><?php _e('PHP Error Log: New Errors in The PHP Error Log Alerts', 'bulletproof-security'); ?></label></strong><br />    
<select name="bulletproof_security_options_monitor[bps_PHP_ELog_error]" class="form-340" style="margin-bottom:10px">
<option value="wpOn"<?php selected('wpOn', $bps_PHP_ELog_error); ?>><?php _e('Display Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_PHP_ELog_error); ?>><?php _e('Display Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_PHP_ELog_error); ?>><?php _e('Turn Off Displayed Alerts', 'bulletproof-security'); ?></option>
</select>        
<br />
<strong><label for="bps-monitor-options"><?php _e('Php.ini|ini_set: Error Checks & Alerts', 'bulletproof-security'); ?></label></strong><br />  
<select name="bulletproof_security_options_monitor[bps_phpini_created]" class="form-340">
<option value="wpOn"<?php selected('wpOn', $bps_phpini_created); ?>><?php _e('Display Alerts in WP Dashboard', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_phpini_created); ?>><?php _e('Display Alerts in BPS Only', 'bulletproof-security'); ?></option>
<option value="Off"<?php selected('Off', $bps_phpini_created); ?>><?php _e('Turn Off Displayed Alerts', 'bulletproof-security'); ?></option>
</select>

<div style="margin:33px 0px 0px 0px">
<input type="submit" name="bps-monitor-values_submit" class="button bps-button" value="<?php esc_attr_e('Save Options', 'bulletproof-security') ?>" />
</div>

<!-- form option is obsolete but the option itself is still used - defaults to Off -->
<label style="visibility:hidden;" for="bps-monitor-options"><?php _e('First Install|Launch S-Monitor Notification (Static Alert)', 'bulletproof-security'); ?></label>
<select name="bulletproof_security_options_monitor[bps_first_launch]" style="visibility:hidden;" class="form-340">
<option value="Off"<?php selected('Off', $bps_first_launch); ?>><?php _e('Turn Off Static Displayed Alert (For Testing)', 'bulletproof-security'); ?></option>
<option value="wpOn"<?php selected('wpOn', $bps_first_launch); ?>><?php _e('Display Static Alert in WP Dashboard (For Testing)', 'bulletproof-security'); ?></option>
<option value="bpsOn"<?php selected('bpsOn', $bps_first_launch); ?>><?php _e('Display Static Alert in BPS Only (For Testing)', 'bulletproof-security'); ?></option>
</select>
</form>

</div>
	
    </td>
    <td width="50%" valign="top" class="bps-table_cell_help">

<h3 style="margin:0px 0px 15px 0px;"><?php _e('Email Alerting & Log File Options', 'bulletproof-security'); ?>  <button id="bps-open-modal2" class="button bps-modal-button"><?php _e('Read Me', 'bulletproof-security'); ?></button></h3>
    
    <div id="bps-modal-content2" class="bps-dialog-hide" title="<?php _e('Email Alerting & Log File Options', 'bulletproof-security'); ?>">
	<p><?php $text = '<strong>'.__('This Read Me Help window is draggable (top) and resizable (bottom right corner)', 'bulletproof-security').'</strong><br><br><strong>'.__('The Email Alerting & Log File options work independently of the S-Monitor Monitoring and Alerting Options for displayed Status & Alerts.', 'bulletproof-security').'</strong><br><br>'.__('The email address fields To, From, Cc and Bcc can be email addresses for your hosting account, your WordPress Administrator email address or 3rd party email addresses like gmail or yahoo email. If you are sending emails to multiple email recipients then separate the email addresses with a comma. Example: someone@somewhere.com, someoneelse@somewhereelse.com. You can add a space or not add a space after the comma between email addresses.', 'bulletproof-security').'<br><br><strong>'.__('Login Security: Send Email Alerts When...', 'bulletproof-security').'</strong><br>'.__('There are 5 different email options. Choose to have email alerts sent when a User Account is locked out, An Administrator Logs in, An Administrator Logs in and when a User Account is locked out, Any User logs in and when a User Account is locked out or Do Not Send Email Alerts.', 'bulletproof-security').'<br><br>'.__('The email alerts contain the action that occurred with Timestamp and these fields: Username, Status, Role, Email, Lockout Time, Lockout Time Expires, User IP Address, User Hostname, Request URI and URL link for the website where the action occurred.', 'bulletproof-security').'<br><br><strong>'.__('DBM: When A Database Change|Modification Occurs...', 'bulletproof-security').'</strong><br>'.__('Choose whether or not to have email alerts sent when the Database Monitor has detected a change/modification to any of your database tables.', 'bulletproof-security').'<br><br><strong>'.__('DB Monitor Email|Delete Log File:', 'bulletproof-security').'</strong><br>'.__('Select the maximum Log File size that you want to allow for your DB Monitor Log File and then select the option that you want when your log file reaches that maximum size. Choose to either automatically Email the Log file to you and delete it or just delete it without emailing the log file to you first.', 'bulletproof-security').'<br><br><strong>'.__('ARQ: When A File Has Been AutoRestored|Quarantined', 'bulletproof-security').'</strong><br>'.__('Choose whether or not to have email alerts sent when a file has been AutoRestored or Quarantined.', 'bulletproof-security').'<br><br><strong>'.__('ARQ: When AutoRestore|Quarantine is Turned Off', 'bulletproof-security').'</strong><br>'.__('Choose the frequency (5, 10, 15, 30, 60 minute intervals) of email alerts sent when AutoRestore is turned Off or choose Do Not Send Email Alerts when AutoRestore has been turned Off.', 'bulletproof-security').'<br><br><strong>'.__('AutoRestore|Quarantine Email|Delete Log File:', 'bulletproof-security').'</strong><br>'.__('Select the maximum Log File size that you want to allow for your Quarantine Log File and then select the option that you want when your log file reaches that maximum size. Choose to either automatically Email the Log file to you and delete it or just delete it without emailing the log file to you first.', 'bulletproof-security').'<br><br><strong>'.__('MSCAN: When A Suspicious File Has Been Detected', 'bulletproof-security').'</strong><br>'.__('Choose whether or not to have email alerts sent when a suspicious file or DB Entry has been detected. Note: Email alerts are only sent for scheduled MScan scans and not for manual scans unless you run a manual scan and you have saved a scan frequency option setting.', 'bulletproof-security').'<br><br><strong>'.__('MScan Malware Scanner Email|Delete Log File:', 'bulletproof-security').'</strong><br>'.__('Select the maximum Log File size that you want to allow for your MScan Log File and then select the option that you want when your log file reaches that maximum size. Choose to either automatically Email the Log file to you and delete it or just delete it without emailing the log file to you first.', 'bulletproof-security').'<br><br><strong>'.__('Security Log: New Log Entry Has Been Logged', 'bulletproof-security').'</strong><br>'.__('Choose whether or not to have email alerts sent when a new security entry has been logged in your Security Log file.', 'bulletproof-security').'<br><br><strong>'.__('Security Log File Email|Delete Log File:', 'bulletproof-security').'</strong><br>'.__('Select the maximum Log File size that you want to allow for your Security Log File and then select the option that you want when your log file reaches that maximum size. Choose to either automatically Email the Log file to you and delete it or just delete it without emailing the log file to you first.', 'bulletproof-security').'<br><br><strong>'.__('PHP Error Log: New Errors in The PHP Error Log', 'bulletproof-security').'</strong><br>'.__('Choose whether or not to have email alerts sent when a new PHP Error has been logged in your PHP Error Log file.', 'bulletproof-security').'<br><br><strong>'.__('PHP Error Log File Email|Delete Log File:', 'bulletproof-security').'</strong><br>'.__('Select the maximum Log File size that you want to allow for your PHP Error Log File and then select the option that you want when your log file reaches that maximum size. Choose to either automatically Email the Log file to you and delete it or just delete it without emailing the log file to you first.', 'bulletproof-security').'<br><br><strong>'.__('DB Backup Log File Email|Delete Log File:', 'bulletproof-security').'</strong><br>'.__('Select the maximum Log File size that you want to allow for your DB Backup Log File and then select the option that you want when your log file reaches that maximum size. Choose to either automatically Email the Log file to you and delete it or just delete it without emailing the log file to you first.', 'bulletproof-security').'<br><br><strong>'.__('F-Lock Folder Lock: When A Folder Has Been Locked', 'bulletproof-security').'</strong><br>'.__('Choose whether or not to have email alerts sent when a Hosting Account Root folder has been locked.', 'bulletproof-security').'<br><br><strong>'.__('HPF: Hidden Plugin Folders|Files (HPF) Cron', 'bulletproof-security').'</strong><br>'.__('Choose whether or not to have email alerts sent if a hidden or empty plugin folder is detected or a non-standard WP file is detected in the WordPress /plugins/ folder.', 'bulletproof-security').'<br><br><strong>'.__('BPS Pro Upgrade Notification', 'bulletproof-security').'</strong><br>'.__('Choose whether or not to have email alerts sent when a new version of BPS Pro is available. BPS Pro upgrade notifications are displayed just like any other plugin upgrade notification in your WP Dashboard. You can also manually check for a BPS Pro upgrade on the WordPress Plugins page by clicking the BulletProof Security Pro Manual Upgrade Check link. NOTE: If you are not receiving upgrade notifications then try adding a From email address. If you are still not receiving email notifications then your Host is blocking the BPS Pro version upgrade check so you will not receive upgrade notification emails.', 'bulletproof-security').'<br><br><strong>'.__('Plugin Updates Available Email Alert:', 'bulletproof-security').'</strong><br>'.__('Choose whether or not to have email alerts sent if new Plugin version updates are available. The default setting is "Do Not Send Email Alerts". You can choose either to send email alerts for all Plugins or only Active Plugins.', 'bulletproof-security').'<br><br><strong>'.__('Theme Updates Available Email Alert:', 'bulletproof-security').'</strong><br>'.__('Choose whether or not to have email alerts sent if new Theme version updates are available. The default setting is "Do Not Send Email Alerts". You can choose either to send email alerts for all Themes or only the Active Theme.', 'bulletproof-security').'<br><br><strong>'.__('BPS Pro Video Tutorial links can be found in the Help & FAQ pages.', 'bulletproof-security').'</strong>'; echo $text; ?></p>
</div>

    <h3 style="margin:0px 0px 5px 0px;"><?php _e('Simple Email Tests', 'bulletproof-security'); ?>  <button id="bps-open-modal3" class="button bps-modal-button"><?php _e('Read Me', 'bulletproof-security'); ?></button></h3>
    
    <div id="bps-modal-content3" class="bps-dialog-hide" title="<?php _e('Simple Email Tests', 'bulletproof-security'); ?>">
	<p><?php $text = '<strong>'.__('This Read Me Help window is draggable (top) and resizable (bottom right corner)', 'bulletproof-security').'</strong><br><br><strong>'.__('Simple Email Test to check the PHP mail() function or the WordPress wp_mail() function.', 'bulletproof-security').'</strong><br>'.__('The PHP mail() function Email Test is checking if your Server has the PHP mail() function enabled and set up as a default php mailer on your Server and that your default email settings are already working for the php mail() function. The WordPress wp_mail() function uses PHPMailer that is bundled with WordPress to send a test email.', 'bulletproof-security').'<br><br>'.__('Your WordPress Administrator email address from the WordPress Settings Panel in General Options is displayed in the ', 'bulletproof-security').'<strong>'.__('Send A Test Email', 'bulletproof-security').'</strong>'.__(' window. You can use this email address to send a test email or type in a a different email address and click the', 'bulletproof-security').' <strong>'.__('Send Test Email', 'bulletproof-security').'</strong> '.__('button. The email address can be another email address under your hosting account or a gmail, yahoo or other 3rd party email address. The Test Email could take up to 15 minutes to be received by you.', 'bulletproof-security').'<br><br><strong>'.__('Php.ini mail Directives Testing', 'bulletproof-security').'</strong><br>'.__('If you are testing to see if you need to add any mail directives settings in your php.ini file, send a test email and if you receive the BPS Test Email then you do not need to add any mail directives settings to your php.ini file. If you want to find out what your default mail() and php.ini settings are for handling mail on your server then use the BPS Phpinfo viewer to find and view those PHP Server configuration mail settings.', 'bulletproof-security').'<br><br><strong'.__('BPS Pro Video Tutorial links can be found in the Help & FAQ pages.', 'bulletproof-security').'</strong>'; echo $text; ?></p>
</div>

<?php 
// Simple email test for PHP mail() and wp_mail() PHPMailer
function bpsEmailTest() {
	
if ( isset( $_POST['bpsEmailTestSubmit'] ) && current_user_can('manage_options') ) {
	check_admin_referer( 'bulletproof_security_email_test' );	  

		$admin_email = get_option('admin_email');
		$bps_email_from = ! empty($_POST['bpsEmail']) ? $_POST['bpsEmail'] : 'No email address entered';
		$justUrl = get_site_url();
		$mail_To = $bps_email_from;
	
		$bps_mail = ! empty($_POST['bps_mail']) ? '1' : '';
		$bps_wp_mail = ! empty($_POST['bps_wp_mail']) ? '1' : '';

		if ( $bps_mail == '1' ) {	
	
			$headers = 'MIME-Version: 1.0' . "\r\n";
			$headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
			$headers .= "From: ". $bps_email_from;
			$mail_Subject = " BPS Pro PHP mail() Email Test ";
			$mail_message = '<p>Email Test for the PHP mail() function sent successfully.</p>';
			$mail_message .= '<p>Site: '. $justUrl .'</p>'; 
	
			mail( $mail_To, $mail_Subject, $mail_message, $headers );
		
			$text = '<div id="message" class="updated fade" style="color:#008000;font-weight:600;background-color:#dfecf2;border:1px solid #999;-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-topright:3px;-webkit-border-top-right-radius:3px;-khtml-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);-moz-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);"><p>'.__('PHP mail() Test Email Sent to ', 'bulletproof-security').$bps_email_from.__(' Please wait at least 15 minutes to receive the test email.', 'bulletproof-security').'</p></div>';
			echo $text;
		} else {
			$text = '<div id="message" class="updated fade" style="color:#000;font-weight:600;background-color:#dfecf2;border:1px solid #999;-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-topright:3px;-webkit-border-top-right-radius:3px;-khtml-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);-moz-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);"><p>'.__('The PHP mail() function checkbox is not checked. No email test was sent.', 'bulletproof-security').'</p></div>';
			echo $text;			
		}
	
		if ( $bps_wp_mail == '1' ) {	
			
			$headers = array( 'Content-Type: text/html; charset=UTF-8', 'From: ' . $bps_email_from );
			$mail_Subject = " BPS Pro wp_mail() Email Test ";
			$mail_message = '<p>Email Test for the wp_mail() function sent successfully.</p>';
			$mail_message .= '<p>Site: '. $justUrl .'</p>'; 
		
			wp_mail( $mail_To, $mail_Subject, $mail_message, $headers );			
	
			$text = '<div id="message" class="updated fade" style="color:#008000;font-weight:600;background-color:#dfecf2;border:1px solid #999;-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-topright:3px;-webkit-border-top-right-radius:3px;-khtml-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);-moz-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);"><p>'.__('wp_mail() Test Email Sent to ', 'bulletproof-security').$bps_email_from.__(' Please wait at least 15 minutes to receive the test email.', 'bulletproof-security').'</p></div>';
			echo $text;
		} else {
			$text = '<div id="message" class="updated fade" style="color:#000;font-weight:600;background-color:#dfecf2;border:1px solid #999;-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;-moz-border-radius-topright:3px;-webkit-border-top-right-radius:3px;-khtml-border-top-right-radius:3px;border-top-right-radius:3px;-webkit-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);-moz-box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);box-shadow: 3px 3px 5px -1px rgba(153,153,153,0.7);"><p>'.__('The WordPress wp_mail() function checkbox is not checked. No email test was sent.', 'bulletproof-security').'</p></div>';
			echo $text;			
		}
	}
}

$admin_email = get_option('admin_email'); 
$bps_mail = ! empty( $_POST['bps_mail'] ) ? '1' : '';	
$bps_wp_mail = ! empty( $_POST['bps_wp_mail'] ) ? '1' : '';
$bpsEmail = ! empty( $_POST['bpsEmail'] ) ? esc_html( $_POST['bpsEmail'] ) : $admin_email;

?>
<div id="smonitor-email-fields">

<form name="bpsEmailTest" action="<?php echo admin_url( 'admin.php?page=bulletproof-security/admin/monitor/monitor.php' ); ?>" method="post">
<?php wp_nonce_field('bulletproof_security_email_test'); ?>

<strong><label for="bpsEmailTest"><?php _e( 'Test PHP mail() or WordPress wp_mail() or both:', 'bulletproof-security' ); ?></label></strong><br />
<input type="checkbox" name="bps_mail" value="1" <?php if ( empty( $bps_mail ) ) { echo ''; } else { checked( $bps_mail, 1 ); } ?>/>
<label for="bpsEmailTest"><?php esc_attr_e('PHP mail() function', 'bulletproof-security'); ?></label><br />
<input type="checkbox" name="bps_wp_mail" value="1" <?php if ( empty( $bps_wp_mail ) ) { echo ''; } else { checked( $bps_wp_mail, 1 ); } ?>/>
<label for="bpsEmailTest"><?php esc_attr_e('WordPress wp_mail() function', 'bulletproof-security'); ?></label><br />

<strong><label for="bps-email-test"><?php _e('Send a Test Email To:', 'bulletproof-security'); ?> </label></strong><br />
<input name="bpsEmail" type="text" value="<?php echo $bpsEmail; ?>" class="regular-text" />
<input type="hidden" name="bpsET" value="bps-ET" />
<input type="submit" name="bpsEmailTestSubmit" class="button bps-button" style="margin:0px 0px 15px 0px;" value="<?php esc_attr_e('Send Test Email', 'bulletproof-security') ?>" />
<?php echo bpsEmailTest(); ?>
</form>

<form name="bpsEmailAlerts" action="options.php" method="post">
    <?php settings_fields('bulletproof_security_options_email'); ?>
	<?php $options = get_option('bulletproof_security_options_email'); 
	$bps_send_email_to = ! isset($options['bps_send_email_to']) ? '' : $options['bps_send_email_to'];
	$bps_send_email_from = ! isset($options['bps_send_email_from']) ? '' : $options['bps_send_email_from'];	
	$bps_send_email_cc = ! isset($options['bps_send_email_cc']) ? '' : $options['bps_send_email_cc'];	
	$bps_send_email_bcc = ! isset($options['bps_send_email_bcc']) ? '' : $options['bps_send_email_bcc'];

	$bps_login_security_email = ! isset($options['bps_login_security_email']) ? '' : $options['bps_login_security_email'];
	$bps_dbm_email = ! isset($options['bps_dbm_email']) ? '' : $options['bps_dbm_email'];
	$bps_dbm_log_size = ! isset($options['bps_dbm_log_size']) ? '' : $options['bps_dbm_log_size'];
	$bps_dbm_log_email = ! isset($options['bps_dbm_log_email']) ? '' : $options['bps_dbm_log_email'];
	$bps_autorestore_email = ! isset($options['bps_autorestore_email']) ? '' : $options['bps_autorestore_email'];
	$bps_arq_cron_frequency_email = ! isset($options['bps_arq_cron_frequency_email']) ? '' : $options['bps_arq_cron_frequency_email'];
	$bps_arq_cron_next_email = ! isset($options['bps_arq_cron_next_email']) ? '' : $options['bps_arq_cron_next_email'];
	$bps_arq_log_size = ! isset($options['bps_arq_log_size']) ? '' : $options['bps_arq_log_size'];
	$bps_arq_log_email = ! isset($options['bps_arq_log_email']) ? '' : $options['bps_arq_log_email'];
	$bps_mscan_email = ! isset($options['bps_mscan_email']) ? '' : $options['bps_mscan_email'];
	$bps_mscan_log_size = ! isset($options['bps_mscan_log_size']) ? '' : $options['bps_mscan_log_size'];
	$bps_mscan_log_email = ! isset($options['bps_mscan_log_email']) ? '' : $options['bps_mscan_log_email'];
	$bps_security_log_email = ! isset($options['bps_security_log_email']) ? '' : $options['bps_security_log_email'];
	$bps_security_log_size = ! isset($options['bps_security_log_size']) ? '' : $options['bps_security_log_size'];
	$bps_security_log_emailL = ! isset($options['bps_security_log_emailL']) ? '' : $options['bps_security_log_emailL'];
	$bps_error_log_email = ! isset($options['bps_error_log_email']) ? '' : $options['bps_error_log_email'];
	$bps_php_log_size = ! isset($options['bps_php_log_size']) ? '' : $options['bps_php_log_size'];
	$bps_php_log_email = ! isset($options['bps_php_log_email']) ? '' : $options['bps_php_log_email'];
	$bps_dbb_log_size = ! isset($options['bps_dbb_log_size']) ? '' : $options['bps_dbb_log_size'];
	$bps_dbb_log_email = ! isset($options['bps_dbb_log_email']) ? '' : $options['bps_dbb_log_email'];
	$bps_flock_email = ! isset($options['bps_flock_email']) ? '' : $options['bps_flock_email'];
	$bps_hpf_email = ! isset($options['bps_hpf_email']) ? '' : $options['bps_hpf_email'];
	$bps_upgrade_email = ! isset($options['bps_upgrade_email']) ? '' : $options['bps_upgrade_email'];
	$bps_plugin_updates_frequency = ! isset($options['bps_plugin_updates_frequency']) ? '' : $options['bps_plugin_updates_frequency'];
	$bps_plugin_updates_email = ! isset($options['bps_plugin_updates_email']) ? '' : $options['bps_plugin_updates_email'];
	$bps_theme_updates_frequency = ! isset($options['bps_theme_updates_frequency']) ? '' : $options['bps_theme_updates_frequency'];
	$bps_theme_updates_email = ! isset($options['bps_theme_updates_email']) ? '' : $options['bps_theme_updates_email'];
	?>

<strong><label for="bps-monitor-email"><?php _e('Send Email Alerts & Log Files To:', 'bulletproof-security'); ?> </label></strong><br />
<input name="bulletproof_security_options_email[bps_send_email_to]" type="text" value="<?php echo esc_html( $bps_send_email_to ); ?>" class="regular-text" /><br />
<strong><label for="bps-monitor-email"><?php _e('Send Email Alerts & Log Files From:', 'bulletproof-security'); ?> </label></strong><br />
<input name="bulletproof_security_options_email[bps_send_email_from]" type="text" value="<?php echo esc_html( $bps_send_email_from ); ?>" class="regular-text" /><br />
<strong><label for="bps-monitor-email"><?php _e('Send Email Alerts & Log Files Cc:', 'bulletproof-security'); ?> </label></strong><br />
<input name="bulletproof_security_options_email[bps_send_email_cc]" type="text" value="<?php echo esc_html( $bps_send_email_cc ); ?>" class="regular-text" /><br />
<strong><label for="bps-monitor-email"><?php _e('Send Email Alerts & Log Files Bcc:', 'bulletproof-security'); ?> </label></strong><br />
<input name="bulletproof_security_options_email[bps_send_email_bcc]" type="text" value="<?php echo esc_html( $bps_send_email_bcc ); ?>" class="regular-text" /><br />
<input type="hidden" name="bpsEMA" value="bps-EMA" /><br />

<strong><label for="bps-monitor-email"><?php _e('Login Security: Send Email Alerts When...', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_login_security_email]" class="form-340" style="margin-bottom:10px">
<option value="lockoutOnly" <?php selected( $bps_login_security_email, 'lockoutOnly'); ?>><?php _e('A User Account Is Locked Out', 'bulletproof-security'); ?></option>
<option value="adminLoginOnly" <?php selected( $bps_login_security_email, 'adminLoginOnly'); ?>><?php _e('An Administrator Logs In', 'bulletproof-security'); ?></option>
<option value="adminLoginLock" <?php selected( $bps_login_security_email, 'adminLoginLock'); ?>><?php _e('An Administrator Logs In & A User Account is Locked Out', 'bulletproof-security'); ?></option>
<option value="anyUserLoginLock" <?php selected( $bps_login_security_email, 'anyUserLoginLock'); ?>><?php _e('Any User Logs In & A User Account is Locked Out', 'bulletproof-security'); ?></option>
<option value="no" <?php selected( $bps_login_security_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email"><?php _e('DBM: When A Database Change|Modification Occurs...', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_dbm_email]" class="form-340" style="margin-bottom:10px">
<option value="yes" <?php selected( $bps_dbm_email, 'yes'); ?>><?php _e('Send Email Alerts', 'bulletproof-security'); ?></option>
<option value="no" <?php selected( $bps_dbm_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email-log"><?php _e('DB Monitor Email|Delete Log File:', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_dbm_log_size]" style="width:80px;margin-bottom:10px">
<option value="500KB" <?php selected( $bps_dbm_log_size, '500KB' ); ?>><?php _e('500KB', 'bulletproof-security'); ?></option>
<option value="256KB" <?php selected( $bps_dbm_log_size, '256KB'); ?>><?php _e('256KB', 'bulletproof-security'); ?></option>
<option value="1MB" <?php selected( $bps_dbm_log_size, '1MB' ); ?>><?php _e('1MB', 'bulletproof-security'); ?></option>
</select>
<select name="bulletproof_security_options_email[bps_dbm_log_email]" class="form-255" style="margin-bottom:10px">
<option value="email" <?php selected( $bps_dbm_log_email, 'email' ); ?>><?php _e('Email Log & Then Delete Log File', 'bulletproof-security'); ?></option>
<option value="delete" <?php selected( $bps_dbm_log_email, 'delete' ); ?>><?php _e('Delete Log File', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email"><?php _e('ARQ: When A File Has Been AutoRestored|Quarantined', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_autorestore_email]" class="form-340" style="margin-bottom:10px">
<option value="yes" <?php selected( $bps_autorestore_email, 'yes'); ?>><?php _e('Send Email Alerts', 'bulletproof-security'); ?></option>
<option value="no" <?php selected( $bps_autorestore_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email"><?php _e('ARQ: When AutoRestore|Quarantine is Turned Off', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_arq_cron_frequency_email]" class="form-340" style="margin-bottom:10px">
<option value="5" <?php selected('5', $bps_arq_cron_frequency_email); ?>><?php _e('Send Email Alert Every 5 Minutes', 'bulletproof-security'); ?></option>
<option value="10" <?php selected('10', $bps_arq_cron_frequency_email); ?>><?php _e('Send Email Alert Every 10 Minutes', 'bulletproof-security'); ?></option>
<option value="15" <?php selected('15', $bps_arq_cron_frequency_email); ?>><?php _e('Send Email Alert Every 15 Minutes', 'bulletproof-security'); ?></option>
<option value="30" <?php selected('30', $bps_arq_cron_frequency_email); ?>><?php _e('Send Email Alert Every 30 Minutes', 'bulletproof-security'); ?></option>
<option value="60" <?php selected('60', $bps_arq_cron_frequency_email); ?>><?php _e('Send Email Alert Every 60 Minutes', 'bulletproof-security'); ?></option>
<option value="Off" <?php selected( $bps_arq_cron_frequency_email, 'Off'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
</select>
<!-- Form option is hidden. DB option value is used in the ARQ Off Email Cron for next email time - defaults to: 0 -->
<label style="visibility:hidden;" for="bps-monitor-email"></label>
<select name="bulletproof_security_options_email[bps_arq_cron_next_email]" style="visibility:hidden;">
<option value="0" <?php selected('0', $bps_arq_cron_next_email); ?>></option>
</select>
<br />
<strong><label for="bps-monitor-email-log"><?php _e('AutoRestore|Quarantine Email|Delete Log File:', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_arq_log_size]" style="width:80px;margin-bottom:10px">
<option value="500KB" <?php selected( $bps_arq_log_size, '500KB' ); ?>><?php _e('500KB', 'bulletproof-security'); ?></option>
<option value="256KB" <?php selected( $bps_arq_log_size, '256KB'); ?>><?php _e('256KB', 'bulletproof-security'); ?></option>
<option value="1MB" <?php selected( $bps_arq_log_size, '1MB' ); ?>><?php _e('1MB', 'bulletproof-security'); ?></option>
</select>
<select name="bulletproof_security_options_email[bps_arq_log_email]" class="form-255" style="margin-bottom:10px">
<option value="email" <?php selected( $bps_arq_log_email, 'email' ); ?>><?php _e('Email Log & Then Delete Log File', 'bulletproof-security'); ?></option>
<option value="delete" <?php selected( $bps_arq_log_email, 'delete' ); ?>><?php _e('Delete Log File', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email"><?php _e('MSCAN: When A Suspicious File Has Been Detected', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_mscan_email]" class="form-340" style="margin-bottom:10px">
<option value="yes" <?php selected( $bps_mscan_email, 'yes'); ?>><?php _e('Send Email Alerts', 'bulletproof-security'); ?></option>
<option value="no" <?php selected( $bps_mscan_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email-log"><?php _e('MScan Malware Scanner Email|Delete Log File:', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_mscan_log_size]" style="width:80px;margin-bottom:10px">
<option value="500KB" <?php selected( $bps_mscan_log_size, '500KB' ); ?>><?php _e('500KB', 'bulletproof-security'); ?></option>
<option value="256KB" <?php selected( $bps_mscan_log_size, '256KB'); ?>><?php _e('256KB', 'bulletproof-security'); ?></option>
<option value="1MB" <?php selected( $bps_mscan_log_size, '1MB' ); ?>><?php _e('1MB', 'bulletproof-security'); ?></option>
</select>
<select name="bulletproof_security_options_email[bps_mscan_log_email]" class="form-255" style="margin-bottom:10px">
<option value="email" <?php selected( $bps_mscan_log_email, 'email' ); ?>><?php _e('Email Log & Then Delete Log File', 'bulletproof-security'); ?></option>
<option value="delete" <?php selected( $bps_mscan_log_email, 'delete' ); ?>><?php _e('Delete Log File', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email"><?php _e('Security Log: New Log Entry Has Been Logged', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_security_log_email]" class="form-340" style="margin-bottom:10px">
<option value="no" <?php selected( $bps_security_log_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
<option value="yes" <?php selected( $bps_security_log_email, 'yes'); ?>><?php _e('Send Email Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email-log"><?php _e('Security Log File Email|Delete Log File:', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_security_log_size]" style="width:80px;margin-bottom:10px">
<option value="500KB" <?php selected( $bps_security_log_size, '500KB' ); ?>><?php _e('500KB', 'bulletproof-security'); ?></option>
<option value="256KB" <?php selected( $bps_security_log_size, '256KB'); ?>><?php _e('256KB', 'bulletproof-security'); ?></option>
<option value="1MB" <?php selected( $bps_security_log_size, '1MB' ); ?>><?php _e('1MB', 'bulletproof-security'); ?></option>
</select>
<select name="bulletproof_security_options_email[bps_security_log_emailL]" class="form-255" style="margin-bottom:10px">
<option value="email" <?php selected( $bps_security_log_emailL, 'email' ); ?>><?php _e('Email Log & Then Delete Log File', 'bulletproof-security'); ?></option>
<option value="delete" <?php selected( $bps_security_log_emailL, 'delete' ); ?>><?php _e('Delete Log File', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email"><?php _e('PHP Error Log: New Errors in The PHP Error Log', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_error_log_email]" class="form-340" style="margin-bottom:10px">
<option value="no" <?php selected( $bps_error_log_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
<option value="yes" <?php selected( $bps_error_log_email, 'yes'); ?>><?php _e('Send Email Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email-log"><?php _e('PHP Error Log File Email|Delete Log File:', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_php_log_size]" style="width:80px;margin-bottom:10px">
<option value="500KB" <?php selected( $bps_php_log_size, '500KB' ); ?>><?php _e('500KB', 'bulletproof-security'); ?></option>
<option value="256KB" <?php selected( $bps_php_log_size, '256KB'); ?>><?php _e('256KB', 'bulletproof-security'); ?></option>
<option value="1MB" <?php selected( $bps_php_log_size, '1MB' ); ?>><?php _e('1MB', 'bulletproof-security'); ?></option>
</select>
<select name="bulletproof_security_options_email[bps_php_log_email]" class="form-255" style="margin-bottom:10px">
<option value="email" <?php selected( $bps_php_log_email, 'email' ); ?>><?php _e('Email Log & Then Delete Log File', 'bulletproof-security'); ?></option>
<option value="delete" <?php selected( $bps_php_log_email, 'delete' ); ?>><?php _e('Delete Log File', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email-log"><?php _e('DB Backup Log File Email|Delete Log File:', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_dbb_log_size]" style="width:80px;margin-bottom:10px">
<option value="500KB" <?php selected( $bps_dbb_log_size, '500KB' ); ?>><?php _e('500KB', 'bulletproof-security'); ?></option>
<option value="256KB" <?php selected( $bps_dbb_log_size, '256KB'); ?>><?php _e('256KB', 'bulletproof-security'); ?></option>
<option value="1MB" <?php selected( $bps_dbb_log_size, '1MB' ); ?>><?php _e('1MB', 'bulletproof-security'); ?></option>
</select>
<select name="bulletproof_security_options_email[bps_dbb_log_email]" class="form-255" style="margin-bottom:10px">
<option value="email" <?php selected( $bps_dbb_log_email, 'email' ); ?>><?php _e('Email Log & Then Delete Log File', 'bulletproof-security'); ?></option>
<option value="delete" <?php selected( $bps_dbb_log_email, 'delete' ); ?>><?php _e('Delete Log File', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email"><?php _e('F-Lock Folder Lock: When A Folder Has Been Locked', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_flock_email]" class="form-340" style="margin-bottom:10px">
<option value="yes" <?php selected( $bps_flock_email, 'yes'); ?>><?php _e('Send Email Alerts', 'bulletproof-security'); ?></option>
<option value="no" <?php selected( $bps_flock_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email"><?php _e('HPF: Hidden Plugin Folders|Files (HPF) Cron', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_hpf_email]" class="form-340" style="margin-bottom:10px">
<option value="yes" <?php selected( $bps_hpf_email, 'yes'); ?>><?php _e('Send Email Alerts', 'bulletproof-security'); ?></option>
<option value="no" <?php selected( $bps_hpf_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email"><?php _e('BPS Pro Upgrade Notification', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_upgrade_email]" class="form-340" style="margin-bottom:10px">
<option value="yes" <?php selected( $bps_upgrade_email, 'yes'); ?>><?php _e('Send Email Alerts', 'bulletproof-security'); ?></option>
<option value="no" <?php selected( $bps_upgrade_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email-log"><?php _e('Plugin Updates Available Email Alert:', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_plugin_updates_frequency]" style="width:80px;margin-bottom:10px">
<option value="1Hour" <?php selected( $bps_plugin_updates_frequency, '1Hour' ); ?>><?php _e('1 Hour', 'bulletproof-security'); ?></option>
<option value="12Hours" <?php selected( $bps_plugin_updates_frequency, '12Hours'); ?>><?php _e('12 Hours', 'bulletproof-security'); ?></option>
<option value="1Day" <?php selected( $bps_plugin_updates_frequency, '1Day' ); ?>><?php _e('1 Day', 'bulletproof-security'); ?></option>
</select>
<select name="bulletproof_security_options_email[bps_plugin_updates_email]" class="form-255" style="margin-bottom:10px">
<option value="no" <?php selected( $bps_plugin_updates_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
<option value="yes_all" <?php selected( $bps_plugin_updates_email, 'yes_all'); ?>><?php _e('Send Email Alerts for All Plugins', 'bulletproof-security'); ?></option>
<option value="yes_active" <?php selected( $bps_plugin_updates_email, 'yes_active'); ?>><?php _e('Send Email Alerts for Active Plugins Only', 'bulletproof-security'); ?></option>
</select>
<br />
<strong><label for="bps-monitor-email-log"><?php _e('Theme Updates Available Email Alert:', 'bulletproof-security'); ?></label></strong><br />
<select name="bulletproof_security_options_email[bps_theme_updates_frequency]" style="width:80px;margin-bottom:10px">
<option value="1Hour" <?php selected( $bps_theme_updates_frequency, '1Hour' ); ?>><?php _e('1 Hour', 'bulletproof-security'); ?></option>
<option value="12Hours" <?php selected( $bps_theme_updates_frequency, '12Hours'); ?>><?php _e('12 Hours', 'bulletproof-security'); ?></option>
<option value="1Day" <?php selected( $bps_theme_updates_frequency, '1Day' ); ?>><?php _e('1 Day', 'bulletproof-security'); ?></option>
</select>
<select name="bulletproof_security_options_email[bps_theme_updates_email]" class="form-255" style="margin-bottom:10px">
<option value="no" <?php selected( $bps_theme_updates_email, 'no'); ?>><?php _e('Do Not Send Email Alerts', 'bulletproof-security'); ?></option>
<option value="yes_all" <?php selected( $bps_theme_updates_email, 'yes_all'); ?>><?php _e('Send Email Alerts for All Themes', 'bulletproof-security'); ?></option>
<option value="yes_active" <?php selected( $bps_theme_updates_email, 'yes_active'); ?>><?php _e('Send Email Alerts for Active Theme Only', 'bulletproof-security'); ?></option>
</select>

<div style="margin:15px 0px 10px 0px">
<input type="submit" name="bpsEmailAlertSubmit" class="button bps-button" value="<?php esc_attr_e('Save Options', 'bulletproof-security') ?>" />
</div>
</form>

</div>


</td>
  </tr>
</table>
</div>

<?php } ?>
</div>

<div id="bps-tabs-2" class="bps-tab-page">

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bps-help_faq_table">
  <tr>
    <td class="bps-table_title"><h2><?php _e('Help &amp; FAQ', 'bulletproof-security'); ?></h2></td>
  </tr>
  <tr>
    <td class="bps-table_cell_help_links">
    <a href="https://forum.ait-pro.com/video-tutorials/" target="_blank"><?php _e('Video Tutorials', 'bulletproof-security'); ?></a><br /><br />
    <a href="https://forum.ait-pro.com/forums/topic/bulletproof-security-pro-version-release-dates/" target="_blank"><?php _e('BPS Pro Features & Version Release Dates', 'bulletproof-security'); ?></a><br /><br />
    <a href="https://www.ait-pro.com/aitpro-blog/2845/bulletproof-security-pro/bulletproof-security-pro-hover-tooltips/" target="_blank"><?php _e('Read Me Help Buttons Posted As Text For Language Translation', 'bulletproof-security'); ?></a><br /><br />
    <a href="https://forum.ait-pro.com/forums/topic/plugin-conflicts-actively-blocked-plugins-plugin-compatibility/" target="_blank"><?php _e('Forum: Search, Troubleshooting Steps & Post Questions For Assistance', 'bulletproof-security'); ?></a>
    </td>
  </tr>
</table>
</div>
        
<div id="AITpro-link">BulletProof Security Pro <?php echo BULLETPROOF_VERSION; ?> Plugin by <a href="https://forum.ait-pro.com/" target="_blank" title="AITpro Website Security">AITpro Website Security</a>
</div>
</div>
</div>