$content['syslogmessages'][$counter]['values'][$mycolkey]['messagesdetails'][]['detailfieldtitle'] = $content['fields'][$mykey]['FieldCaption']; // Get ArrayIndex $myIndex = count($content['syslogmessages'][$counter]['values'][$mycolkey]['messagesdetails']) - 1; // --- Set CSS Class if ($myIndex % 2 == 0) { $content['syslogmessages'][$counter]['values'][$mycolkey]['messagesdetails'][$myIndex]['detailscssclass'] = "line1"; } else { $content['syslogmessages'][$counter]['values'][$mycolkey]['messagesdetails'][$myIndex]['detailscssclass'] = "line2"; } // --- // If message field, we need to handle differently! if ($mykey == SYSLOG_MESSAGE) { // Get DetailMsg with linebreaks $szDetailMsg = ReplaceLineBreaksInString(GetStringWithHTMLCodes($logArray[SYSLOG_MESSAGE])); if (isset($content['highlightwords'])) { $content['syslogmessages'][$counter]['values'][$mycolkey]['messagesdetails'][$myIndex]['detailfieldvalue'] = HighLightString($content['highlightwords'], $szDetailMsg); } else { $content['syslogmessages'][$counter]['values'][$mycolkey]['messagesdetails'][$myIndex]['detailfieldvalue'] = $szDetailMsg; } // --- HOOK here to add context links! AddContextLinks($content['syslogmessages'][$counter]['values'][$mycolkey]['messagesdetails'][$myIndex]['detailfieldvalue']); // --- } else { // Just set field value $content['syslogmessages'][$counter]['values'][$mycolkey]['messagesdetails'][$myIndex]['detailfieldvalue'] = isset($myfield['rawfieldvalue']) ? GetStringWithHTMLCodes($myfield['rawfieldvalue']) : GetStringWithHTMLCodes($myfield['fieldvalue']); } } } if (strlen($content['searchstr']) > 0) { // Set OnClick Menu for SYSLOG_MESSAGE $content['syslogmessages'][$counter]['values'][$mycolkey]['hasbuttons'] = true;
// Set truncasted message for display if (isset($logArray[SYSLOG_MESSAGE])) { if ($myMsgCharLimit > 0) { $content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue'] = GetStringWithHTMLCodes(strlen($logArray[SYSLOG_MESSAGE]) > $myMsgCharLimit ? substr($logArray[SYSLOG_MESSAGE], 0, $myMsgCharLimit) . " ..." : $logArray[SYSLOG_MESSAGE]); } else { $content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue'] = GetStringWithHTMLCodes($logArray[SYSLOG_MESSAGE]); } // Enable LINK property! for this field $content['syslogmessages'][$counter]['values'][$mycolkey]['ismessagefield'] = true; $content['syslogmessages'][$counter]['values'][$mycolkey]['detaillink'] = "details.php?uid=" . $uID; } else { $content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue'] = ""; } // If we need to highlight some words ^^! if (isset($content['highlightwords'])) { $content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue'] = HighLightString($content['highlightwords'], $content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue']); } // --- HOOK here to add context links! $content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvaluenolink'] = $content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue']; AddContextLinks($content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue']); AddContextHighlights($content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvaluenolink']); // --- if (GetConfigSetting("ViewEnableDetailPopups", 0, CFGLEVEL_USER)) { $content['syslogmessages'][$counter]['values'][$mycolkey]['popupcaption'] = GetAndReplaceLangStr($content['LN_GRID_POPUPDETAILS'], $logArray[SYSLOG_UID]); $content['syslogmessages'][$counter]['values'][$mycolkey]['popupcaptionjs'] = EscapeQuotesFromString($content['syslogmessages'][$counter]['values'][$mycolkey]['popupcaption']); $content['syslogmessages'][$counter]['values'][$mycolkey]['hasdetails'] = "true"; $content['syslogmessages'][$counter]['values'][$mycolkey]['detailimagealign'] = "left"; // Other alignment needed! /* DetailPopup Code not needed anymore foreach($content['syslogmessages'][$counter]['values'] as $mykey => $myfield) {