Subversion Repositories oidplus

Rev

Rev 1116 | Rev 1185 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1116 Rev 1130
Line 60... Line 60...
60
                $objects_names = array();
60
                $objects_names = array();
61
                foreach ($objects as list($severity, $objectname)) $objects_names[] = $objectname;
61
                foreach ($objects as list($severity, $objectname)) $objects_names[] = $objectname;
62
                $objects_info = count($objects_names) == 0 ? '' : ' ('._L('affected objects: %1',implode(', ',$objects_names)).')';
62
                $objects_info = count($objects_names) == 0 ? '' : ' ('._L('affected objects: %1',implode(', ',$objects_names)).')';
63
 
63
 
64
                $ts = date('Y-m-d H:i:s');
64
                $ts = date('Y-m-d H:i:s');
65
                $addr = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : _L('unknown');
65
                $addr = $_SERVER['REMOTE_ADDR'] ?? _L('unknown');
66
 
66
 
67
                // Note: $ts was put into brackets, because there is probably a bug in fail2ban that does not allow the date/time being at offset 0
67
                // Note: $ts was put into brackets, because there is probably a bug in fail2ban that does not allow the date/time being at offset 0
68
                // "WARNING Found a match for '020-05-11 22:50:58 [192.168.69.89] Failed login ..."
68
                // "WARNING Found a match for '020-05-11 22:50:58 [192.168.69.89] Failed login ..."
69
                $line = "[$ts] [$addr] $event$users_info$objects_info";
69
                $line = "[$ts] [$addr] $event$users_info$objects_info";
70
 
70