Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordfenc.../lib
File: menu_dashboard.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
$firewall = new wfFirewall();
[2] Fix | Delete
$scanner = wfScanner::shared();
[3] Fix | Delete
$d = new wfDashboard();
[4] Fix | Delete
?>
[5] Fix | Delete
<?php
[6] Fix | Delete
if (!wfOnboardingController::shouldShowAttempt3() && wfConfig::get('touppPromptNeeded')) {
[7] Fix | Delete
echo wfView::create('gdpr/disabled-overlay')->render();
[8] Fix | Delete
echo wfView::create('gdpr/banner')->render();
[9] Fix | Delete
}
[10] Fix | Delete
?>
[11] Fix | Delete
<div class="wrap wordfence" id="wf-dashboard">
[12] Fix | Delete
<div class="wf-container-fluid">
[13] Fix | Delete
<div class="wf-row">
[14] Fix | Delete
<div class="wf-col-xs-12">
[15] Fix | Delete
<div class="wp-header-end"></div>
[16] Fix | Delete
<?php
[17] Fix | Delete
echo wfView::create('common/section-title', array(
[18] Fix | Delete
'title' => __('Wordfence Dashboard', 'wordfence'),
[19] Fix | Delete
'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_DASHBOARD),
[20] Fix | Delete
'helpLabelHTML' => wp_kses(__('Learn more<span class="wf-hidden-xs"> about the Dashboard</span>', 'wordfence'), array('span'=>array('class'=>array()))),
[21] Fix | Delete
'showIcon' => true,
[22] Fix | Delete
))->render();
[23] Fix | Delete
?>
[24] Fix | Delete
</div>
[25] Fix | Delete
</div>
[26] Fix | Delete
<div class="wf-row">
[27] Fix | Delete
<div class="wf-col-xs-12">
[28] Fix | Delete
<div class="wf-block wf-active wf-add-bottom">
[29] Fix | Delete
<div class="wf-block-content">
[30] Fix | Delete
<ul class="wf-block-list">
[31] Fix | Delete
<li>
[32] Fix | Delete
<?php
[33] Fix | Delete
echo wfView::create('dashboard/global-status', array(
[34] Fix | Delete
'firewall' => $firewall,
[35] Fix | Delete
'scanner' => $scanner,
[36] Fix | Delete
'dashboard' => $d,
[37] Fix | Delete
))->render();
[38] Fix | Delete
?>
[39] Fix | Delete
</li>
[40] Fix | Delete
<li>
[41] Fix | Delete
<ul class="wf-block-list wf-block-list-horizontal wf-block-list-nowrap wf-waf-coverage">
[42] Fix | Delete
<li>
[43] Fix | Delete
<?php
[44] Fix | Delete
echo wfView::create('common/status-detail', array(
[45] Fix | Delete
'id' => 'waf-coverage',
[46] Fix | Delete
'percentage' => $firewall->overallStatus(),
[47] Fix | Delete
'activeColor' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? '#ececec' : null /* automatic */),
[48] Fix | Delete
'title' => __('Firewall', 'wordfence'),
[49] Fix | Delete
'subtitle' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? __('WAF Currently in Learning Mode', 'wordfence') : __('Protection from known and emerging threats', 'wordfence')),
[50] Fix | Delete
'link' => wfPage::pageURL(wfPage::PAGE_FIREWALL_OPTIONS, wfPage::PAGE_DASHBOARD),
[51] Fix | Delete
'linkLabel' => __('Manage Firewall', 'wordfence'),
[52] Fix | Delete
'statusTitle' => __('Firewall Status', 'wordfence'),
[53] Fix | Delete
'statusList' => $firewall->statusList(),
[54] Fix | Delete
'statusExtra' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? wfView::create('waf/status-tooltip-learning-mode')->render() : ''),
[55] Fix | Delete
'helpLink' => __('https://www.wordfence.com/help/dashboard/#dashboard-status', 'wordfence'),
[56] Fix | Delete
))->render();
[57] Fix | Delete
?>
[58] Fix | Delete
</li>
[59] Fix | Delete
<li>
[60] Fix | Delete
<?php
[61] Fix | Delete
echo wfView::create('common/status-detail', array(
[62] Fix | Delete
'id' => 'wf-scanner-type',
[63] Fix | Delete
'percentage' => $scanner->scanTypeStatus(),
[64] Fix | Delete
'activeColor' => (!$scanner->isEnabled() ? '#ececec' : null /* automatic */),
[65] Fix | Delete
'title' => __('Scan', 'wordfence'),
[66] Fix | Delete
'subtitle' => __('Detection of security issues', 'wordfence'),
[67] Fix | Delete
'link' => wfPage::pageURL(wfPage::PAGE_SCAN_OPTIONS, wfPage::PAGE_DASHBOARD),
[68] Fix | Delete
'linkLabel' => __('Manage Scan', 'wordfence'),
[69] Fix | Delete
'statusTitle' => __('Scan Status', 'wordfence'),
[70] Fix | Delete
'statusList' => $scanner->scanTypeStatusList(),
[71] Fix | Delete
'helpLink' => __('https://www.wordfence.com/help/dashboard/#dashboard-status', 'wordfence'),
[72] Fix | Delete
))->render();
[73] Fix | Delete
?>
[74] Fix | Delete
</li>
[75] Fix | Delete
<li>
[76] Fix | Delete
<?php if (wfConfig::get('hasKeyConflict')): ?>
[77] Fix | Delete
<?php
[78] Fix | Delete
echo wfView::create('common/status-critical', array(
[79] Fix | Delete
'id' => 'wf-premium-alert',
[80] Fix | Delete
'title' => __('Premium License Conflict', 'wordfence'),
[81] Fix | Delete
'subtitle' => __('License already in use', 'wordfence'),
[82] Fix | Delete
'link' => 'https://www.wordfence.com/gnl1manageConflict/manage-wordfence-api-keys/',
[83] Fix | Delete
'linkLabel' => __('Reset License', 'wordfence'),
[84] Fix | Delete
'linkNewWindow' => true,
[85] Fix | Delete
))->render();
[86] Fix | Delete
?>
[87] Fix | Delete
<?php elseif (wfConfig::get('keyType') == wfLicense::KEY_TYPE_PAID_EXPIRED): ?>
[88] Fix | Delete
<?php
[89] Fix | Delete
echo wfView::create('common/status-critical', array(
[90] Fix | Delete
'id' => 'wf-premium-alert',
[91] Fix | Delete
'title' => __('Premium Protection Disabled', 'wordfence'),
[92] Fix | Delete
'subtitle' => __('License is expired', 'wordfence'),
[93] Fix | Delete
'link' => 'https://www.wordfence.com/gnl1renewExpired/manage-wordfence-api-keys/',
[94] Fix | Delete
'linkLabel' => __('Renew License', 'wordfence'),
[95] Fix | Delete
'linkNewWindow' => true,
[96] Fix | Delete
))->render();
[97] Fix | Delete
?>
[98] Fix | Delete
<?php elseif (wfConfig::get('keyType') == wfLicense::KEY_TYPE_PAID_DELETED): ?>
[99] Fix | Delete
<?php
[100] Fix | Delete
echo wfView::create('common/status-critical', array(
[101] Fix | Delete
'id' => 'wf-premium-alert',
[102] Fix | Delete
'title' => __('Premium Protection Disabled', 'wordfence'),
[103] Fix | Delete
'subtitleHtml' => wp_kses(__('The license you were using has been removed from your account. Please reach out to <a href="mailto:billing@wordfence.com">billing@wordfence.com</a> or create a Premium support case at <a href="https://support.wordfence.com/support/tickets" target="_blank">https://support.wordfence.com/support/tickets<span class="screen-reader-text"> (opens in new tab)</span></a> for more information. Our staff is happy to help.', 'wordfence'), array('a'=>array('href'=>array(), 'target'=>array()), 'span'=>array('class'=>array()))),
[104] Fix | Delete
'link' => null,
[105] Fix | Delete
'linkLabel' => null
[106] Fix | Delete
))->render();
[107] Fix | Delete
?>
[108] Fix | Delete
<?php elseif (wfConfig::get('keyType') == wfLicense::KEY_TYPE_FREE || wfConfig::get('keyType') === false): ?>
[109] Fix | Delete
<div>
[110] Fix | Delete
<p><h3><?php esc_html_e('Premium Protection Disabled', 'wordfence'); ?></h3></p>
[111] Fix | Delete
<p><?php esc_html_e('As a free Wordfence user, you are currently using the Community version of the Threat Defense Feed. Premium users are protected by additional firewall rules and malware signatures. Upgrade to Premium today to improve your protection.', 'wordfence'); ?></p>
[112] Fix | Delete
<p><a class="wf-btn wf-btn-primary wf-btn-callout-subtle" href="https://www.wordfence.com/gnl1dashboardUpgrade/products/wordfence-premium/" target="_blank" rel="noopener noreferrer"><?php esc_html_e('Upgrade to Premium', 'wordfence'); ?></a>&nbsp;&nbsp;<a class="wf-btn wf-btn-callout-subtle wf-btn-default" href="https://www.wordfence.com/gnl1dashboardLearn/products/pricing/" target="_blank" rel="noopener noreferrer"><?php esc_html_e('Learn More', 'wordfence'); ?><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a></p>
[113] Fix | Delete
</div>
[114] Fix | Delete
<?php elseif (wfConfig::get('keyExpDays') < 30 && (wfConfig::get('premiumAutoRenew', null) === '0' || wfConfig::get('premiumAutoRenew', null) === 0)): ?>
[115] Fix | Delete
<?php
[116] Fix | Delete
echo wfView::create('common/status-critical', array(
[117] Fix | Delete
'id' => 'wf-premium-alert',
[118] Fix | Delete
'title' => __('Premium License Expiring', 'wordfence'),
[119] Fix | Delete
'subtitle' => __('Auto-renew is disabled', 'wordfence'),
[120] Fix | Delete
'link' => 'https://www.wordfence.com/gnl1renewExpiring/manage-wordfence-api-keys/',
[121] Fix | Delete
'linkLabel' => __('Renew License', 'wordfence'),
[122] Fix | Delete
'linkNewWindow' => true,
[123] Fix | Delete
))->render();
[124] Fix | Delete
?>
[125] Fix | Delete
<?php elseif (wfConfig::get('keyExpDays') < 30): ?>
[126] Fix | Delete
<?php
[127] Fix | Delete
if (wfConfig::get('premiumPaymentExpiring')) {
[128] Fix | Delete
$title = __('Payment Method Expiring', 'wordfence');
[129] Fix | Delete
}
[130] Fix | Delete
else if (wfConfig::get('premiumPaymentExpired')) {
[131] Fix | Delete
$title = __('Payment Method Expired', 'wordfence');
[132] Fix | Delete
}
[133] Fix | Delete
else if (wfConfig::get('premiumPaymentMissing')) {
[134] Fix | Delete
$title = __('Payment Method Missing', 'wordfence');
[135] Fix | Delete
}
[136] Fix | Delete
else if (wfConfig::get('premiumPaymentHold')) {
[137] Fix | Delete
$title = __('Payment Method Invalid', 'wordfence');
[138] Fix | Delete
}
[139] Fix | Delete
[140] Fix | Delete
if (isset($title)) {
[141] Fix | Delete
$days = floor(((int) wfConfig::get('premiumNextRenew') - time()) / 86400);
[142] Fix | Delete
if ($days <= 0) {
[143] Fix | Delete
$subtitle = __('License renews today', 'wordfence');
[144] Fix | Delete
}
[145] Fix | Delete
else if ($days == 1) {
[146] Fix | Delete
$subtitle = __('License renews tomorrow', 'wordfence');
[147] Fix | Delete
}
[148] Fix | Delete
else {
[149] Fix | Delete
$subtitle = sprintf(
[150] Fix | Delete
/* translators: Number of days */
[151] Fix | Delete
__('License renews in %d days', 'wordfence'), $days);
[152] Fix | Delete
}
[153] Fix | Delete
[154] Fix | Delete
echo wfView::create('dashboard/status-payment-expiring', array(
[155] Fix | Delete
'id' => 'wf-premium-alert',
[156] Fix | Delete
'title' => $title,
[157] Fix | Delete
'subtitle' => $subtitle,
[158] Fix | Delete
'link' => 'https://www.wordfence.com/gnl1renewExpiring/manage-wordfence-api-keys/',
[159] Fix | Delete
'linkLabel' => __('Update Payment Method', 'wordfence'),
[160] Fix | Delete
'linkNewWindow' => true,
[161] Fix | Delete
))->render();
[162] Fix | Delete
}
[163] Fix | Delete
else {
[164] Fix | Delete
$days = floor(((int) wfConfig::get('premiumNextRenew') - time()) / 86400);
[165] Fix | Delete
if ($days == 0) {
[166] Fix | Delete
$subtitle = __('License renews today', 'wordfence');
[167] Fix | Delete
}
[168] Fix | Delete
else if ($days == 1) {
[169] Fix | Delete
$subtitle = __('License renews in 1 day', 'wordfence');
[170] Fix | Delete
}
[171] Fix | Delete
else {
[172] Fix | Delete
$subtitle = sprintf(__('License renews in %d days', 'wordfence'), $days);
[173] Fix | Delete
}
[174] Fix | Delete
[175] Fix | Delete
echo wfView::create('dashboard/status-renewing', array(
[176] Fix | Delete
'id' => 'wf-premium-alert',
[177] Fix | Delete
'title' => __('Premium License Expiring', 'wordfence'),
[178] Fix | Delete
'subtitle' => $subtitle,
[179] Fix | Delete
'link' => 'https://www.wordfence.com/gnl1reviewExpiring/manage-wordfence-api-keys/',
[180] Fix | Delete
'linkLabel' => __('Review Payment Method', 'wordfence'),
[181] Fix | Delete
'linkNewWindow' => true,
[182] Fix | Delete
))->render();
[183] Fix | Delete
}
[184] Fix | Delete
?>
[185] Fix | Delete
<?php elseif (wfLicense::current()->isPaidAndCurrent()): ?>
[186] Fix | Delete
<div class="wf-block-labeled-value wf-protection-status wf-protection-status-<?php echo esc_attr($firewall->ruleMode()); ?>">
[187] Fix | Delete
<div class="wf-block-labeled-value-value"><i class="wf-fa wf-fa-check" aria-hidden="true"></i></div>
[188] Fix | Delete
<div class="wf-block-labeled-value-label"><?php echo esc_html(sprintf(__('%s Enabled', 'wordfence'), wfLicense::current()->getTypeLabel(true))); ?></div>
[189] Fix | Delete
<?php if (wfLicense::current()->isBelowResponse()): ?>
[190] Fix | Delete
<p>
[191] Fix | Delete
<?php if (wfLicense::current()->isBelowCare()): ?>
[192] Fix | Delete
<a href="https://www.wordfence.com/gnl1dashboardLearnCareResponse/products/pricing/"><?php esc_html_e('Learn about Wordfence Care and Wordfence Response', 'wordfence') ?></a>
[193] Fix | Delete
<?php else: ?>
[194] Fix | Delete
<a href="https://www.wordfence.com/gnl1dashboardLearnResponse/products/wordfence-response/"><?php esc_html_e('Learn about Wordfence Response', 'wordfence') ?></a>
[195] Fix | Delete
<?php endif ?>
[196] Fix | Delete
</p>
[197] Fix | Delete
<?php endif ?>
[198] Fix | Delete
</div>
[199] Fix | Delete
<?php endif; ?>
[200] Fix | Delete
</li>
[201] Fix | Delete
</ul>
[202] Fix | Delete
</li>
[203] Fix | Delete
</ul>
[204] Fix | Delete
</div>
[205] Fix | Delete
</div>
[206] Fix | Delete
</div>
[207] Fix | Delete
</div>
[208] Fix | Delete
<!-- begin notifications -->
[209] Fix | Delete
<?php include(dirname(__FILE__) . '/dashboard/widget_notifications.php'); ?>
[210] Fix | Delete
<!-- end notifications -->
[211] Fix | Delete
<div class="wf-row">
[212] Fix | Delete
<div class="wf-col-xs-12">
[213] Fix | Delete
<div class="wf-block wf-active wf-add-bottom">
[214] Fix | Delete
<div class="wf-block-content">
[215] Fix | Delete
<ul class="wf-block-list">
[216] Fix | Delete
<li>
[217] Fix | Delete
<ul class="wf-block-list wf-block-list-horizontal wf-dashboard-navigation">
[218] Fix | Delete
<li>
[219] Fix | Delete
<?php
[220] Fix | Delete
echo wfView::create('common/block-navigation-option', array(
[221] Fix | Delete
'id' => 'wf-dashboard-option-tools',
[222] Fix | Delete
'img' => 'tools.svg',
[223] Fix | Delete
'title' => __('Tools', 'wordfence'),
[224] Fix | Delete
'subtitle' => __('Live Traffic, Whois Lookup, Import/Export, and Diagnostics', 'wordfence'),
[225] Fix | Delete
'link' => network_admin_url('admin.php?page=WordfenceTools'),
[226] Fix | Delete
))->render();
[227] Fix | Delete
?>
[228] Fix | Delete
</li>
[229] Fix | Delete
<li>
[230] Fix | Delete
<?php
[231] Fix | Delete
echo wfView::create('common/block-navigation-option', array(
[232] Fix | Delete
'id' => 'wf-dashboard-option-support',
[233] Fix | Delete
'img' => 'support.svg',
[234] Fix | Delete
'title' => __('Help', 'wordfence'),
[235] Fix | Delete
'subtitle' => __('Find the documentation and help you need', 'wordfence'),
[236] Fix | Delete
'link' => network_admin_url('admin.php?page=WordfenceSupport'),
[237] Fix | Delete
))->render();
[238] Fix | Delete
?>
[239] Fix | Delete
</li>
[240] Fix | Delete
<li>
[241] Fix | Delete
<?php
[242] Fix | Delete
echo wfView::create('common/block-navigation-option', array(
[243] Fix | Delete
'id' => 'wf-dashboard-option-options',
[244] Fix | Delete
'img' => 'options.svg',
[245] Fix | Delete
'title' => __('Global Options', 'wordfence'),
[246] Fix | Delete
'subtitle' => __('Manage global options for Wordfence such as alerts, premium status, and more', 'wordfence'),
[247] Fix | Delete
'link' => network_admin_url('admin.php?page=Wordfence&subpage=global_options'),
[248] Fix | Delete
))->render();
[249] Fix | Delete
?>
[250] Fix | Delete
</li>
[251] Fix | Delete
</ul>
[252] Fix | Delete
</li>
[253] Fix | Delete
</ul>
[254] Fix | Delete
</div>
[255] Fix | Delete
</div>
[256] Fix | Delete
</div>
[257] Fix | Delete
</div>
[258] Fix | Delete
<div class="wf-row">
[259] Fix | Delete
<div class="wf-col-xs-12 wf-col-lg-6 wf-col-lg-half-padding-right">
[260] Fix | Delete
<!-- begin firewall summary site -->
[261] Fix | Delete
<?php include(dirname(__FILE__) . '/dashboard/widget_localattacks.php'); ?>
[262] Fix | Delete
<!-- end firewall summary site -->
[263] Fix | Delete
</div> <!-- end content block -->
[264] Fix | Delete
<div class="wf-col-xs-12 wf-col-lg-6 wf-col-lg-half-padding-left">
[265] Fix | Delete
<!-- begin total attacks blocked network -->
[266] Fix | Delete
<?php include(dirname(__FILE__) . '/dashboard/widget_networkattacks.php'); ?>
[267] Fix | Delete
<!-- end total attacks blocked network -->
[268] Fix | Delete
</div> <!-- end content block -->
[269] Fix | Delete
</div> <!-- end row -->
[270] Fix | Delete
</div> <!-- end container -->
[271] Fix | Delete
</div>
[272] Fix | Delete
[273] Fix | Delete
<?php if (wfOnboardingController::willShowNewTour(wfOnboardingController::TOUR_DASHBOARD)): ?>
[274] Fix | Delete
<script type="application/javascript">
[275] Fix | Delete
(function($) {
[276] Fix | Delete
$(function() {
[277] Fix | Delete
WFAD.tour1 = function() {
[278] Fix | Delete
WFAD.tour('wfNewTour1', 'wfStatusTourMarker', 'top', 'left', null, WFAD.tour2);
[279] Fix | Delete
};
[280] Fix | Delete
WFAD.tour2 = function() {
[281] Fix | Delete
WFAD.tour('wfNewTour2', 'waf-coverage', 'top', 'left', WFAD.tour1, WFAD.tour3);
[282] Fix | Delete
};
[283] Fix | Delete
WFAD.tour3 = function() {
[284] Fix | Delete
WFAD.tour('wfNewTour3', 'wf-dashboard-option-options', 'right', 'right', WFAD.tour2, WFAD.tourComplete);
[285] Fix | Delete
};
[286] Fix | Delete
WFAD.tourComplete = function() { WFAD.tourFinish('<?php echo esc_attr(wfOnboardingController::TOUR_DASHBOARD); ?>'); };
[287] Fix | Delete
[288] Fix | Delete
<?php if (wfOnboardingController::shouldShowNewTour(wfOnboardingController::TOUR_DASHBOARD) && !isset($_GET['onboarding'])): ?>
[289] Fix | Delete
if (!WFAD.isSmallScreen) { WFAD.tour1(); }
[290] Fix | Delete
<?php endif; ?>
[291] Fix | Delete
});
[292] Fix | Delete
})(jQuery);
[293] Fix | Delete
</script>
[294] Fix | Delete
[295] Fix | Delete
<script type="text/x-jquery-template" id="wfNewTour1">
[296] Fix | Delete
<div>
[297] Fix | Delete
<h3><?php esc_html_e('This is your Dashboard', 'wordfence'); ?></h3>
[298] Fix | Delete
<p><?php esc_html_e('The Wordfence Dashboard provides valuable insights into the current state of your site\'s security. You\'ll find useful data summarized here as well as important status updates and notifications.', 'wordfence'); ?></p>
[299] Fix | Delete
<div class="wf-pointer-footer">
[300] Fix | Delete
<ul class="wf-tour-pagination">
[301] Fix | Delete
<li class="wf-active">&bullet;</li>
[302] Fix | Delete
<li>&bullet;</li>
[303] Fix | Delete
<li>&bullet;</li>
[304] Fix | Delete
</ul>
[305] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
[306] Fix | Delete
</div>
[307] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[308] Fix | Delete
</div>
[309] Fix | Delete
</script>
[310] Fix | Delete
<script type="text/x-jquery-template" id="wfNewTour2">
[311] Fix | Delete
<div>
[312] Fix | Delete
<h3><?php esc_html_e('Easily Monitor Your Wordfence Protection', 'wordfence'); ?></h3>
[313] Fix | Delete
<p><?php esc_html_e('Each feature contains a status that reminds you what\'s enabled, disabled or needs attention. The Notifications section will highlight actions you need to take.', 'wordfence'); ?></p>
[314] Fix | Delete
<div class="wf-pointer-footer">
[315] Fix | Delete
<ul class="wf-tour-pagination">
[316] Fix | Delete
<li>&bullet;</li>
[317] Fix | Delete
<li class="wf-active">&bullet;</li>
[318] Fix | Delete
<li>&bullet;</li>
[319] Fix | Delete
</ul>
[320] Fix | Delete
<div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
[321] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
[322] Fix | Delete
</div>
[323] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[324] Fix | Delete
</div>
[325] Fix | Delete
</script>
[326] Fix | Delete
<script type="text/x-jquery-template" id="wfNewTour3">
[327] Fix | Delete
<div>
[328] Fix | Delete
<h3><?php esc_html_e('Global Wordfence Options', 'wordfence'); ?></h3>
[329] Fix | Delete
<p class="wf-center"><svg viewBox="0 0 100.11 100.11" class="wf-icon"><path d="M99.59,41.42a2.06,2.06,0,0,0-1.37-.82L86.3,38.78a39.34,39.34,0,0,0-2.67-6.39q1.17-1.63,3.52-4.6t3.32-4.33A2.52,2.52,0,0,0,91,22a2.1,2.1,0,0,0-.46-1.43Q88.18,17.2,79.78,9.45a2.52,2.52,0,0,0-1.63-.65,2.12,2.12,0,0,0-1.57.59l-9.25,7a40.09,40.09,0,0,0-5.87-2.41L59.64,2a1.92,1.92,0,0,0-.75-1.4A2.46,2.46,0,0,0,57.29,0H42.82a2.19,2.19,0,0,0-2.34,1.82,106,106,0,0,0-1.89,12.12,37.62,37.62,0,0,0-5.93,2.48l-9-7A2.78,2.78,0,0,0,22,8.8q-1.44,0-6.16,4.66a64.88,64.88,0,0,0-6.42,7A2.75,2.75,0,0,0,8.8,22a2.44,2.44,0,0,0,.65,1.56q4.37,5.28,7,9a32.38,32.38,0,0,0-2.54,6L1.76,40.34a2,2,0,0,0-1.24.85A2.5,2.5,0,0,0,0,42.69V57.16a2.44,2.44,0,0,0,.52,1.53,2,2,0,0,0,1.37.82l11.93,1.76a31.91,31.91,0,0,0,2.67,6.45Q15.31,69.35,13,72.31T9.65,76.65a2.54,2.54,0,0,0-.07,3q2.54,3.52,10.75,11a2.25,2.25,0,0,0,1.63.71,2.35,2.35,0,0,0,1.63-.59l9.19-7a40.54,40.54,0,0,0,5.87,2.41l1.82,12a1.92,1.92,0,0,0,.75,1.4,2.45,2.45,0,0,0,1.6.55H57.29a2.2,2.2,0,0,0,2.35-1.82,107.41,107.41,0,0,0,1.89-12.12,37.19,37.19,0,0,0,5.93-2.48l9,7a3.18,3.18,0,0,0,1.69.59q1.43,0,6.13-4.62a65.86,65.86,0,0,0,6.45-7,2.16,2.16,0,0,0,.59-1.5,2.51,2.51,0,0,0-.65-1.63q-4.69-5.74-7-9a41.57,41.57,0,0,0,2.54-5.93l12.06-1.82a2,2,0,0,0,1.3-.85,2.52,2.52,0,0,0,.52-1.5V43a2.46,2.46,0,0,0-.52-1.53ZM61.85,61.86a16.08,16.08,0,0,1-11.8,4.89A16.69,16.69,0,0,1,33.37,50.06,16.69,16.69,0,0,1,50.06,33.37,16.69,16.69,0,0,1,66.74,50.06a16.08,16.08,0,0,1-4.89,11.8Zm0,0"></path></svg></p>
[330] Fix | Delete
<p><?php echo wp_kses(__('You\'ll find this icon throughout the plugin. Clicking it will show you the options and features for each section of Wordfence. From the dashboard, you can find the <strong>Global Options</strong> for Wordfence such as alerts, automatic updates, and managing your site\'s Premium License.', 'wordfence'), array('strong'=>array())); ?></p>
[331] Fix | Delete
<div class="wf-pointer-footer">
[332] Fix | Delete
<ul class="wf-tour-pagination">
[333] Fix | Delete
<li>&bullet;</li>
[334] Fix | Delete
<li>&bullet;</li>
[335] Fix | Delete
<li class="wf-active">&bullet;</li>
[336] Fix | Delete
</ul>
[337] Fix | Delete
<div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
[338] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Got it', 'wordfence'); ?></a></div>
[339] Fix | Delete
</div>
[340] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[341] Fix | Delete
</div>
[342] Fix | Delete
</script>
[343] Fix | Delete
<?php endif; ?>
[344] Fix | Delete
[345] Fix | Delete
<?php if (wfOnboardingController::willShowUpgradeTour(wfOnboardingController::TOUR_DASHBOARD)): ?>
[346] Fix | Delete
<script type="application/javascript">
[347] Fix | Delete
(function($) {
[348] Fix | Delete
$(function() {
[349] Fix | Delete
WFAD.tour1 = function() {
[350] Fix | Delete
WFAD.tour('wfUpgradeTour1', 'wfStatusTourMarker', 'top', 'left', null, WFAD.tour2);
[351] Fix | Delete
};
[352] Fix | Delete
WFAD.tour2 = function() {
[353] Fix | Delete
WFAD.tour('wfUpgradeTour2', 'waf-coverage', 'top', 'left', WFAD.tour1, WFAD.tour3);
[354] Fix | Delete
};
[355] Fix | Delete
WFAD.tour3 = function() {
[356] Fix | Delete
WFAD.tour('wfUpgradeTour3', 'wf-dashboard-option-options', 'right', 'right', WFAD.tour2, WFAD.tour4);
[357] Fix | Delete
};
[358] Fix | Delete
WFAD.tour4 = function() {
[359] Fix | Delete
WFAD.tour('wfUpgradeTour4', 'toplevel_page_Wordfence', 'left', 'left', WFAD.tour3, WFAD.tourComplete);
[360] Fix | Delete
};
[361] Fix | Delete
WFAD.tourComplete = function() { WFAD.tourFinish('<?php echo esc_attr(wfOnboardingController::TOUR_DASHBOARD); ?>'); };
[362] Fix | Delete
[363] Fix | Delete
<?php if (wfOnboardingController::shouldShowUpgradeTour(wfOnboardingController::TOUR_DASHBOARD) && !isset($_GET['onboarding'])): ?>
[364] Fix | Delete
if (!WFAD.isSmallScreen) { WFAD.tour1(); }
[365] Fix | Delete
<?php endif; ?>
[366] Fix | Delete
});
[367] Fix | Delete
})(jQuery);
[368] Fix | Delete
</script>
[369] Fix | Delete
[370] Fix | Delete
<script type="text/x-jquery-template" id="wfUpgradeTour1">
[371] Fix | Delete
<div>
[372] Fix | Delete
<h3><?php printf(
[373] Fix | Delete
/* translators: Wordfence version. */
[374] Fix | Delete
esc_html__('You have successfully updated to Wordfence %s', 'wordfence'), WORDFENCE_VERSION); ?></h3>
[375] Fix | Delete
<p><?php esc_html_e('This update includes a number of significant interface changes. We\'d like to walk you through some of them, but you can bypass the tour for a section at any time by closing the dialogs.', 'wordfence'); ?></p>
[376] Fix | Delete
<p><?php echo wp_kses(__('We welcome your feedback and comments at <a href="mailto:feedback@wordfence.com">feedback@wordfence.com</a>. For a deeper dive on all of the changes, <a href="https://www.wordfence.com/blog/2018/01/introducing-wordfence-7/" target="_blank" rel="noopener noreferrer">click here<span class="screen-reader-text"> (opens in new tab)</span></a>.', 'wordfence'), array('a'=>array('href'=>array(), 'target'=>array()), 'span'=>array('class'=>array()))); ?></p>
[377] Fix | Delete
<div class="wf-pointer-footer">
[378] Fix | Delete
<ul class="wf-tour-pagination">
[379] Fix | Delete
<li class="wf-active">&bullet;</li>
[380] Fix | Delete
<li>&bullet;</li>
[381] Fix | Delete
<li>&bullet;</li>
[382] Fix | Delete
<li>&bullet;</li>
[383] Fix | Delete
</ul>
[384] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
[385] Fix | Delete
</div>
[386] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[387] Fix | Delete
</div>
[388] Fix | Delete
</script>
[389] Fix | Delete
<script type="text/x-jquery-template" id="wfUpgradeTour2">
[390] Fix | Delete
<div>
[391] Fix | Delete
<h3><?php esc_html_e('Monitor Your Wordfence Protection', 'wordfence'); ?></h3>
[392] Fix | Delete
<p><?php esc_html_e('Each feature contains a status percentage reminding you at a high level of what\'s enabled, disabled, or needing your attention. The Notifications section highlights actions you need to take.', 'wordfence'); ?></p>
[393] Fix | Delete
<div class="wf-pointer-footer">
[394] Fix | Delete
<ul class="wf-tour-pagination">
[395] Fix | Delete
<li>&bullet;</li>
[396] Fix | Delete
<li class="wf-active">&bullet;</li>
[397] Fix | Delete
<li>&bullet;</li>
[398] Fix | Delete
<li>&bullet;</li>
[399] Fix | Delete
</ul>
[400] Fix | Delete
<div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
[401] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
[402] Fix | Delete
</div>
[403] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[404] Fix | Delete
</div>
[405] Fix | Delete
</script>
[406] Fix | Delete
<script type="text/x-jquery-template" id="wfUpgradeTour3">
[407] Fix | Delete
<div>
[408] Fix | Delete
<h3><?php esc_html_e('Global Wordfence Options', 'wordfence'); ?></h3>
[409] Fix | Delete
<p class="wf-center"><svg viewBox="0 0 100.11 100.11" class="wf-icon"><path d="M99.59,41.42a2.06,2.06,0,0,0-1.37-.82L86.3,38.78a39.34,39.34,0,0,0-2.67-6.39q1.17-1.63,3.52-4.6t3.32-4.33A2.52,2.52,0,0,0,91,22a2.1,2.1,0,0,0-.46-1.43Q88.18,17.2,79.78,9.45a2.52,2.52,0,0,0-1.63-.65,2.12,2.12,0,0,0-1.57.59l-9.25,7a40.09,40.09,0,0,0-5.87-2.41L59.64,2a1.92,1.92,0,0,0-.75-1.4A2.46,2.46,0,0,0,57.29,0H42.82a2.19,2.19,0,0,0-2.34,1.82,106,106,0,0,0-1.89,12.12,37.62,37.62,0,0,0-5.93,2.48l-9-7A2.78,2.78,0,0,0,22,8.8q-1.44,0-6.16,4.66a64.88,64.88,0,0,0-6.42,7A2.75,2.75,0,0,0,8.8,22a2.44,2.44,0,0,0,.65,1.56q4.37,5.28,7,9a32.38,32.38,0,0,0-2.54,6L1.76,40.34a2,2,0,0,0-1.24.85A2.5,2.5,0,0,0,0,42.69V57.16a2.44,2.44,0,0,0,.52,1.53,2,2,0,0,0,1.37.82l11.93,1.76a31.91,31.91,0,0,0,2.67,6.45Q15.31,69.35,13,72.31T9.65,76.65a2.54,2.54,0,0,0-.07,3q2.54,3.52,10.75,11a2.25,2.25,0,0,0,1.63.71,2.35,2.35,0,0,0,1.63-.59l9.19-7a40.54,40.54,0,0,0,5.87,2.41l1.82,12a1.92,1.92,0,0,0,.75,1.4,2.45,2.45,0,0,0,1.6.55H57.29a2.2,2.2,0,0,0,2.35-1.82,107.41,107.41,0,0,0,1.89-12.12,37.19,37.19,0,0,0,5.93-2.48l9,7a3.18,3.18,0,0,0,1.69.59q1.43,0,6.13-4.62a65.86,65.86,0,0,0,6.45-7,2.16,2.16,0,0,0,.59-1.5,2.51,2.51,0,0,0-.65-1.63q-4.69-5.74-7-9a41.57,41.57,0,0,0,2.54-5.93l12.06-1.82a2,2,0,0,0,1.3-.85,2.52,2.52,0,0,0,.52-1.5V43a2.46,2.46,0,0,0-.52-1.53ZM61.85,61.86a16.08,16.08,0,0,1-11.8,4.89A16.69,16.69,0,0,1,33.37,50.06,16.69,16.69,0,0,1,50.06,33.37,16.69,16.69,0,0,1,66.74,50.06a16.08,16.08,0,0,1-4.89,11.8Zm0,0"></path></svg></p>
[410] Fix | Delete
<p><?php esc_html_e('Manage your Wordfence license, see alerts and automatic plugin updates, and import/export your settings.', 'wordfence'); ?></p>
[411] Fix | Delete
<div class="wf-pointer-footer">
[412] Fix | Delete
<ul class="wf-tour-pagination">
[413] Fix | Delete
<li>&bullet;</li>
[414] Fix | Delete
<li>&bullet;</li>
[415] Fix | Delete
<li class="wf-active">&bullet;</li>
[416] Fix | Delete
<li>&bullet;</li>
[417] Fix | Delete
</ul>
[418] Fix | Delete
<div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
[419] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
[420] Fix | Delete
</div>
[421] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[422] Fix | Delete
</div>
[423] Fix | Delete
</script>
[424] Fix | Delete
<script type="text/x-jquery-template" id="wfUpgradeTour4">
[425] Fix | Delete
<div>
[426] Fix | Delete
<h3><?php esc_html_e('Updated Navigation', 'wordfence'); ?></h3>
[427] Fix | Delete
<p><?php echo wp_kses(__('The main navigation no longer includes an <strong>Options</strong> link. Options are now accessed via the <strong>Options</strong> link on each feature\'s main page. Live Traffic is now located in the Tools section, and blocking is found under the Firewall. Shortcuts to add a <strong>Blocking</strong> link back to the main navigation are available under Blocking options.', 'wordfence'), array('strong'=>array())); ?></p>
[428] Fix | Delete
<div class="wf-pointer-footer">
[429] Fix | Delete
<ul class="wf-tour-pagination">
[430] Fix | Delete
<li>&bullet;</li>
[431] Fix | Delete
<li>&bullet;</li>
[432] Fix | Delete
<li>&bullet;</li>
[433] Fix | Delete
<li class="wf-active">&bullet;</li>
[434] Fix | Delete
</ul>
[435] Fix | Delete
<div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
[436] Fix | Delete
<div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Got it', 'wordfence'); ?></a></div>
[437] Fix | Delete
</div>
[438] Fix | Delete
<div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[439] Fix | Delete
</div>
[440] Fix | Delete
</script>
[441] Fix | Delete
<?php endif; ?>
[442] Fix | Delete
<?php
[443] Fix | Delete
$hostSetting = false;
[444] Fix | Delete
$recordAll = wfConfig::liveTrafficEnabled($hostSetting);
[445] Fix | Delete
[446] Fix | Delete
if ($recordAll && !$hostSetting && !wfUtils::truthyToBoolean(wfConfig::get('switchLiveTrafficSecurityOnlyChoice'))):
[447] Fix | Delete
?>
[448] Fix | Delete
<script type="application/javascript">
[449] Fix | Delete
(function($) {
[450] Fix | Delete
$(function() {
[451] Fix | Delete
var prompt = $('#wfLiveTrafficMigration').tmpl();
[452] Fix | Delete
var promptHTML = $("<div />").append(prompt).html();
[453] Fix | Delete
WFAD.colorboxHTML((WFAD.isSmallScreen ? '300px' : '700px'), promptHTML, {overlayClose: false, closeButton: false, className: 'wf-modal', onComplete: function() {
[454] Fix | Delete
$('#wf-livetrafficmigrate-no').on('click', function(e) {
[455] Fix | Delete
e.preventDefault();
[456] Fix | Delete
e.stopPropagation();
[457] Fix | Delete
[458] Fix | Delete
wordfenceExt.switchLiveTrafficSecurityOnlyChoice('no');
[459] Fix | Delete
WFAD.colorboxClose();
[460] Fix | Delete
});
[461] Fix | Delete
[462] Fix | Delete
$('#wf-livetrafficmigrate-yes').on('click', function(e) {
[463] Fix | Delete
e.preventDefault();
[464] Fix | Delete
e.stopPropagation();
[465] Fix | Delete
[466] Fix | Delete
wordfenceExt.switchLiveTrafficSecurityOnlyChoice('yes');
[467] Fix | Delete
WFAD.colorboxClose();
[468] Fix | Delete
});
[469] Fix | Delete
}});
[470] Fix | Delete
});
[471] Fix | Delete
})(jQuery);
[472] Fix | Delete
</script>
[473] Fix | Delete
<script type="text/x-jquery-template" id="wfLiveTrafficMigration">
[474] Fix | Delete
<?php
[475] Fix | Delete
echo wfView::create('common/modal-prompt', array(
[476] Fix | Delete
'title' => __('Recommended Settings Change', 'wordfence'),
[477] Fix | Delete
'messageHTML' => '<p>' . esc_html__('Greetings! The default configuration for Wordfence Live Traffic has changed. The new default saves only logins and blocked requests, while this site is currently recording all traffic. Would you like to change to the new default?', 'wordfence') . '</p>' . (!wfRateLimit::identicalHumanBotRateLimits() ? '<p>' . __('Rate limiting based on type of request (human vs crawler) may be less accurate because this prevents loading the extra JavaScript used for that identification.', 'wordfence') . '</p>' : ''),
[478] Fix | Delete
'primaryButton' => array('id' => 'wf-livetrafficmigrate-yes', 'label' => __('Yes Please', 'wordfence'), 'link' => '#', 'type' => 'wf-btn-primary'),
[479] Fix | Delete
'secondaryButtons' => array(
[480] Fix | Delete
array('id' => 'wf-livetrafficmigrate-no', 'label' => __('No Thanks', 'wordfence'), 'link' => '#', 'type' => 'wf-btn-default'),
[481] Fix | Delete
array('id' => 'wf-livetrafficmigrate-learn', 'label' => __('Learn More', 'wordfence'), 'link' => wfSupportController::supportURL(wfSupportController::ITEM_NOTICE_SWITCH_LIVE_TRAFFIC), 'type' => 'wf-btn-default', 'target' => '_blank', 'rel' => 'noopener noreferrer'),
[482] Fix | Delete
),
[483] Fix | Delete
))->render();
[484] Fix | Delete
?>
[485] Fix | Delete
</script>
[486] Fix | Delete
<?php endif; ?>
[487] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function