mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Enhanced the link matrix of the asktheoracle site
This commit is contained in:
parent
c85667a00e
commit
f047d1566c
@ -74,14 +74,25 @@ else
|
|||||||
|
|
||||||
// Set readable type
|
// Set readable type
|
||||||
if ( $content['oracle_type'] == "ip" )
|
if ( $content['oracle_type'] == "ip" )
|
||||||
|
{
|
||||||
$content['oracle_type_readable'] = "ip";
|
$content['oracle_type_readable'] = "ip";
|
||||||
|
$content['oracle_kb_type'] = "ip";
|
||||||
|
}
|
||||||
else if ( $content['oracle_type'] == "domain" )
|
else if ( $content['oracle_type'] == "domain" )
|
||||||
|
{
|
||||||
$content['oracle_type_readable'] = "domain";
|
$content['oracle_type_readable'] = "domain";
|
||||||
|
$content['oracle_kb_type'] = "name";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
$content['oracle_type_readable'] = "unknown type";
|
$content['oracle_type_readable'] = "unknown type";
|
||||||
|
$content['oracle_kb_type'] = "";
|
||||||
|
}
|
||||||
|
|
||||||
$content['ORACLE_HELP_DETAIL'] = GetAndReplaceLangStr( $content['LN_ORACLE_HELP_DETAIL'], $content['oracle_type_readable'], $content['oracle_query'] ) ;
|
$content['ORACLE_HELP_DETAIL'] = GetAndReplaceLangStr( $content['LN_ORACLE_HELP_DETAIL'], $content['oracle_type_readable'], $content['oracle_query'] ) ;
|
||||||
|
$content['ORACLE_HELP_TEXT'] = GetAndReplaceLangStr( $content['LN_ORACLE_HELP_TEXT'], $content['oracle_type_readable'], $content['oracle_query'] ) ;
|
||||||
|
$content['ORACLE_WHOIS'] = GetAndReplaceLangStr( $content['LN_ORACLE_WHOIS'], $content['oracle_type_readable'], $content['oracle_query'] ) ;
|
||||||
|
$content['WhoisUrl'] = "http://kb.monitorware.com/kbsearch.php?sa=whois&oid=" . $content['oracle_kb_type'] . "&origin=phplogcon&q=" . urlencode($content['oracle_query']);
|
||||||
|
|
||||||
// Enable help links!
|
// Enable help links!
|
||||||
$content['helplinksenabled'] = true;
|
$content['helplinksenabled'] = true;
|
||||||
@ -90,11 +101,11 @@ $content['helplinksenabled'] = true;
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
foreach( $content['Sources'] as $mySource )
|
foreach( $content['Sources'] as $mySource )
|
||||||
{
|
{
|
||||||
$myHelpLink['SourceName'] = GetAndReplaceLangStr("Source %1",$mySource['Name'] );
|
$myHelpLink['SourceName'] = $mySource['Name'];
|
||||||
$myHelpLink['MsgUrl'] = $content['BASEPATH'] . "index.php?filter=" . urlencode($content['oracle_query']) . "&search=Search&sourceid=" . $mySource['ID'];
|
$myHelpLink['MsgUrl'] = $content['BASEPATH'] . "index.php?filter=" . urlencode($content['oracle_query']) . "&search=Search&sourceid=" . $mySource['ID'];
|
||||||
$myHelpLink['MsgDisplayName'] = GetAndReplaceLangStr( $content['LN_ORACLE_SEARCHINFIELD'], "Message" );
|
// $myHelpLink['MsgDisplayName'] = GetAndReplaceLangStr( $content['LN_ORACLE_SEARCHINFIELD'], "Message" );
|
||||||
$myHelpLink['SourceUrl'] = $content['BASEPATH'] . "index.php?filter=" . urlencode("source:=" . $content['oracle_query']) . "&search=Search&sourceid=" . $mySource['ID'];
|
$myHelpLink['SourceUrl'] = $content['BASEPATH'] . "index.php?filter=" . urlencode("source:=" . $content['oracle_query']) . "&search=Search&sourceid=" . $mySource['ID'];
|
||||||
$myHelpLink['SourceDisplayName'] = GetAndReplaceLangStr( $content['LN_ORACLE_SEARCHINFIELD'], "Source" );
|
// $myHelpLink['SourceDisplayName'] = GetAndReplaceLangStr( $content['LN_ORACLE_SEARCHINFIELD'], "Source" );
|
||||||
|
|
||||||
// --- Set CSS Class
|
// --- Set CSS Class
|
||||||
if ( $i % 2 == 0 )
|
if ( $i % 2 == 0 )
|
||||||
|
@ -318,4 +318,17 @@ $content['LN_DETAIL_BACKTOLIST'] = "Back to Listview";
|
|||||||
$content['LN_CHART_TYPE_BARS_HORIZONTAL'] = "Bars horizontal";
|
$content['LN_CHART_TYPE_BARS_HORIZONTAL'] = "Bars horizontal";
|
||||||
$content['LN_STATS_WARNINGDISPLAY'] = "Generating graphics on large data sources currently is very time consuming. This will be addressed in later versions. If processing takes too long, please simply cancel the request.";
|
$content['LN_STATS_WARNINGDISPLAY'] = "Generating graphics on large data sources currently is very time consuming. This will be addressed in later versions. If processing takes too long, please simply cancel the request.";
|
||||||
|
|
||||||
|
// asktheoracle site
|
||||||
|
$content['LN_ORACLE_TITLE'] = "Asking the oracle for '%1'";
|
||||||
|
$content['LN_ORACLE_HELP_FOR'] = "These are the links the oracle got for you";
|
||||||
|
$content['LN_ORACLE_HELP_TEXT'] = "You asked the oracle to find more information about the '%1' value '%2'. <br>
|
||||||
|
The oracle has come to an answer, and brought up the following link suggestions:
|
||||||
|
";
|
||||||
|
$content['LN_ORACLE_HELP_DETAIL'] = "Link matrix for the '%1' value '%2'";
|
||||||
|
$content['LN_ORACLE_SEARCH'] = "Search"; // in '%1' Field";
|
||||||
|
$content['LN_ORACLE_SOURCENAME'] = "Source name";
|
||||||
|
$content['LN_ORACLE_FIELD'] = "Field";
|
||||||
|
$content['LN_ORACLE_ONLINESEARCH'] = "Online Search";
|
||||||
|
$content['LN_ORACLE_WHOIS'] = "WHOIS Lookup for '%1' value '%2'";
|
||||||
|
|
||||||
?>
|
?>
|
@ -325,9 +325,15 @@ $content['LN_CONVERT_ERROR_SOURCEIMPORT'] = "Critical Error while importing the
|
|||||||
// asktheoracle site
|
// asktheoracle site
|
||||||
$content['LN_ORACLE_TITLE'] = "Asking the oracle for '%1'";
|
$content['LN_ORACLE_TITLE'] = "Asking the oracle for '%1'";
|
||||||
$content['LN_ORACLE_HELP_FOR'] = "These are the links the oracle got for you";
|
$content['LN_ORACLE_HELP_FOR'] = "These are the links the oracle got for you";
|
||||||
$content['LN_ORACLE_HELP_TEXT'] = "Spieglein Spieglein an der Wand, wer hat das größte Logfile im ganzen Land?";
|
$content['LN_ORACLE_HELP_TEXT'] = "You asked the oracle to find more information about the '%1' value '%2'. <br>
|
||||||
$content['LN_ORACLE_HELP_DETAIL'] = "Usefull search links for the type '%1', value = '%2'";
|
The oracle has come to an answer, and brought up the following link suggestions:
|
||||||
$content['LN_ORACLE_SEARCHINFIELD'] = "Search in '%1' Field";
|
";
|
||||||
|
$content['LN_ORACLE_HELP_DETAIL'] = "Link matrix for the '%1' value '%2'";
|
||||||
|
$content['LN_ORACLE_SEARCH'] = "Search"; // in '%1' Field";
|
||||||
|
$content['LN_ORACLE_SOURCENAME'] = "Source name";
|
||||||
|
$content['LN_ORACLE_FIELD'] = "Field";
|
||||||
|
$content['LN_ORACLE_ONLINESEARCH'] = "Online Search";
|
||||||
|
$content['LN_ORACLE_WHOIS'] = "WHOIS Lookup for '%1' value '%2'";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -322,4 +322,17 @@ $content['LN_DETAIL_BACKTOLIST'] = "Voltar para a lista";
|
|||||||
$content['LN_CHART_TYPE_BARS_HORIZONTAL'] = "Bars horizontal";
|
$content['LN_CHART_TYPE_BARS_HORIZONTAL'] = "Bars horizontal";
|
||||||
$content['LN_STATS_WARNINGDISPLAY'] = "Generating graphics on large data sources currently is very time consuming. This will be addressed in later versions. If processing takes too long, please simply cancel the request.";
|
$content['LN_STATS_WARNINGDISPLAY'] = "Generating graphics on large data sources currently is very time consuming. This will be addressed in later versions. If processing takes too long, please simply cancel the request.";
|
||||||
|
|
||||||
|
// asktheoracle site
|
||||||
|
$content['LN_ORACLE_TITLE'] = "Asking the oracle for '%1'";
|
||||||
|
$content['LN_ORACLE_HELP_FOR'] = "These are the links the oracle got for you";
|
||||||
|
$content['LN_ORACLE_HELP_TEXT'] = "You asked the oracle to find more information about the '%1' value '%2'. <br>
|
||||||
|
The oracle has come to an answer, and brought up the following link suggestions:
|
||||||
|
";
|
||||||
|
$content['LN_ORACLE_HELP_DETAIL'] = "Link matrix for the '%1' value '%2'";
|
||||||
|
$content['LN_ORACLE_SEARCH'] = "Search"; // in '%1' Field";
|
||||||
|
$content['LN_ORACLE_SOURCENAME'] = "Source name";
|
||||||
|
$content['LN_ORACLE_FIELD'] = "Field";
|
||||||
|
$content['LN_ORACLE_ONLINESEARCH'] = "Online Search";
|
||||||
|
$content['LN_ORACLE_WHOIS'] = "WHOIS Lookup for '%1' value '%2'";
|
||||||
|
|
||||||
?>
|
?>
|
@ -32,7 +32,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3" class="titleSecond"><br><blockquote>{LN_ORACLE_HELP_TEXT}</blockquote><br></td>
|
<td colspan="3" class="titleSecond"><br><blockquote>{ORACLE_HELP_TEXT}</blockquote><br></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- IF helplinksenabled="true" -->
|
<!-- IF helplinksenabled="true" -->
|
||||||
@ -40,24 +40,44 @@
|
|||||||
<td class="tableBackground">
|
<td class="tableBackground">
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
<table cellpadding="0" cellspacing="0" border="0" align="center" valign="top" width="800" class="table_with_border">
|
<table cellpadding="1" cellspacing="0" border="0" align="center" valign="top" width="800" class="table_with_border">
|
||||||
<tr><td class="cellmenu1" align="center" colspan="3"><B>{ORACLE_HELP_DETAIL}</B></td></tr>
|
<tr><td class="title" align="center" colspan="4"><B>{LN_ORACLE_ONLINESEARCH}</B></td></tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tableBackground">
|
||||||
|
<a href="{WhoisUrl}" target="_top">
|
||||||
|
<img src="{MENU_EARTH_FIND}" align="middle" width="16" height="16"> {ORACLE_WHOIS}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
<table cellpadding="1" cellspacing="0" border="0" align="center" valign="top" width="800" class="table_with_border">
|
||||||
|
<tr><td class="title" align="center" colspan="4"><B>{ORACLE_HELP_DETAIL}</B></td></tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="cellmenu1" nowrap>{LN_ORACLE_SOURCENAME}</td>
|
||||||
|
<td class="cellmenu1" width="100" nowrap align="center">{LN_ORACLE_FIELD} '{LN_FIELDS_MESSAGE}'</td>
|
||||||
|
<td class="cellmenu1" width="100" nowrap align="center">{LN_ORACLE_FIELD} '{LN_FIELDS_HOST}'</td>
|
||||||
|
<td class="cellmenu1" width="100%"> </td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<!-- BEGIN HelpLinks -->
|
<!-- BEGIN HelpLinks -->
|
||||||
<tr>
|
<tr>
|
||||||
<td class="cellmenu2" nowrap>{SourceName}</td>
|
<td class="cellmenu2" nowrap>{SourceName}</td>
|
||||||
<td class="{cssclass}" width="50%">
|
<td class="{cssclass}" align="center">
|
||||||
<a href="{MsgUrl}" target="_top">
|
<a href="{MsgUrl}" target="_top">
|
||||||
<img src="{MENU_EARTH_FIND}" align="middle" width="16" height="16">
|
<img src="{MENU_FIND}" align="middle" width="16" height="16">
|
||||||
{MsgDisplayName}
|
{LN_ORACLE_SEARCH}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="{cssclass}" width="50%">
|
<td class="{cssclass}" align="center">
|
||||||
<a href="{SourceUrl}" target="_top">
|
<a href="{SourceUrl}" target="_top">
|
||||||
<img src="{MENU_EARTH_FIND}" align="middle" width="16" height="16">
|
<img src="{MENU_FIND}" align="middle" width="16" height="16">
|
||||||
{SourceDisplayName}
|
{LN_ORACLE_SEARCH}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
<td class="{cssclass}"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user