Changeset 1714918
- Timestamp:
- 08/17/2017 10:16:21 PM (9 years ago)
- Location:
- wp-audit-log-logsentinel/trunk
- Files:
-
- 3 edited
-
Loggers/LogSentinelLogger.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
wp-audit-log-logsentinel.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-audit-log-logsentinel/trunk/Loggers/LogSentinelLogger.php
r1685839 r1714918 11 11 // is this a php alert, and if so, are we logging such alerts? 12 12 if ($type < 0010 && !$this->plugin->settings->IsPhpErrorLoggingEnabled()) return; 13 if ($type == 9999 || $type == 6007 ) return; // skip promoevents and 404 warnings13 if ($type == 9999 || $type == 6007 || $type == 6000) return; // skip promo events, prune events and 404 warnings 14 14 $organizationId = trim(get_option("organization_id")); 15 15 if (!isset($organizationId) || $organizationId == "") return; 16 16 17 $username = $data['Username']; 18 17 19 $current_user = wp_get_current_user(); 18 if ($current_user->ID == 0 ) {19 $current_user = get_user_by('login', $ data['Username']);20 if ($current_user->ID == 0 && isset($username)) { 21 $current_user = get_user_by('login', $username); 20 22 } 21 23 22 $username = $data['Username'];23 24 if (!$username) { 24 25 $username = $current_user->user_login; … … 49 50 $url = $root . '/api/log/' . $currentUserId . '/auth/LOGIN_FAILED' . $params; 50 51 } else if ($action == "Login_failed__/_non_existing_user") { 51 $url = $root . '/api/log/ ' . $currentUserId . '/auth/LOGIN_FAILED' . $params . '&missingUser=true';52 $url = $root . '/api/log/unknown/auth/LOGIN_FAILED' . $params . '&missingUser=true'; 52 53 } 53 54 -
wp-audit-log-logsentinel/trunk/readme.txt
r1685839 r1714918 5 5 Tested up to: 4.7.2 6 6 Depends on : WP Security Audit Log 7 Stable tag: 0. 37 Stable tag: 0.4 8 8 9 9 An Addon to WP Security Audit Log to store events in LogSentinel.com -
wp-audit-log-logsentinel/trunk/wp-audit-log-logsentinel.php
r1685839 r1714918 4 4 Plugin URI: https://github.com/logsentimel/wp-audit-log-logsentinel 5 5 Description: An addon to WP Security Audit Log Plugin to store events in LogSentinel.com 6 Version: 0. 36 Version: 0.4 7 7 Author: Bozhdiar Bozhanov 8 8 Author URI:
Note: See TracChangeset
for help on using the changeset viewer.