X7ROOT File Manager
Current Path:
/home/notabjze/digitalcontentmentors.com/wp-content/plugins/wordfence/lib
home
/
notabjze
/
digitalcontentmentors.com
/
wp-content
/
plugins
/
wordfence
/
lib
/
ðŸ“
..
📄
.htaccess
(354 B)
ðŸ“
Diff
📄
Diff.php
(5.63 KB)
📄
GeoLite2-Country.mmdb
(7.46 MB)
📄
IPTraf.php
(1.17 KB)
📄
IPTrafList.php
(2.98 KB)
📄
WFLSPHP52Compatability.php
(1.27 KB)
ðŸ“
audit-log
📄
compat.php
(425 B)
ðŸ“
dashboard
📄
diffResult.php
(2.81 KB)
📄
email_genericAlert.php
(1.39 KB)
📄
email_newIssues.php
(8.82 KB)
📄
email_unlockRequest.php
(2.34 KB)
📄
email_unsubscribeRequest.php
(1.05 KB)
📄
flags.php
(6.62 KB)
📄
live_activity.php
(580 B)
📄
menu_dashboard.php
(28 KB)
📄
menu_dashboard_options.php
(15.21 KB)
📄
menu_firewall.php
(2.12 KB)
📄
menu_firewall_blocking.php
(10.25 KB)
📄
menu_firewall_blocking_options.php
(4.63 KB)
📄
menu_firewall_waf.php
(19.96 KB)
📄
menu_firewall_waf_options.php
(11.09 KB)
📄
menu_install.php
(1.73 KB)
📄
menu_options.php
(24.7 KB)
📄
menu_scanner.php
(21.53 KB)
📄
menu_scanner_credentials.php
(2.77 KB)
📄
menu_scanner_options.php
(8.41 KB)
📄
menu_support.php
(17.82 KB)
📄
menu_tools.php
(1.49 KB)
📄
menu_tools_auditlog.php
(16.43 KB)
📄
menu_tools_diagnostic.php
(49.35 KB)
📄
menu_tools_importExport.php
(1.28 KB)
📄
menu_tools_livetraffic.php
(39.43 KB)
📄
menu_tools_twoFactor.php
(19.6 KB)
📄
menu_tools_whois.php
(4.61 KB)
📄
menu_wordfence_central.php
(9.66 KB)
📄
noc1.key
(1.64 KB)
ðŸ“
rest-api
📄
sodium_compat_fast.php
(185 B)
📄
sysinfo.php
(1.47 KB)
📄
viewFullActivityLog.php
(1.47 KB)
📄
wf503.php
(9.63 KB)
📄
wfAPI.php
(10.1 KB)
📄
wfActivityReport.php
(20.45 KB)
📄
wfAdminNoticeQueue.php
(5.2 KB)
📄
wfAlerts.php
(7.37 KB)
📄
wfArray.php
(1.77 KB)
📄
wfAuditLog.php
(47.13 KB)
📄
wfBrowscap.php
(3.9 KB)
📄
wfBrowscapCache.php
(256.83 KB)
📄
wfBulkCountries.php
(9.77 KB)
📄
wfCache.php
(6.02 KB)
📄
wfCentralAPI.php
(25.8 KB)
📄
wfConfig.php
(122.49 KB)
📄
wfCrawl.php
(6.56 KB)
📄
wfCredentialsController.php
(5.16 KB)
📄
wfCrypt.php
(4.05 KB)
📄
wfCurlInterceptor.php
(1.02 KB)
📄
wfDB.php
(11.49 KB)
📄
wfDashboard.php
(8.2 KB)
📄
wfDateLocalization.php
(352.13 KB)
📄
wfDeactivationOption.php
(2.13 KB)
📄
wfDiagnostic.php
(66.87 KB)
📄
wfDict.php
(738 B)
📄
wfDirectoryIterator.php
(1.89 KB)
📄
wfFileUtils.php
(2.72 KB)
📄
wfHelperBin.php
(1.97 KB)
📄
wfHelperString.php
(2.13 KB)
📄
wfIPWhitelist.php
(1.56 KB)
📄
wfImportExportController.php
(3.23 KB)
📄
wfInaccessibleDirectoryException.php
(303 B)
📄
wfInvalidPathException.php
(266 B)
📄
wfIpLocation.php
(1.73 KB)
📄
wfIpLocator.php
(2.74 KB)
📄
wfIssues.php
(27.91 KB)
📄
wfJWT.php
(5.33 KB)
📄
wfLicense.php
(10.43 KB)
📄
wfLockedOut.php
(9.73 KB)
📄
wfLog.php
(57.11 KB)
📄
wfMD5BloomFilter.php
(5.2 KB)
📄
wfModuleController.php
(754 B)
📄
wfNotification.php
(6.41 KB)
📄
wfOnboardingController.php
(9.22 KB)
📄
wfPersistenceController.php
(819 B)
📄
wfRESTAPI.php
(377 B)
📄
wfScan.php
(15.92 KB)
📄
wfScanEngine.php
(133.6 KB)
📄
wfScanEntrypoint.php
(1.04 KB)
📄
wfScanFile.php
(1.01 KB)
📄
wfScanFileLink.php
(403 B)
📄
wfScanFileListItem.php
(408 B)
📄
wfScanFileProperties.php
(1.07 KB)
📄
wfScanMonitor.php
(4.05 KB)
📄
wfScanPath.php
(1.77 KB)
📄
wfSchema.php
(10.91 KB)
📄
wfStyle.php
(1.21 KB)
📄
wfSupportController.php
(24.18 KB)
📄
wfUnlockMsg.php
(1.14 KB)
📄
wfUpdateCheck.php
(27.23 KB)
📄
wfUtils.php
(124.11 KB)
📄
wfVersionCheckController.php
(19.27 KB)
📄
wfVersionSupport.php
(535 B)
📄
wfView.php
(2.22 KB)
📄
wfViewResult.php
(1.42 KB)
📄
wfWebsite.php
(1.75 KB)
📄
wordfenceClass.php
(436.65 KB)
📄
wordfenceConstants.php
(3.56 KB)
📄
wordfenceHash.php
(42.7 KB)
📄
wordfenceScanner.php
(30.47 KB)
📄
wordfenceURLHoover.php
(18.36 KB)
Editing: wfNotification.php
<?php class wfNotification { const PRIORITY_LOW = 1500; const PRIORITY_DEFAULT = 1000; const PRIORITY_HIGH = 500; const PRIORITY_HIGH_CRITICAL = 501; const PRIORITY_HIGH_WARNING = 502; protected $_id; protected $_category; protected $_priority; protected $_ctime; protected $_html; protected $_links; public static function notifications($since = 0) { global $wpdb; $table_wfNotifications = wfDB::networkTable('wfNotifications'); $rawNotifications = $wpdb->get_results($wpdb->prepare("SELECT * FROM {$table_wfNotifications} WHERE `new` = 1 AND `ctime` > %d ORDER BY `priority` ASC, `ctime` DESC", $since), ARRAY_A); $notifications = array(); foreach ($rawNotifications as $raw) { $notifications[] = new wfNotification($raw['id'], $raw['priority'], $raw['html'], $raw['category'], $raw['ctime'], json_decode($raw['links'], true), true); } return $notifications; } public static function getNotificationForID($id) { global $wpdb; $table_wfNotifications = wfDB::networkTable('wfNotifications'); $rawNotifications = $wpdb->get_results($wpdb->prepare("SELECT * FROM {$table_wfNotifications} WHERE `id` = %s ORDER BY `priority` ASC, `ctime` DESC", $id), ARRAY_A); if (count($rawNotifications) == 1) { $raw = $rawNotifications[0]; return new wfNotification($raw['id'], $raw['priority'], $raw['html'], $raw['category'], $raw['ctime'], json_decode($raw['links'], true), true); } return null; } public static function getNotificationForCategory($category, $requireNew = true) { global $wpdb; $table_wfNotifications = wfDB::networkTable('wfNotifications'); $rawNotifications = $wpdb->get_results($wpdb->prepare("SELECT * FROM {$table_wfNotifications} WHERE " . ($requireNew ? '`new` = 1 AND ' : '') . "`category` = %s ORDER BY `priority` ASC, `ctime` DESC LIMIT 1", $category), ARRAY_A); if (count($rawNotifications) == 1) { $raw = $rawNotifications[0]; return new wfNotification($raw['id'], $raw['priority'], $raw['html'], $raw['category'], $raw['ctime'], json_decode($raw['links'], true), true); } return null; } public static function reconcileNotificationsWithOptions() { $notification_updatesNeeded = wfConfig::get('notification_updatesNeeded'); $notification_securityAlerts = wfConfig::get('notification_securityAlerts') || !wfConfig::p(); $notification_promotions = wfConfig::get('notification_promotions') || !wfConfig::p(); $notification_blogHighlights = wfConfig::get('notification_blogHighlights') || !wfConfig::p(); $notification_productUpdates = wfConfig::get('notification_productUpdates') || !wfConfig::p(); $notification_scanStatus = wfConfig::get('notification_scanStatus'); $notifications = self::notifications(); foreach ($notifications as $n) { $category = $n->category; if (preg_match('/^release/i', $category) && !$notification_productUpdates) { $n->markAsRead(); } if (preg_match('/^digest/i', $category) && !$notification_blogHighlights) { $n->markAsRead(); } if (preg_match('/^alert/i', $category) && !$notification_securityAlerts) { $n->markAsRead(); } if (preg_match('/^promo/i', $category) && !$notification_promotions) { $n->markAsRead(); } switch ($category) { case 'wfplugin_scan': if (!$notification_scanStatus) { $n->markAsRead(); } break; case 'wfplugin_updates': if (!$notification_updatesNeeded) { $n->markAsRead(); } break; case 'wfplugin_keyconflict': default: //Allow it break; } } } public function __construct($id, $priority, $html, $category = null, $ctime = null, $links = null, $memoryOnly = false) { if ($id === null) { $id = 'site-' . wfUtils::base32_encode(pack('I', wfConfig::atomicInc('lastNotificationID'))); } if ($category === null) { $category = ''; } if ($ctime === null) { $ctime = time(); } if (!is_array($links)) { $links = array(); } $this->_id = $id; $this->_category = $category; $this->_priority = $priority; $this->_ctime = $ctime; $this->_html = $html; $this->_links = $links; global $wpdb; if (!$memoryOnly) { $linksJSON = json_encode($links); $notification_updatesNeeded = wfConfig::get('notification_updatesNeeded'); $notification_securityAlerts = wfConfig::get('notification_securityAlerts') || !wfConfig::p(); $notification_promotions = wfConfig::get('notification_promotions') || !wfConfig::p(); $notification_blogHighlights = wfConfig::get('notification_blogHighlights') || !wfConfig::p(); $notification_productUpdates = wfConfig::get('notification_productUpdates') || !wfConfig::p(); $notification_scanStatus = wfConfig::get('notification_scanStatus'); if (preg_match('/^release/i', $category) && !$notification_productUpdates) { return; } if (preg_match('/^digest/i', $category) && !$notification_blogHighlights) { return; } if (preg_match('/^alert/i', $category) && !$notification_securityAlerts) { return; } if (preg_match('/^promo/i', $category) && !$notification_promotions) { return; } switch ($category) { case 'wfplugin_scan': if (!$notification_scanStatus) { return; } break; case 'wfplugin_updates': if (!$notification_updatesNeeded) { return; } break; case 'wfplugin_keyconflict': default: //Allow it break; } $table_wfNotifications = wfDB::networkTable('wfNotifications'); if (!empty($category)) { $existing = self::getNotificationForCategory($category); if ($existing) { $wpdb->query($wpdb->prepare("UPDATE {$table_wfNotifications} SET priority = %d, ctime = %d, html = %s, links = %s WHERE id = %s", $priority, $ctime, $html, $linksJSON, $existing->id)); return; } } $wpdb->query($wpdb->prepare("INSERT IGNORE INTO {$table_wfNotifications} (id, category, priority, ctime, html, links) VALUES (%s, %s, %d, %d, %s, %s)", $id, $category, $priority, $ctime, $html, $linksJSON)); } } public function __get($key){ if ($key == 'id') { return $this->_id; } else if ($key == 'category') { return $this->_category; } else if ($key == 'priority') { return $this->_priority; } else if ($key == 'ctime') { return $this->_ctime; } else if ($key == 'html') { return $this->_html; } else if ($key == 'links') { return $this->_links; } throw new InvalidArgumentException(); } public function markAsRead() { global $wpdb; $table_wfNotifications = wfDB::networkTable('wfNotifications'); $wpdb->query($wpdb->prepare("UPDATE {$table_wfNotifications} SET `new` = 0 WHERE `id` = %s", $this->_id)); } }
Upload File
Create Folder