Diff
8 years ago
dashboard
7 years ago
rest-api
7 years ago
.htaccess
7 years ago
Diff.php
14 years ago
GeoLite2-Country.mmdb
7 years ago
IPTraf.php
8 years ago
IPTrafList.php
7 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
7 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
7 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
7 years ago
menu_scanner.php
7 years ago
menu_scanner_credentials.php
8 years ago
menu_scanner_options.php
8 years ago
menu_support.php
7 years ago
menu_tools.php
7 years ago
menu_tools_diagnostic.php
7 years ago
menu_tools_importExport.php
7 years ago
menu_tools_livetraffic.php
7 years ago
menu_tools_twoFactor.php
8 years ago
menu_tools_whois.php
8 years ago
menu_wordfence_central.php
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
7 years ago
wfActivityReport.php
7 years ago
wfAdminNoticeQueue.php
8 years ago
wfArray.php
7 years ago
wfBrowscap.php
8 years ago
wfBrowscapCache.php
7 years ago
wfBulkCountries.php
7 years ago
wfCache.php
9 years ago
wfCentralAPI.php
7 years ago
wfConfig.php
7 years ago
wfCrawl.php
8 years ago
wfCredentialsController.php
7 years ago
wfCrypt.php
8 years ago
wfDB.php
7 years ago
wfDashboard.php
7 years ago
wfDateLocalization.php
8 years ago
wfDiagnostic.php
7 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
7 years ago
wfJWT.php
7 years ago
wfLockedOut.php
7 years ago
wfLog.php
7 years ago
wfMD5BloomFilter.php
8 years ago
wfNotification.php
8 years ago
wfOnboardingController.php
7 years ago
wfPersistenceController.php
8 years ago
wfRESTAPI.php
7 years ago
wfScan.php
7 years ago
wfScanEngine.php
7 years ago
wfSchema.php
7 years ago
wfStyle.php
8 years ago
wfSupportController.php
7 years ago
wfUnlockMsg.php
7 years ago
wfUpdateCheck.php
8 years ago
wfUtils.php
7 years ago
wfVersionCheckController.php
8 years ago
wfView.php
10 years ago
wfViewResult.php
8 years ago
wordfenceClass.php
7 years ago
wordfenceConstants.php
7 years ago
wordfenceHash.php
7 years ago
wordfenceScanner.php
7 years ago
wordfenceURLHoover.php
7 years ago
menu_scanner_options.php
198 lines
| 1 | <?php |
| 2 | if (!defined('WORDFENCE_VERSION')) { exit; } |
| 3 | $scanner = wfScanner::shared(); |
| 4 | $scanOptions = $scanner->scanOptions(); |
| 5 | |
| 6 | $backPage = new wfPage(wfPage::PAGE_SCAN); |
| 7 | if (isset($_GET['source']) && wfPage::isValidPage($_GET['source'])) { |
| 8 | $backPage = new wfPage($_GET['source']); |
| 9 | } |
| 10 | ?> |
| 11 | <script type="application/javascript"> |
| 12 | (function($) { |
| 13 | $(function() { |
| 14 | document.title = "<?php esc_attr_e('Scanner Options', 'wordfence'); ?>" + " \u2039 " + WFAD.basePageName; |
| 15 | |
| 16 | //Hash-based option block linking |
| 17 | if (window.location.hash) { |
| 18 | var hashes = WFAD.parseHashes(); |
| 19 | var hash = hashes[hashes.length - 1]; |
| 20 | var block = $('.wf-block[data-persistence-key="' + hash + '"]'); |
| 21 | if (block) { |
| 22 | if (!block.hasClass('wf-active')) { |
| 23 | block.find('.wf-block-content').slideDown({ |
| 24 | always: function() { |
| 25 | block.addClass('wf-active'); |
| 26 | $('html, body').animate({ |
| 27 | scrollTop: block.offset().top - 100 |
| 28 | }, 1000); |
| 29 | } |
| 30 | }); |
| 31 | |
| 32 | WFAD.ajax('wordfence_saveDisclosureState', {name: block.data('persistenceKey'), state: true}, function() {}); |
| 33 | } |
| 34 | else { |
| 35 | $('html, body').animate({ |
| 36 | scrollTop: block.offset().top - 100 |
| 37 | }, 1000); |
| 38 | } |
| 39 | history.replaceState('', document.title, window.location.pathname + window.location.search); |
| 40 | } |
| 41 | } |
| 42 | }); |
| 43 | })(jQuery); |
| 44 | </script> |
| 45 | <div class="wf-options-controls"> |
| 46 | <div class="wf-row"> |
| 47 | <div class="wf-col-xs-12"> |
| 48 | <?php |
| 49 | echo wfView::create('options/block-controls', array( |
| 50 | 'backLink' => $backPage->url(), |
| 51 | 'backLabelHTML' => sprintf(__('<span class="wf-hidden-xs">Back to </span>%s', 'wordfence'), $backPage->label()), |
| 52 | 'restoreDefaultsSection' => wfConfig::OPTIONS_TYPE_SCANNER, |
| 53 | 'restoreDefaultsMessage' => __('Are you sure you want to restore the default Scan settings? This will undo any custom changes you have made to the options on this page.', 'wordfence'), |
| 54 | ))->render(); |
| 55 | ?> |
| 56 | </div> |
| 57 | </div> |
| 58 | </div> |
| 59 | <div class="wf-options-controls-spacer"></div> |
| 60 | <?php |
| 61 | if (wfOnboardingController::shouldShowAttempt3()) { |
| 62 | echo wfView::create('onboarding/disabled-overlay')->render(); |
| 63 | echo wfView::create('onboarding/banner')->render(); |
| 64 | } |
| 65 | else if (wfConfig::get('touppPromptNeeded')) { |
| 66 | echo wfView::create('gdpr/disabled-overlay')->render(); |
| 67 | echo wfView::create('gdpr/banner')->render(); |
| 68 | } |
| 69 | ?> |
| 70 | <div class="wrap wordfence"> |
| 71 | <div class="wf-container-fluid"> |
| 72 | <div class="wf-row"> |
| 73 | <div class="wf-col-xs-12"> |
| 74 | <div class="wp-header-end"></div> |
| 75 | </div> |
| 76 | </div> |
| 77 | <div class="wf-row"> |
| 78 | <div class="<?php echo wfStyle::contentClasses(); ?>"> |
| 79 | <div id="wf-scan-options" class="wf-fixed-tab-content"> |
| 80 | <?php |
| 81 | echo wfView::create('common/section-title', array( |
| 82 | 'title' => __('Scan Options and Scheduling', 'wordfence'), |
| 83 | 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN), |
| 84 | 'helpLabelHTML' => __('Learn more<span class="wf-hidden-xs"> about Scanning</span>', 'wordfence'), |
| 85 | 'showIcon' => true, |
| 86 | ))->render(); |
| 87 | ?> |
| 88 | <div class="wf-row"> |
| 89 | <div class="wf-col-xs-12"> |
| 90 | <div class="wf-block wf-active"> |
| 91 | <div class="wf-block-content"> |
| 92 | <ul class="wf-block-list wf-block-list-horizontal wf-block-list-nowrap wf-scanner-coverage"> |
| 93 | <li> |
| 94 | <?php |
| 95 | if (function_exists('network_admin_url') && is_multisite()) { $optionsURL = network_admin_url('admin.php?page=WordfenceScan&subpage=scan_options'); } |
| 96 | else { $optionsURL = admin_url('admin.php?page=WordfenceScan&subpage=scan_options'); } |
| 97 | echo wfView::create('common/status-detail', array( |
| 98 | 'id' => 'wf-scanner-type', |
| 99 | 'percentage' => $scanner->scanTypeStatus(), |
| 100 | 'activeColor' => (!$scanner->isEnabled() ? '#ececec' : null /* automatic */), |
| 101 | 'title' => __('Scan Type: ', 'wordfence') . wfScanner::displayScanType($scanner->scanType()), |
| 102 | 'subtitle' => wfScanner::displayScanTypeDetail($scanner->scanType()), |
| 103 | 'link' => $optionsURL, |
| 104 | 'linkLabel' => null, |
| 105 | 'statusTitle' => __('Scan Status', 'wordfence'), |
| 106 | 'statusList' => $scanner->scanTypeStatusList(), |
| 107 | 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_STATUS_OVERALL), |
| 108 | ))->render(); |
| 109 | ?> |
| 110 | </li> |
| 111 | <li> |
| 112 | <?php |
| 113 | echo wfView::create('common/status-detail', array( |
| 114 | 'id' => 'wf-scanner-malware-type', |
| 115 | 'percentage' => $scanner->signatureMode() == wfScanner::SIGNATURE_MODE_PREMIUM ? 1.0 : 0.7, |
| 116 | 'activeColor' => (!$scanner->isEnabled() ? '#ececec' : null /* automatic */), |
| 117 | 'title' => __('Malware Signatures: ', 'wordfence') . ($scanner->signatureMode() == wfScanner::SIGNATURE_MODE_PREMIUM ? __('Premium', 'wordfence') : __('Community', 'wordfence')), |
| 118 | 'subtitle' => ($scanner->signatureMode() == wfScanner::SIGNATURE_MODE_PREMIUM ? __('Signatures updated in real-time', 'wordfence') : __('Signature updates delayed by 30 days', 'wordfence')), |
| 119 | 'link' => 'https://www.wordfence.com/gnl1scanUpgrade/wordfence-signup/', |
| 120 | 'linkLabel' => null, |
| 121 | 'statusTitle' => __('Malware Signatures Status', 'wordfence'), |
| 122 | 'statusList' => $scanner->signatureMode() == wfScanner::SIGNATURE_MODE_PREMIUM ? array() : array(array( |
| 123 | 'percentage' => 0.30, |
| 124 | 'title' => __('Enable Premium Scan Signatures.', 'wordfence'), |
| 125 | )), |
| 126 | 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_STATUS_MALWARE), |
| 127 | ))->render(); |
| 128 | ?> |
| 129 | </li> |
| 130 | <li> |
| 131 | <?php |
| 132 | echo wfView::create('common/status-detail', array( |
| 133 | 'id' => 'wf-scanner-reputation', |
| 134 | 'percentage' => $scanner->reputationStatus(), |
| 135 | 'activeColor' => (!$scanner->isEnabled() ? '#ececec' : null /* automatic */), |
| 136 | 'title' => __('Reputation Checks', 'wordfence'), |
| 137 | 'subtitle' => __('Check spam & spamvertising blacklists', 'wordfence'), |
| 138 | 'link' => $optionsURL . '#wf-scanner-options-general', |
| 139 | 'linkLabel' => null, |
| 140 | 'statusTitle' => __('Reputation Check Status', 'wordfence'), |
| 141 | 'statusList' => $scanner->reputationStatusList(), |
| 142 | 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_STATUS_REPUTATION), |
| 143 | ))->render(); |
| 144 | ?> |
| 145 | </li> |
| 146 | </ul> |
| 147 | </div> |
| 148 | </div> |
| 149 | </div> |
| 150 | </div> |
| 151 | <?php |
| 152 | echo wfView::create('scanner/options-group-scan-schedule', array( |
| 153 | 'scanner' => $scanner, |
| 154 | 'stateKey' => 'wf-scanner-options-schedule', |
| 155 | ))->render(); |
| 156 | |
| 157 | echo wfView::create('scanner/options-group-basic', array( |
| 158 | 'scanner' => $scanner, |
| 159 | 'stateKey' => 'wf-scanner-options-basic', |
| 160 | 'collapseable' => false, |
| 161 | ))->render(); |
| 162 | |
| 163 | echo wfView::create('scanner/options-group-general', array( |
| 164 | 'scanner' => $scanner, |
| 165 | 'stateKey' => 'wf-scanner-options-general', |
| 166 | ))->render(); |
| 167 | |
| 168 | echo wfView::create('scanner/options-group-performance', array( |
| 169 | 'scanner' => $scanner, |
| 170 | 'stateKey' => 'wf-scanner-options-performance', |
| 171 | ))->render(); |
| 172 | |
| 173 | echo wfView::create('scanner/options-group-advanced', array( |
| 174 | 'scanner' => $scanner, |
| 175 | 'stateKey' => 'wf-scanner-options-custom', |
| 176 | ))->render(); |
| 177 | ?> |
| 178 | </div> <!-- end wf-scan-options block --> |
| 179 | </div> <!-- end content block --> |
| 180 | </div> <!-- end row --> |
| 181 | </div> <!-- end container --> |
| 182 | </div> |
| 183 | <script type="application/javascript"> |
| 184 | (function($) { |
| 185 | $(function() { |
| 186 | var updatePendingCircles = function() { |
| 187 | $('#circle-wf-scanner-type, #circle-wf-scanner-reputation').wfCircularProgress({pendingOverlay: Object.keys(WFAD.pendingChanges).length > 0}); |
| 188 | }; |
| 189 | var coalescingUpdateTimer = false; |
| 190 | |
| 191 | $('.wf-option').on('change', function() { |
| 192 | clearTimeout(coalescingUpdateTimer); |
| 193 | coalescingUpdateTimer = setTimeout(updatePendingCircles, 100); |
| 194 | }); |
| 195 | }); |
| 196 | })(jQuery); |
| 197 | </script> |
| 198 |