diff --git a/src/css/defaults.css b/src/css/defaults.css
index 28f3ec5..9dc39ec 100644
--- a/src/css/defaults.css
+++ b/src/css/defaults.css
@@ -47,6 +47,7 @@
}
.syslogdetails span {display: none}
/*the span will display just on :hover state*/
+/*
.syslogdetails:hover span
{
display:block;
@@ -54,6 +55,15 @@
top:15px;
left:15px;
}
+*/
+.syslogdetails_popup span
+{
+ display:block;
+ position:absolute;
+ z-index:5;
+/* top:15px; */
+/* left:15px; */
+}
.gridline
{
diff --git a/src/include/functions_common.php b/src/include/functions_common.php
index fcc0765..f35f6c6 100644
--- a/src/include/functions_common.php
+++ b/src/include/functions_common.php
@@ -849,6 +849,32 @@ function GetMonthFromString($szMonth)
}
}
+/*
+* AddContextLinks
+*/
+function AddContextLinks($sourceTxt)
+{
+ // Create Search Array
+ $search = array
+ (
+ '|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})|',
+// '/([\w\d\_\/]+)\.(de|com)/x',
+ );
+
+ // Create Replace Array
+ $replace = array
+ (
+ '$1',
+// '$1.$2',
+ );
+
+ // Replace and return!
+ $outTxt = preg_replace( $search, $replace, $sourceTxt );
+
+//echo $outTxt . "
" ;
+
+ return $outTxt;
+}
// --- BEGIN Usermanagement Function ---
function StartPHPSession()
diff --git a/src/index.php b/src/index.php
index d52d74d..4c89cb4 100644
--- a/src/index.php
+++ b/src/index.php
@@ -457,6 +457,10 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue'] = "";
}
+ // --- HOOK here to add context links!
+ $content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue'] = AddContextLinks($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'] );
diff --git a/src/templates/index.html b/src/templates/index.html
index fc04c06..a52643f 100644
--- a/src/templates/index.html
+++ b/src/templates/index.html
@@ -241,8 +241,11 @@
-
+
+
+
+
@@ -265,8 +268,7 @@
-
- {fieldvalue}
+
diff --git a/src/themes/default/main.css b/src/themes/default/main.css
index 745543e..8614e4a 100644
--- a/src/themes/default/main.css
+++ b/src/themes/default/main.css
@@ -32,6 +32,25 @@ a:hover
font-weight:bold;
color:#FF0000;
}
+/*---*/
+
+/* Context Link Classes */
+a.contextlink:link,a.contextlink:active,a.contextlink:visited,a.contextlink
+{
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-weight:bold;
+ background-color: transparent;
+ color:#3814BB;
+ text-decoration:underline;
+}
+a.contextlink:hover
+{
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-weight:bold;
+ color:#3844FF;
+ text-decoration:none;
+}
+/*---*/
img
{