Diff
6 years ago
dashboard
7 years ago
rest-api
6 years ago
.htaccess
7 years ago
Diff.php
6 years ago
GeoLite2-Country.mmdb
6 years ago
IPTraf.php
6 years ago
IPTrafList.php
7 years ago
WFLSPHP52Compatability.php
6 years ago
compat.php
8 years ago
conntest.php
7 years ago
cronview.php
8 years ago
dbview.php
8 years ago
diffResult.php
8 years ago
email_genericAlert.php
7 years ago
email_newIssues.php
6 years ago
email_unlockRequest.php
8 years ago
email_unsubscribeRequest.php
7 years ago
flags.php
7 years ago
live_activity.php
8 years ago
menu_dashboard.php
7 years ago
menu_dashboard_options.php
7 years ago
menu_firewall.php
6 years ago
menu_firewall_blocking.php
7 years ago
menu_firewall_blocking_options.php
8 years ago
menu_firewall_waf.php
7 years ago
menu_firewall_waf_options.php
7 years ago
menu_options.php
6 years ago
menu_scanner.php
6 years ago
menu_scanner_credentials.php
8 years ago
menu_scanner_options.php
6 years ago
menu_support.php
7 years ago
menu_tools.php
7 years ago
menu_tools_diagnostic.php
6 years ago
menu_tools_importExport.php
7 years ago
menu_tools_livetraffic.php
6 years ago
menu_tools_twoFactor.php
7 years ago
menu_tools_whois.php
8 years ago
menu_wordfence_central.php
7 years ago
noc1.key
7 years ago
sysinfo.php
8 years ago
unknownFiles.php
8 years ago
viewFullActivityLog.php
8 years ago
wf503.php
7 years ago
wfAPI.php
6 years ago
wfActivityReport.php
6 years ago
wfAdminNoticeQueue.php
8 years ago
wfAlerts.php
6 years ago
wfArray.php
7 years ago
wfBrowscap.php
6 years ago
wfBrowscapCache.php
7 years ago
wfBulkCountries.php
7 years ago
wfCache.php
6 years ago
wfCentralAPI.php
6 years ago
wfConfig.php
6 years ago
wfCrawl.php
6 years ago
wfCredentialsController.php
7 years ago
wfCrypt.php
6 years ago
wfDB.php
7 years ago
wfDashboard.php
7 years ago
wfDateLocalization.php
8 years ago
wfDiagnostic.php
6 years ago
wfDict.php
8 years ago
wfDirectoryIterator.php
7 years ago
wfHelperBin.php
11 years ago
wfHelperString.php
11 years ago
wfIPWhitelist.php
7 years ago
wfImportExportController.php
7 years ago
wfIssues.php
6 years ago
wfJWT.php
7 years ago
wfLockedOut.php
7 years ago
wfLog.php
6 years ago
wfMD5BloomFilter.php
8 years ago
wfModuleController.php
7 years ago
wfNotification.php
8 years ago
wfOnboardingController.php
7 years ago
wfPersistenceController.php
8 years ago
wfRESTAPI.php
7 years ago
wfScan.php
6 years ago
wfScanEngine.php
6 years ago
wfSchema.php
6 years ago
wfStyle.php
7 years ago
wfSupportController.php
6 years ago
wfUnlockMsg.php
6 years ago
wfUpdateCheck.php
6 years ago
wfUtils.php
6 years ago
wfVersionCheckController.php
8 years ago
wfView.php
10 years ago
wfViewResult.php
8 years ago
wordfenceClass.php
6 years ago
wordfenceConstants.php
6 years ago
wordfenceHash.php
6 years ago
wordfenceScanner.php
6 years ago
wordfenceURLHoover.php
6 years ago
menu_dashboard.php
470 lines
| 1 | <?php |
| 2 | if (!defined('WORDFENCE_VERSION')) { exit; } |
| 3 | $firewall = new wfFirewall(); |
| 4 | $scanner = wfScanner::shared(); |
| 5 | $d = new wfDashboard(); |
| 6 | ?> |
| 7 | <?php |
| 8 | if (wfOnboardingController::shouldShowAttempt3()) { |
| 9 | echo wfView::create('onboarding/disabled-overlay')->render(); |
| 10 | echo wfView::create('onboarding/banner')->render(); |
| 11 | } |
| 12 | else if (wfConfig::get('touppPromptNeeded')) { |
| 13 | echo wfView::create('gdpr/disabled-overlay')->render(); |
| 14 | echo wfView::create('gdpr/banner')->render(); |
| 15 | } |
| 16 | ?> |
| 17 | <div class="wrap wordfence" id="wf-dashboard"> |
| 18 | <div class="wf-container-fluid"> |
| 19 | <div class="wf-row"> |
| 20 | <div class="wf-col-xs-12"> |
| 21 | <div class="wp-header-end"></div> |
| 22 | <?php |
| 23 | echo wfView::create('common/section-title', array( |
| 24 | 'title' => __('Wordfence Dashboard', 'wordfence'), |
| 25 | 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_DASHBOARD), |
| 26 | 'helpLabelHTML' => __('Learn more<span class="wf-hidden-xs"> about the Dashboard</span>', 'wordfence'), |
| 27 | 'showIcon' => true, |
| 28 | ))->render(); |
| 29 | ?> |
| 30 | </div> |
| 31 | </div> |
| 32 | <div class="wf-row"> |
| 33 | <div class="wf-col-xs-12"> |
| 34 | <div class="wf-block wf-active wf-add-bottom"> |
| 35 | <div class="wf-block-content"> |
| 36 | <ul class="wf-block-list"> |
| 37 | <li> |
| 38 | <?php |
| 39 | echo wfView::create('dashboard/global-status', array( |
| 40 | 'firewall' => $firewall, |
| 41 | 'scanner' => $scanner, |
| 42 | 'dashboard' => $d, |
| 43 | ))->render(); |
| 44 | ?> |
| 45 | </li> |
| 46 | <li> |
| 47 | <ul class="wf-block-list wf-block-list-horizontal wf-block-list-nowrap wf-waf-coverage"> |
| 48 | <li> |
| 49 | <?php |
| 50 | echo wfView::create('common/status-detail', array( |
| 51 | 'id' => 'waf-coverage', |
| 52 | 'percentage' => $firewall->overallStatus(), |
| 53 | 'activeColor' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? '#ececec' : null /* automatic */), |
| 54 | 'title' => __('Firewall', 'wordfence'), |
| 55 | 'subtitle' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? __('WAF Currently in Learning Mode', 'wordfence') : __('Protection from known and emerging threats', 'wordfence')), |
| 56 | 'link' => wfPage::pageURL(wfPage::PAGE_FIREWALL_OPTIONS, wfPage::PAGE_DASHBOARD), |
| 57 | 'linkLabel' => __('Manage Firewall', 'wordfence'), |
| 58 | 'statusTitle' => __('Firewall Status', 'wordfence'), |
| 59 | 'statusList' => $firewall->statusList(), |
| 60 | 'statusExtra' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? wfView::create('waf/status-tooltip-learning-mode')->render() : ''), |
| 61 | 'helpLink' => __('https://www.wordfence.com/help/dashboard/#dashboard-status', 'wordfence'), |
| 62 | ))->render(); |
| 63 | ?> |
| 64 | </li> |
| 65 | <li> |
| 66 | <?php |
| 67 | echo wfView::create('common/status-detail', array( |
| 68 | 'id' => 'wf-scanner-type', |
| 69 | 'percentage' => $scanner->scanTypeStatus(), |
| 70 | 'activeColor' => (!$scanner->isEnabled() ? '#ececec' : null /* automatic */), |
| 71 | 'title' => __('Scan', 'wordfence'), |
| 72 | 'subtitle' => __('Detection of security issues', 'wordfence'), |
| 73 | 'link' => wfPage::pageURL(wfPage::PAGE_SCAN_OPTIONS, wfPage::PAGE_DASHBOARD), |
| 74 | 'linkLabel' => __('Manage Scan', 'wordfence'), |
| 75 | 'statusTitle' => __('Scan Status', 'wordfence'), |
| 76 | 'statusList' => $scanner->scanTypeStatusList(), |
| 77 | 'helpLink' => __('https://www.wordfence.com/help/dashboard/#dashboard-status', 'wordfence'), |
| 78 | ))->render(); |
| 79 | ?> |
| 80 | </li> |
| 81 | <li> |
| 82 | <?php if (wfConfig::get('hasKeyConflict')): ?> |
| 83 | <?php |
| 84 | echo wfView::create('common/status-critical', array( |
| 85 | 'id' => 'wf-premium-alert', |
| 86 | 'title' => __('Premium License Conflict', 'wordfence'), |
| 87 | 'subtitle' => __('License already in use', 'wordfence'), |
| 88 | 'link' => 'https://www.wordfence.com/gnl1manageConflict/manage-wordfence-api-keys/', |
| 89 | 'linkLabel' => __('Reset License', 'wordfence'), |
| 90 | 'linkNewWindow' => true, |
| 91 | ))->render(); |
| 92 | ?> |
| 93 | <?php elseif (wfConfig::get('keyType') == wfAPI::KEY_TYPE_PAID_EXPIRED): ?> |
| 94 | <?php |
| 95 | echo wfView::create('common/status-critical', array( |
| 96 | 'id' => 'wf-premium-alert', |
| 97 | 'title' => __('Premium Protection Disabled', 'wordfence'), |
| 98 | 'subtitle' => __('License is expired', 'wordfence'), |
| 99 | 'link' => 'https://www.wordfence.com/gnl1renewExpired/manage-wordfence-api-keys/', |
| 100 | 'linkLabel' => __('Renew License', 'wordfence'), |
| 101 | 'linkNewWindow' => true, |
| 102 | ))->render(); |
| 103 | ?> |
| 104 | <?php elseif (wfConfig::get('keyType') == wfAPI::KEY_TYPE_FREE || wfConfig::get('keyType') === false): ?> |
| 105 | <div> |
| 106 | <p><h3><?php _e('Premium Protection Disabled', 'wordfence'); ?></h3></p> |
| 107 | <p><?php printf(__('As a free Wordfence user, you are currently using the Community version of the Threat Defense Feed. Premium users are protected by an additional %d firewall rules and malware signatures. Upgrade to Premium today to improve your protection.', 'wordfence'), ($d->tdfPremium - $d->tdfCommunity)); ?></p> |
| 108 | <p><a class="wf-btn wf-btn-primary wf-btn-callout-subtle" href="https://www.wordfence.com/gnl1dashboardUpgrade/wordfence-signup/#premium-order-form" target="_blank" rel="noopener noreferrer"><?php _e('Upgrade to Premium', 'wordfence'); ?></a> <a class="wf-btn wf-btn-callout-subtle wf-btn-default" href="https://www.wordfence.com/gnl1dashboardLearn/wordfence-signup/" target="_blank" rel="noopener noreferrer"><?php _e('Learn More', 'wordfence'); ?></a></p> |
| 109 | </div> |
| 110 | <?php elseif (wfConfig::get('keyExpDays') < 30 && (wfConfig::get('premiumAutoRenew', null) === '0' || wfConfig::get('premiumAutoRenew', null) === 0)): ?> |
| 111 | <?php |
| 112 | echo wfView::create('common/status-critical', array( |
| 113 | 'id' => 'wf-premium-alert', |
| 114 | 'title' => __('Premium License Expiring', 'wordfence'), |
| 115 | 'subtitle' => __('Auto-renew is disabled', 'wordfence'), |
| 116 | 'link' => 'https://www.wordfence.com/gnl1renewExpiring/manage-wordfence-api-keys/', |
| 117 | 'linkLabel' => __('Renew License', 'wordfence'), |
| 118 | 'linkNewWindow' => true, |
| 119 | ))->render(); |
| 120 | ?> |
| 121 | <?php elseif (wfConfig::get('keyExpDays') < 30): ?> |
| 122 | <?php |
| 123 | if (wfConfig::get('premiumPaymentExpiring')) { |
| 124 | $title = __('Payment Method Expiring', 'wordfence'); |
| 125 | } |
| 126 | else if (wfConfig::get('premiumPaymentExpired')) { |
| 127 | $title = __('Payment Method Expired', 'wordfence'); |
| 128 | } |
| 129 | else if (wfConfig::get('premiumPaymentMissing')) { |
| 130 | $title = __('Payment Method Missing', 'wordfence'); |
| 131 | } |
| 132 | else if (wfConfig::get('premiumPaymentHold')) { |
| 133 | $title = __('Payment Method Invalid', 'wordfence'); |
| 134 | } |
| 135 | |
| 136 | if (isset($title)) { |
| 137 | $days = floor(((int) wfConfig::get('premiumNextRenew') - time()) / 86400); |
| 138 | if ($days <= 0) { |
| 139 | $days = __('today', 'wordfence'); |
| 140 | } |
| 141 | else if ($days == 1) { |
| 142 | $days = __('tomorrow', 'wordfence'); |
| 143 | } |
| 144 | else { |
| 145 | $days = sprintf(__('in %d days', 'wordfence'), $days); |
| 146 | } |
| 147 | |
| 148 | echo wfView::create('dashboard/status-payment-expiring', array( |
| 149 | 'id' => 'wf-premium-alert', |
| 150 | 'title' => $title, |
| 151 | 'subtitle' => sprintf(__('License renews %s', 'wordfence'), $days), |
| 152 | 'link' => 'https://www.wordfence.com/gnl1renewExpiring/manage-wordfence-api-keys/', |
| 153 | 'linkLabel' => __('Update Payment Method', 'wordfence'), |
| 154 | 'linkNewWindow' => true, |
| 155 | ))->render(); |
| 156 | } |
| 157 | else { |
| 158 | $days = floor(((int) wfConfig::get('premiumNextRenew') - time()) / 86400); |
| 159 | if ($days == 0) { |
| 160 | $days = __('today', 'wordfence'); |
| 161 | } |
| 162 | else if ($days == 1) { |
| 163 | $days = __('in 1 day', 'wordfence'); |
| 164 | } |
| 165 | else { |
| 166 | $days = sprintf(__('in %d days', 'wordfence'), $days); |
| 167 | } |
| 168 | |
| 169 | echo wfView::create('dashboard/status-renewing', array( |
| 170 | 'id' => 'wf-premium-alert', |
| 171 | 'title' => __('Premium License Expiring', 'wordfence'), |
| 172 | 'subtitle' => sprintf(__('License renews %s', 'wordfence'), $days), |
| 173 | 'link' => 'https://www.wordfence.com/gnl1reviewExpiring/manage-wordfence-api-keys/', |
| 174 | 'linkLabel' => __('Review Payment Method', 'wordfence'), |
| 175 | 'linkNewWindow' => true, |
| 176 | ))->render(); |
| 177 | } |
| 178 | ?> |
| 179 | <?php elseif (wfConfig::get('keyType') == wfAPI::KEY_TYPE_PAID_CURRENT): ?> |
| 180 | <div class="wf-block-labeled-value wf-protection-status wf-protection-status-<?php echo esc_attr($firewall->ruleMode()); ?>"> |
| 181 | <div class="wf-block-labeled-value-value"><i class="wf-fa wf-fa-check" aria-hidden="true"></i></div> |
| 182 | <div class="wf-block-labeled-value-label"><?php _e('Wordfence Premium Enabled', 'wordfence'); ?></div> |
| 183 | </div> |
| 184 | <?php endif; ?> |
| 185 | </li> |
| 186 | </ul> |
| 187 | </li> |
| 188 | </ul> |
| 189 | </div> |
| 190 | </div> |
| 191 | </div> |
| 192 | </div> |
| 193 | <!-- begin notifications --> |
| 194 | <?php include(dirname(__FILE__) . '/dashboard/widget_notifications.php'); ?> |
| 195 | <!-- end notifications --> |
| 196 | <div class="wf-row"> |
| 197 | <div class="wf-col-xs-12"> |
| 198 | <div class="wf-block wf-active wf-add-bottom"> |
| 199 | <div class="wf-block-content"> |
| 200 | <ul class="wf-block-list"> |
| 201 | <li> |
| 202 | <ul class="wf-block-list wf-block-list-horizontal wf-dashboard-navigation"> |
| 203 | <li> |
| 204 | <?php |
| 205 | echo wfView::create('common/block-navigation-option', array( |
| 206 | 'id' => 'wf-dashboard-option-tools', |
| 207 | 'img' => 'tools.svg', |
| 208 | 'title' => __('Tools', 'wordfence'), |
| 209 | 'subtitle' => __('Live Traffic, Whois Lookup, Import/Export, and Diagnostics', 'wordfence'), |
| 210 | 'link' => network_admin_url('admin.php?page=WordfenceTools'), |
| 211 | ))->render(); |
| 212 | ?> |
| 213 | </li> |
| 214 | <li> |
| 215 | <?php |
| 216 | echo wfView::create('common/block-navigation-option', array( |
| 217 | 'id' => 'wf-dashboard-option-support', |
| 218 | 'img' => 'support.svg', |
| 219 | 'title' => __('Help', 'wordfence'), |
| 220 | 'subtitle' => __('Find the documentation and help you need', 'wordfence'), |
| 221 | 'link' => network_admin_url('admin.php?page=WordfenceSupport'), |
| 222 | ))->render(); |
| 223 | ?> |
| 224 | </li> |
| 225 | <li> |
| 226 | <?php |
| 227 | echo wfView::create('common/block-navigation-option', array( |
| 228 | 'id' => 'wf-dashboard-option-options', |
| 229 | 'img' => 'options.svg', |
| 230 | 'title' => __('Global Options', 'wordfence'), |
| 231 | 'subtitle' => __('Manage global options for Wordfence such as alerts, premium status, and more', 'wordfence'), |
| 232 | 'link' => network_admin_url('admin.php?page=Wordfence&subpage=global_options'), |
| 233 | ))->render(); |
| 234 | ?> |
| 235 | </li> |
| 236 | </ul> |
| 237 | </li> |
| 238 | </ul> |
| 239 | </div> |
| 240 | </div> |
| 241 | </div> |
| 242 | </div> |
| 243 | <div class="wf-row"> |
| 244 | <div class="wf-col-xs-12 wf-col-lg-6 wf-col-lg-half-padding-right"> |
| 245 | <!-- begin firewall summary site --> |
| 246 | <?php include(dirname(__FILE__) . '/dashboard/widget_localattacks.php'); ?> |
| 247 | <!-- end firewall summary site --> |
| 248 | </div> <!-- end content block --> |
| 249 | <div class="wf-col-xs-12 wf-col-lg-6 wf-col-lg-half-padding-left"> |
| 250 | <!-- begin total attacks blocked network --> |
| 251 | <?php include(dirname(__FILE__) . '/dashboard/widget_networkattacks.php'); ?> |
| 252 | <!-- end total attacks blocked network --> |
| 253 | </div> <!-- end content block --> |
| 254 | </div> <!-- end row --> |
| 255 | </div> <!-- end container --> |
| 256 | </div> |
| 257 | |
| 258 | <?php if (wfOnboardingController::willShowNewTour(wfOnboardingController::TOUR_DASHBOARD)): ?> |
| 259 | <script type="application/javascript"> |
| 260 | (function($) { |
| 261 | $(function() { |
| 262 | WFAD.tour1 = function() { |
| 263 | WFAD.tour('wfNewTour1', 'wfStatusTourMarker', 'top', 'left', null, WFAD.tour2); |
| 264 | }; |
| 265 | WFAD.tour2 = function() { |
| 266 | WFAD.tour('wfNewTour2', 'waf-coverage', 'top', 'left', WFAD.tour1, WFAD.tour3); |
| 267 | }; |
| 268 | WFAD.tour3 = function() { |
| 269 | WFAD.tour('wfNewTour3', 'wf-dashboard-option-options', 'right', 'right', WFAD.tour2, WFAD.tourComplete); |
| 270 | }; |
| 271 | WFAD.tourComplete = function() { WFAD.tourFinish('<?php echo esc_attr(wfOnboardingController::TOUR_DASHBOARD); ?>'); }; |
| 272 | |
| 273 | <?php if (wfOnboardingController::shouldShowNewTour(wfOnboardingController::TOUR_DASHBOARD) && !isset($_GET['onboarding'])): ?> |
| 274 | if (!WFAD.isSmallScreen) { WFAD.tour1(); } |
| 275 | <?php endif; ?> |
| 276 | }); |
| 277 | })(jQuery); |
| 278 | </script> |
| 279 | |
| 280 | <script type="text/x-jquery-template" id="wfNewTour1"> |
| 281 | <div> |
| 282 | <h3><?php _e('This is your Dashboard', 'wordfence'); ?></h3> |
| 283 | <p><?php _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> |
| 284 | <div class="wf-pointer-footer"> |
| 285 | <ul class="wf-tour-pagination"> |
| 286 | <li class="wf-active">•</li> |
| 287 | <li>•</li> |
| 288 | <li>•</li> |
| 289 | </ul> |
| 290 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 291 | </div> |
| 292 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 293 | </div> |
| 294 | </script> |
| 295 | <script type="text/x-jquery-template" id="wfNewTour2"> |
| 296 | <div> |
| 297 | <h3><?php _e('Easily Monitor Your Wordfence Protection', 'wordfence'); ?></h3> |
| 298 | <p><?php _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> |
| 299 | <div class="wf-pointer-footer"> |
| 300 | <ul class="wf-tour-pagination"> |
| 301 | <li>•</li> |
| 302 | <li class="wf-active">•</li> |
| 303 | <li>•</li> |
| 304 | </ul> |
| 305 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 306 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 307 | </div> |
| 308 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 309 | </div> |
| 310 | </script> |
| 311 | <script type="text/x-jquery-template" id="wfNewTour3"> |
| 312 | <div> |
| 313 | <h3><?php _e('Global Wordfence Options', 'wordfence'); ?></h3> |
| 314 | <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> |
| 315 | <p><?php _e('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'); ?></p> |
| 316 | <div class="wf-pointer-footer"> |
| 317 | <ul class="wf-tour-pagination"> |
| 318 | <li>•</li> |
| 319 | <li>•</li> |
| 320 | <li class="wf-active">•</li> |
| 321 | </ul> |
| 322 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 323 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Got it', 'wordfence'); ?></a></div> |
| 324 | </div> |
| 325 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 326 | </div> |
| 327 | </script> |
| 328 | <?php endif; ?> |
| 329 | |
| 330 | <?php if (wfOnboardingController::willShowUpgradeTour(wfOnboardingController::TOUR_DASHBOARD)): ?> |
| 331 | <script type="application/javascript"> |
| 332 | (function($) { |
| 333 | $(function() { |
| 334 | WFAD.tour1 = function() { |
| 335 | WFAD.tour('wfUpgradeTour1', 'wfStatusTourMarker', 'top', 'left', null, WFAD.tour2); |
| 336 | }; |
| 337 | WFAD.tour2 = function() { |
| 338 | WFAD.tour('wfUpgradeTour2', 'waf-coverage', 'top', 'left', WFAD.tour1, WFAD.tour3); |
| 339 | }; |
| 340 | WFAD.tour3 = function() { |
| 341 | WFAD.tour('wfUpgradeTour3', 'wf-dashboard-option-options', 'right', 'right', WFAD.tour2, WFAD.tour4); |
| 342 | }; |
| 343 | WFAD.tour4 = function() { |
| 344 | WFAD.tour('wfUpgradeTour4', 'toplevel_page_Wordfence', 'left', 'left', WFAD.tour3, WFAD.tourComplete); |
| 345 | }; |
| 346 | WFAD.tourComplete = function() { WFAD.tourFinish('<?php echo esc_attr(wfOnboardingController::TOUR_DASHBOARD); ?>'); }; |
| 347 | |
| 348 | <?php if (wfOnboardingController::shouldShowUpgradeTour(wfOnboardingController::TOUR_DASHBOARD) && !isset($_GET['onboarding'])): ?> |
| 349 | if (!WFAD.isSmallScreen) { WFAD.tour1(); } |
| 350 | <?php endif; ?> |
| 351 | }); |
| 352 | })(jQuery); |
| 353 | </script> |
| 354 | |
| 355 | <script type="text/x-jquery-template" id="wfUpgradeTour1"> |
| 356 | <div> |
| 357 | <h3><?php printf(__('You have successfully updated to Wordfence %s', 'wordfence'), WORDFENCE_VERSION); ?></h3> |
| 358 | <p><?php _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> |
| 359 | <p><?php _e('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</a>.', 'wordfence'); ?></p> |
| 360 | <div class="wf-pointer-footer"> |
| 361 | <ul class="wf-tour-pagination"> |
| 362 | <li class="wf-active">•</li> |
| 363 | <li>•</li> |
| 364 | <li>•</li> |
| 365 | <li>•</li> |
| 366 | </ul> |
| 367 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 368 | </div> |
| 369 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 370 | </div> |
| 371 | </script> |
| 372 | <script type="text/x-jquery-template" id="wfUpgradeTour2"> |
| 373 | <div> |
| 374 | <h3><?php _e('Monitor Your Wordfence Protection', 'wordfence'); ?></h3> |
| 375 | <p><?php _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> |
| 376 | <div class="wf-pointer-footer"> |
| 377 | <ul class="wf-tour-pagination"> |
| 378 | <li>•</li> |
| 379 | <li class="wf-active">•</li> |
| 380 | <li>•</li> |
| 381 | <li>•</li> |
| 382 | </ul> |
| 383 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 384 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 385 | </div> |
| 386 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 387 | </div> |
| 388 | </script> |
| 389 | <script type="text/x-jquery-template" id="wfUpgradeTour3"> |
| 390 | <div> |
| 391 | <h3><?php _e('Global Wordfence Options', 'wordfence'); ?></h3> |
| 392 | <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> |
| 393 | <p><?php _e('Manage your Wordfence license, see alerts and automatic plugin updates, and import/export your settings.', 'wordfence'); ?></p> |
| 394 | <div class="wf-pointer-footer"> |
| 395 | <ul class="wf-tour-pagination"> |
| 396 | <li>•</li> |
| 397 | <li>•</li> |
| 398 | <li class="wf-active">•</li> |
| 399 | <li>•</li> |
| 400 | </ul> |
| 401 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 402 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 403 | </div> |
| 404 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 405 | </div> |
| 406 | </script> |
| 407 | <script type="text/x-jquery-template" id="wfUpgradeTour4"> |
| 408 | <div> |
| 409 | <h3><?php _e('Updated Navigation', 'wordfence'); ?></h3> |
| 410 | <p><?php _e('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'); ?></p> |
| 411 | <div class="wf-pointer-footer"> |
| 412 | <ul class="wf-tour-pagination"> |
| 413 | <li>•</li> |
| 414 | <li>•</li> |
| 415 | <li>•</li> |
| 416 | <li class="wf-active">•</li> |
| 417 | </ul> |
| 418 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 419 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Got it', 'wordfence'); ?></a></div> |
| 420 | </div> |
| 421 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 422 | </div> |
| 423 | </script> |
| 424 | <?php endif; ?> |
| 425 | <?php |
| 426 | $hostSetting = false; |
| 427 | $recordAll = wfConfig::liveTrafficEnabled($hostSetting); |
| 428 | |
| 429 | if ($recordAll && !$hostSetting && !wfUtils::truthyToBoolean(wfConfig::get('switchLiveTrafficSecurityOnlyChoice'))): |
| 430 | ?> |
| 431 | <script type="application/javascript"> |
| 432 | (function($) { |
| 433 | $(function() { |
| 434 | var prompt = $('#wfLiveTrafficMigration').tmpl(); |
| 435 | var promptHTML = $("<div />").append(prompt).html(); |
| 436 | WFAD.colorboxHTML((WFAD.isSmallScreen ? '300px' : '700px'), promptHTML, {overlayClose: false, closeButton: false, className: 'wf-modal', onComplete: function() { |
| 437 | $('#wf-livetrafficmigrate-no').on('click', function(e) { |
| 438 | e.preventDefault(); |
| 439 | e.stopPropagation(); |
| 440 | |
| 441 | wordfenceExt.switchLiveTrafficSecurityOnlyChoice('no'); |
| 442 | WFAD.colorboxClose(); |
| 443 | }); |
| 444 | |
| 445 | $('#wf-livetrafficmigrate-yes').on('click', function(e) { |
| 446 | e.preventDefault(); |
| 447 | e.stopPropagation(); |
| 448 | |
| 449 | wordfenceExt.switchLiveTrafficSecurityOnlyChoice('yes'); |
| 450 | WFAD.colorboxClose(); |
| 451 | }); |
| 452 | }}); |
| 453 | }); |
| 454 | })(jQuery); |
| 455 | </script> |
| 456 | <script type="text/x-jquery-template" id="wfLiveTrafficMigration"> |
| 457 | <?php |
| 458 | echo wfView::create('common/modal-prompt', array( |
| 459 | 'title' => __('Recommended Settings Change', 'wordfence'), |
| 460 | 'messageHTML' => '<p>' . __('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>' : ''), |
| 461 | 'primaryButton' => array('id' => 'wf-livetrafficmigrate-yes', 'label' => __('Yes Please', 'wordfence'), 'link' => '#', 'type' => 'wf-btn-primary'), |
| 462 | 'secondaryButtons' => array( |
| 463 | array('id' => 'wf-livetrafficmigrate-no', 'label' => __('No Thanks', 'wordfence'), 'link' => '#', 'type' => 'wf-btn-default'), |
| 464 | 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'), |
| 465 | ), |
| 466 | ))->render(); |
| 467 | ?> |
| 468 | </script> |
| 469 | <?php endif; ?> |
| 470 |