mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 03:09:21 +02:00
Merge branch 'detailview'
This commit is contained in:
commit
ebef4191c8
@ -313,6 +313,33 @@ abstract class LogStream {
|
|||||||
}
|
}
|
||||||
// ---
|
// ---
|
||||||
break;
|
break;
|
||||||
|
case "messagetype":
|
||||||
|
$tmpKeyName = SYSLOG_MESSAGETYPE;
|
||||||
|
$tmpFilterType = FILTER_TYPE_NUMBER;
|
||||||
|
// --- Extra Check to convert string representations into numbers!
|
||||||
|
if ( isset($tmpValues) )
|
||||||
|
{
|
||||||
|
foreach( $tmpValues as $mykey => $szValue )
|
||||||
|
{
|
||||||
|
if ( !is_numeric($szValue) )
|
||||||
|
{
|
||||||
|
$tmpMsgTypeCode = $this->ConvertMessageTypeString($szValue);
|
||||||
|
if ( $tmpMsgTypeCode != -1 )
|
||||||
|
$tmpValues[$mykey] = $tmpMsgTypeCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ( !is_numeric($tmpArray[FILTER_TMP_VALUE]) )
|
||||||
|
{
|
||||||
|
$tmpMsgTypeCode = $this->ConvertMessageTypeString($tmpArray[FILTER_TMP_VALUE]);
|
||||||
|
if ( $tmpMsgTypeCode != -1 )
|
||||||
|
$tmpArray[FILTER_TMP_VALUE] = $tmpMsgTypeCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// ---
|
||||||
|
break;
|
||||||
case "syslogtag":
|
case "syslogtag":
|
||||||
$tmpKeyName = SYSLOG_SYSLOGTAG;
|
$tmpKeyName = SYSLOG_SYSLOGTAG;
|
||||||
$tmpFilterType = FILTER_TYPE_STRING;
|
$tmpFilterType = FILTER_TYPE_STRING;
|
||||||
@ -470,6 +497,24 @@ abstract class LogStream {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Helper function to convert a messagetype string into a messagetype number
|
||||||
|
*/
|
||||||
|
private function ConvertMessageTypeString($szValue)
|
||||||
|
{
|
||||||
|
global $content;
|
||||||
|
|
||||||
|
foreach ( $content['filter_messagetype_list'] as $mymsgtype )
|
||||||
|
{
|
||||||
|
if ( stripos( $mymsgtype['DisplayName'], $szValue) !== false )
|
||||||
|
return $mymsgtype['ID'];
|
||||||
|
}
|
||||||
|
|
||||||
|
// reached here means we failed to convert the facility!
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -47,6 +47,7 @@ class LogStreamConfigDB extends LogStreamConfig {
|
|||||||
public $DBType = DB_MYSQL; // Default = MYSQL!
|
public $DBType = DB_MYSQL; // Default = MYSQL!
|
||||||
public $DBTableType = 'winsyslog'; // Default = WINSYSLOG DB Layout!
|
public $DBTableType = 'winsyslog'; // Default = WINSYSLOG DB Layout!
|
||||||
public $DBTableName = 'systemevents'; // Default Tabelname from WINSYSLOG
|
public $DBTableName = 'systemevents'; // Default Tabelname from WINSYSLOG
|
||||||
|
public $DBEnableRowCounting = true; // Default RowCounting is enabled!
|
||||||
|
|
||||||
// Runtime configuration variables
|
// Runtime configuration variables
|
||||||
public $RecordsPerQuery = 100; // This will determine how to limit sql statements
|
public $RecordsPerQuery = 100; // This will determine how to limit sql statements
|
||||||
|
@ -112,12 +112,6 @@ class LogStreamDB extends LogStream {
|
|||||||
// Create SQL Where Clause first!
|
// Create SQL Where Clause first!
|
||||||
$this->CreateSQLWhereClause();
|
$this->CreateSQLWhereClause();
|
||||||
|
|
||||||
// Obtain count of records
|
|
||||||
$this->_totalRecordCount = $this->GetRowCountFromTable();
|
|
||||||
|
|
||||||
if ( $this->_totalRecordCount <= 0 )
|
|
||||||
return ERROR_NOMORERECORDS;
|
|
||||||
|
|
||||||
// Success, this means we init the Pagenumber to ONE!
|
// Success, this means we init the Pagenumber to ONE!
|
||||||
$this->_currentPageNumber = 1;
|
$this->_currentPageNumber = 1;
|
||||||
|
|
||||||
@ -275,7 +269,13 @@ class LogStreamDB extends LogStream {
|
|||||||
$bFound = false;
|
$bFound = false;
|
||||||
$tmpuID = $uID;
|
$tmpuID = $uID;
|
||||||
$ret = ERROR_NOMORERECORDS; // Set Default error code!
|
$ret = ERROR_NOMORERECORDS; // Set Default error code!
|
||||||
$totalpages = intval($this->_totalRecordCount / $this->_logStreamConfigObj->_pageCount);
|
|
||||||
|
// Set totalpages number if available
|
||||||
|
if ( $this->_totalRecordCount != -1 )
|
||||||
|
$totalpages = intval($this->_totalRecordCount / $this->_logStreamConfigObj->_pageCount);
|
||||||
|
else
|
||||||
|
$totalpages = 1;
|
||||||
|
|
||||||
while( $bFound == false && $this->ReadNextIDsFromDB() == SUCCESS )
|
while( $bFound == false && $this->ReadNextIDsFromDB() == SUCCESS )
|
||||||
{
|
{
|
||||||
foreach ( $this->bufferedRecords as $myRecord )
|
foreach ( $this->bufferedRecords as $myRecord )
|
||||||
@ -602,6 +602,15 @@ class LogStreamDB extends LogStream {
|
|||||||
// Free Query ressources
|
// Free Query ressources
|
||||||
mysql_free_result ($myquery);
|
mysql_free_result ($myquery);
|
||||||
|
|
||||||
|
// Only obtain count if enabled and not done before
|
||||||
|
if ( $this->_logStreamConfigObj->DBEnableRowCounting && $this->_totalRecordCount == -1 )
|
||||||
|
{
|
||||||
|
$this->_totalRecordCount = $this->GetRowCountFromTable();
|
||||||
|
|
||||||
|
if ( $this->_totalRecordCount <= 0 )
|
||||||
|
return ERROR_NOMORERECORDS;
|
||||||
|
}
|
||||||
|
|
||||||
// Increment for the Footer Stats
|
// Increment for the Footer Stats
|
||||||
$querycount++;
|
$querycount++;
|
||||||
|
|
||||||
@ -641,6 +650,15 @@ class LogStreamDB extends LogStream {
|
|||||||
// Free Query ressources
|
// Free Query ressources
|
||||||
mysql_free_result ($myquery);
|
mysql_free_result ($myquery);
|
||||||
|
|
||||||
|
// Only obtain count if enabled and not done before
|
||||||
|
if ( $this->_logStreamConfigObj->DBEnableRowCounting && $this->_totalRecordCount == -1 )
|
||||||
|
{
|
||||||
|
$this->_totalRecordCount = $this->GetRowCountFromTable();
|
||||||
|
|
||||||
|
if ( $this->_totalRecordCount <= 0 )
|
||||||
|
return ERROR_NOMORERECORDS;
|
||||||
|
}
|
||||||
|
|
||||||
// Increment for the Footer Stats
|
// Increment for the Footer Stats
|
||||||
$querycount++;
|
$querycount++;
|
||||||
|
|
||||||
@ -659,8 +677,13 @@ class LogStreamDB extends LogStream {
|
|||||||
$szTableType = $this->_logStreamConfigObj->DBTableType;
|
$szTableType = $this->_logStreamConfigObj->DBTableType;
|
||||||
$szSortColumn = $this->_logStreamConfigObj->SortColumn;
|
$szSortColumn = $this->_logStreamConfigObj->SortColumn;
|
||||||
|
|
||||||
// Create SQL String
|
// Create Basic SQL String
|
||||||
$sqlString = "SELECT " . $dbmapping[$szTableType][SYSLOG_UID];
|
if ( $this->_logStreamConfigObj->DBEnableRowCounting ) // with SQL_CALC_FOUND_ROWS
|
||||||
|
$sqlString = "SELECT SQL_CALC_FOUND_ROWS " . $dbmapping[$szTableType][SYSLOG_UID];
|
||||||
|
else // without row calc
|
||||||
|
$sqlString = "SELECT " . $dbmapping[$szTableType][SYSLOG_UID];
|
||||||
|
|
||||||
|
// Append fields if needed
|
||||||
if ( $includeFields && $this->_arrProperties != null )
|
if ( $includeFields && $this->_arrProperties != null )
|
||||||
{
|
{
|
||||||
// Loop through all requested fields
|
// Loop through all requested fields
|
||||||
@ -758,9 +781,24 @@ class LogStreamDB extends LogStream {
|
|||||||
*/
|
*/
|
||||||
private function GetRowCountFromTable()
|
private function GetRowCountFromTable()
|
||||||
{
|
{
|
||||||
|
if ( $myquery = mysql_query("Select FOUND_ROWS();", $this->_dbhandle) )
|
||||||
|
{
|
||||||
|
// Get first and only row!
|
||||||
|
$myRow = mysql_fetch_array($myquery);
|
||||||
|
|
||||||
|
// copy row count
|
||||||
|
$numRows = $myRow[0];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
$numRows = -1;
|
||||||
|
|
||||||
|
// return result!
|
||||||
|
return $numRows;
|
||||||
|
|
||||||
|
/* OLD slow code!
|
||||||
global $dbmapping,$querycount;
|
global $dbmapping,$querycount;
|
||||||
$szTableType = $this->_logStreamConfigObj->DBTableType;
|
$szTableType = $this->_logStreamConfigObj->DBTableType;
|
||||||
|
|
||||||
// Create Statement and perform query!
|
// Create Statement and perform query!
|
||||||
$szSql = "SELECT count(" . $dbmapping[$szTableType][SYSLOG_UID] . ") FROM " . $this->_logStreamConfigObj->DBTableName . $this->_SQLwhereClause;
|
$szSql = "SELECT count(" . $dbmapping[$szTableType][SYSLOG_UID] . ") FROM " . $this->_logStreamConfigObj->DBTableName . $this->_SQLwhereClause;
|
||||||
if ($myQuery = mysql_query($szSql, $this->_dbhandle))
|
if ($myQuery = mysql_query($szSql, $this->_dbhandle))
|
||||||
@ -777,9 +815,7 @@ class LogStreamDB extends LogStream {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
$numRows = -1;
|
$numRows = -1;
|
||||||
|
*/
|
||||||
// return result!
|
|
||||||
return $numRows;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
.SelectSavedFilter
|
.SelectSavedFilter
|
||||||
{
|
{
|
||||||
margin-top: 3px;
|
margin-top: 2px;
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
border-color: #233B51 #124A7C #124A7C #233B51;
|
border-color: #233B51 #124A7C #124A7C #233B51;
|
||||||
}
|
}
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 2px 3px;
|
padding: 1px 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu h2 {
|
#menu h2 {
|
||||||
font: bold 11px/16px;
|
font: bold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,22 +33,27 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#menu li {
|
#menu li {
|
||||||
z-index:10;
|
|
||||||
/* make the list elements a containing block for the nested lists */
|
/* make the list elements a containing block for the nested lists */
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu ul ul {
|
#menu ul ul {
|
||||||
|
z-index:10;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 16px;
|
top: 12px;
|
||||||
left: 0px; /* to position them to the right of their containing block */
|
left: 4px; /* to position them to the right of their containing block */
|
||||||
width: 300; /* width is based on the containing block */
|
width: 350; /* width is based on the containing block */
|
||||||
}
|
}
|
||||||
|
|
||||||
div#menu ul ul,
|
div#menu ul ul,
|
||||||
div#menu ul li:hover ul ul
|
div#menu ul li:hover ul ul
|
||||||
{display: none;}
|
{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
div#menu ul li:hover ul,
|
div#menu ul li:hover ul,
|
||||||
div#menu ul ul li:hover ul
|
div#menu ul ul li:hover ul
|
||||||
{display: block;}
|
{
|
||||||
|
display: block;
|
||||||
|
}
|
BIN
src/images/icons/bullet_ball_glass_blue.png
Normal file
BIN
src/images/icons/bullet_ball_glass_blue.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 661 B |
BIN
src/images/icons/bullet_ball_glass_green.png
Normal file
BIN
src/images/icons/bullet_ball_glass_green.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 673 B |
BIN
src/images/icons/bullet_ball_glass_grey.png
Normal file
BIN
src/images/icons/bullet_ball_glass_grey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 643 B |
BIN
src/images/icons/bullet_ball_glass_red.png
Normal file
BIN
src/images/icons/bullet_ball_glass_red.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 649 B |
BIN
src/images/icons/bullet_ball_glass_yellow.png
Normal file
BIN
src/images/icons/bullet_ball_glass_yellow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 666 B |
@ -105,8 +105,9 @@ $content['filter_severity_list'][] = array( "ID" => SYSLOG_DEBUG, "DisplayName"
|
|||||||
// ---
|
// ---
|
||||||
|
|
||||||
// Init MessageType LIST
|
// Init MessageType LIST
|
||||||
$content['filter_messagetype_list'][] = array( "ID" => IUT_Unknown, "DisplayName" => "Unknown", "selected" => "" );
|
//$content['filter_messagetype_list'][] = array( "ID" => IUT_Unknown, "DisplayName" => "Unknown", "selected" => "" );
|
||||||
$content['filter_messagetype_list'][] = array( "ID" => IUT_Syslog, "DisplayName" => "Syslog", "selected" => "" );
|
$content['filter_messagetype_list'][] = array( "ID" => IUT_Syslog, "DisplayName" => "Syslog", "selected" => "" );
|
||||||
$content['filter_messagetype_list'][] = array( "ID" => IUT_NT_EventReport, "DisplayName" => "EventReporter", "selected" => "" );
|
$content['filter_messagetype_list'][] = array( "ID" => IUT_NT_EventReport, "DisplayName" => "WinEventLog", "selected" => "" );
|
||||||
|
$content['filter_messagetype_list'][] = array( "ID" => IUT_File_Monitor, "DisplayName" => "File Monitor", "selected" => "" );
|
||||||
|
|
||||||
?>
|
?>
|
@ -89,7 +89,7 @@ $fields[SYSLOG_HOST]['FieldCaptionID'] = 'LN_FIELDS_HOST';
|
|||||||
$fields[SYSLOG_HOST]['FieldType'] = FILTER_TYPE_STRING;
|
$fields[SYSLOG_HOST]['FieldType'] = FILTER_TYPE_STRING;
|
||||||
$fields[SYSLOG_HOST]['Sortable'] = true;
|
$fields[SYSLOG_HOST]['Sortable'] = true;
|
||||||
$fields[SYSLOG_HOST]['DefaultWidth'] = "80";
|
$fields[SYSLOG_HOST]['DefaultWidth'] = "80";
|
||||||
$fields[SYSLOG_HOST]['FieldAlign'] = "center";
|
$fields[SYSLOG_HOST]['FieldAlign'] = "left";
|
||||||
$fields[SYSLOG_MESSAGETYPE]['FieldID'] = SYSLOG_MESSAGETYPE;
|
$fields[SYSLOG_MESSAGETYPE]['FieldID'] = SYSLOG_MESSAGETYPE;
|
||||||
$fields[SYSLOG_MESSAGETYPE]['FieldCaptionID'] = 'LN_FIELDS_MESSAGETYPE';
|
$fields[SYSLOG_MESSAGETYPE]['FieldCaptionID'] = 'LN_FIELDS_MESSAGETYPE';
|
||||||
$fields[SYSLOG_MESSAGETYPE]['FieldType'] = FILTER_TYPE_NUMBER;
|
$fields[SYSLOG_MESSAGETYPE]['FieldType'] = FILTER_TYPE_NUMBER;
|
||||||
@ -115,7 +115,7 @@ $fields[SYSLOG_SYSLOGTAG]['FieldCaptionID'] = 'LN_FIELDS_SYSLOGTAG';
|
|||||||
$fields[SYSLOG_SYSLOGTAG]['FieldType'] = FILTER_TYPE_STRING;
|
$fields[SYSLOG_SYSLOGTAG]['FieldType'] = FILTER_TYPE_STRING;
|
||||||
$fields[SYSLOG_SYSLOGTAG]['Sortable'] = true;
|
$fields[SYSLOG_SYSLOGTAG]['Sortable'] = true;
|
||||||
$fields[SYSLOG_SYSLOGTAG]['DefaultWidth'] = "85";
|
$fields[SYSLOG_SYSLOGTAG]['DefaultWidth'] = "85";
|
||||||
$fields[SYSLOG_SYSLOGTAG]['FieldAlign'] = "center";
|
$fields[SYSLOG_SYSLOGTAG]['FieldAlign'] = "left";
|
||||||
$fields[SYSLOG_PROCESSID]['FieldID'] = SYSLOG_PROCESSID;
|
$fields[SYSLOG_PROCESSID]['FieldID'] = SYSLOG_PROCESSID;
|
||||||
$fields[SYSLOG_PROCESSID]['FieldCaptionID'] = 'LN_FIELDS_PROCESSID';
|
$fields[SYSLOG_PROCESSID]['FieldCaptionID'] = 'LN_FIELDS_PROCESSID';
|
||||||
$fields[SYSLOG_PROCESSID]['FieldType'] = FILTER_TYPE_NUMBER;
|
$fields[SYSLOG_PROCESSID]['FieldType'] = FILTER_TYPE_NUMBER;
|
||||||
|
@ -183,6 +183,9 @@ function InitPhpLogCon()
|
|||||||
// Init Predefined Searches List
|
// Init Predefined Searches List
|
||||||
CreatePredefinedSearches();
|
CreatePredefinedSearches();
|
||||||
|
|
||||||
|
// Init predefined paging sizes
|
||||||
|
CreatePagesizesList();
|
||||||
|
|
||||||
// --- Enable PHP Debug Mode
|
// --- Enable PHP Debug Mode
|
||||||
InitPhpDebugMode();
|
InitPhpDebugMode();
|
||||||
// ---
|
// ---
|
||||||
@ -241,6 +244,25 @@ function CreateDBTypesList( $selectedDBType )
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function CreatePagesizesList()
|
||||||
|
{
|
||||||
|
global $CFG, $content;
|
||||||
|
|
||||||
|
$content['pagesizes'][0] = array( "ID" => 0, "Selected" => "", "DisplayName" => $content['LN_GEN_PRECONFIGURED'] . " (" . $CFG['ViewEntriesPerPage'] . ")", "Value" => $CFG['ViewEntriesPerPage'] );
|
||||||
|
$content['pagesizes'][1] = array( "ID" => 1, "Selected" => "", "DisplayName" => " 25 " . $content['LN_GEN_RECORDSPERPAGE'], "Value" => 25 );
|
||||||
|
$content['pagesizes'][2] = array( "ID" => 2, "Selected" => "", "DisplayName" => " 50 " . $content['LN_GEN_RECORDSPERPAGE'], "Value" => 50 );
|
||||||
|
$content['pagesizes'][3] = array( "ID" => 3, "Selected" => "", "DisplayName" => " 75 " . $content['LN_GEN_RECORDSPERPAGE'], "Value" => 75 );
|
||||||
|
$content['pagesizes'][4] = array( "ID" => 4, "Selected" => "", "DisplayName" => " 100 " . $content['LN_GEN_RECORDSPERPAGE'], "Value" => 100 );
|
||||||
|
$content['pagesizes'][5] = array( "ID" => 5, "Selected" => "", "DisplayName" => " 250 " . $content['LN_GEN_RECORDSPERPAGE'], "Value" => 250 );
|
||||||
|
$content['pagesizes'][6] = array( "ID" => 6, "Selected" => "", "DisplayName" => " 500 " . $content['LN_GEN_RECORDSPERPAGE'], "Value" => 500 );
|
||||||
|
|
||||||
|
// Set default selected pagesize
|
||||||
|
$content['pagesizes'][ $_SESSION['PAGESIZE_ID'] ]["Selected"] = "selected";
|
||||||
|
|
||||||
|
// The content variable will now contain the user selected oaging size
|
||||||
|
$content["ViewEntriesPerPage"] = $content['pagesizes'][ $_SESSION['PAGESIZE_ID'] ]["Value"];
|
||||||
|
}
|
||||||
|
|
||||||
function CreatePredefinedSearches()
|
function CreatePredefinedSearches()
|
||||||
{
|
{
|
||||||
global $CFG, $content;
|
global $CFG, $content;
|
||||||
@ -316,17 +338,20 @@ function InitFrontEndVariables()
|
|||||||
{
|
{
|
||||||
global $content;
|
global $content;
|
||||||
|
|
||||||
$content['MENU_FOLDER_OPEN'] = "image=" . $content['BASEPATH'] . "images/icons/folder_closed.png";
|
$content['MENU_FOLDER_OPEN'] = $content['BASEPATH'] . "images/icons/folder_closed.png";
|
||||||
$content['MENU_FOLDER_CLOSED'] = "overimage=" . $content['BASEPATH'] . "images/icons/folder.png";
|
$content['MENU_FOLDER_CLOSED'] = $content['BASEPATH'] . "images/icons/folder.png";
|
||||||
$content['MENU_HOMEPAGE'] = "image=" . $content['BASEPATH'] . "images/icons/home.png";
|
$content['MENU_HOMEPAGE'] = $content['BASEPATH'] . "images/icons/home.png";
|
||||||
$content['MENU_LINK'] = "image=" . $content['BASEPATH'] . "images/icons/link.png";
|
$content['MENU_LINK'] = $content['BASEPATH'] . "images/icons/link.png";
|
||||||
$content['MENU_PREFERENCES'] = "image=" . $content['BASEPATH'] . "images/icons/preferences.png";
|
$content['MENU_LINK_VIEW'] = $content['BASEPATH'] . "images/icons/link_view.png";
|
||||||
$content['MENU_ADMINENTRY'] = "image=" . $content['BASEPATH'] . "images/icons/star_blue.png";
|
$content['MENU_VIEW'] = $content['BASEPATH'] . "images/icons/view.png";
|
||||||
$content['MENU_ADMINLOGOFF'] = "image=" . $content['BASEPATH'] . "images/icons/exit.png";
|
$content['MENU_PREFERENCES'] = $content['BASEPATH'] . "images/icons/preferences.png";
|
||||||
$content['MENU_ADMINUSERS'] = "image=" . $content['BASEPATH'] . "images/icons/businessmen.png";
|
$content['MENU_ADMINENTRY'] = $content['BASEPATH'] . "images/icons/star_blue.png";
|
||||||
$content['MENU_SEARCH'] = "image=" . $content['BASEPATH'] . "images/icons/view.png";
|
$content['MENU_ADMINLOGOFF'] = $content['BASEPATH'] . "images/icons/exit.png";
|
||||||
$content['MENU_SELECTION_DISABLED'] = "image=" . $content['BASEPATH'] . "images/icons/selection.png";
|
$content['MENU_ADMINUSERS'] = $content['BASEPATH'] . "images/icons/businessmen.png";
|
||||||
$content['MENU_SELECTION_ENABLED'] = "image=" . $content['BASEPATH'] . "images/icons/selection_delete.png";
|
$content['MENU_SEARCH'] = $content['BASEPATH'] . "images/icons/view.png";
|
||||||
|
$content['MENU_SELECTION_DISABLED'] = $content['BASEPATH'] . "images/icons/selection.png";
|
||||||
|
$content['MENU_SELECTION_ENABLED'] = $content['BASEPATH'] . "images/icons/selection_delete.png";
|
||||||
|
$content['MENU_TEXT_FIND'] = $content['BASEPATH'] . "images/icons/text_find.png";
|
||||||
|
|
||||||
$content['MENU_PAGER_BEGIN'] = $content['BASEPATH'] . "images/icons/media_beginning.png";
|
$content['MENU_PAGER_BEGIN'] = $content['BASEPATH'] . "images/icons/media_beginning.png";
|
||||||
$content['MENU_PAGER_PREVIOUS'] = $content['BASEPATH'] . "images/icons/media_rewind.png";
|
$content['MENU_PAGER_PREVIOUS'] = $content['BASEPATH'] . "images/icons/media_rewind.png";
|
||||||
@ -336,11 +361,16 @@ function InitFrontEndVariables()
|
|||||||
$content['MENU_NAV_RIGHT'] = $content['BASEPATH'] . "images/icons/navigate_right.png";
|
$content['MENU_NAV_RIGHT'] = $content['BASEPATH'] . "images/icons/navigate_right.png";
|
||||||
$content['MENU_NAV_CLOSE'] = $content['BASEPATH'] . "images/icons/navigate_close.png";
|
$content['MENU_NAV_CLOSE'] = $content['BASEPATH'] . "images/icons/navigate_close.png";
|
||||||
$content['MENU_NAV_OPEN'] = $content['BASEPATH'] . "images/icons/navigate_open.png";
|
$content['MENU_NAV_OPEN'] = $content['BASEPATH'] . "images/icons/navigate_open.png";
|
||||||
|
|
||||||
$content['MENU_PAGER_BEGIN_GREY'] = $content['BASEPATH'] . "images/icons/grey/media_beginning.png";
|
$content['MENU_PAGER_BEGIN_GREY'] = $content['BASEPATH'] . "images/icons/grey/media_beginning.png";
|
||||||
$content['MENU_PAGER_PREVIOUS_GREY'] = $content['BASEPATH'] . "images/icons/grey/media_rewind.png";
|
$content['MENU_PAGER_PREVIOUS_GREY'] = $content['BASEPATH'] . "images/icons/grey/media_rewind.png";
|
||||||
$content['MENU_PAGER_NEXT_GREY'] = $content['BASEPATH'] . "images/icons/grey/media_fast_forward.png";
|
$content['MENU_PAGER_NEXT_GREY'] = $content['BASEPATH'] . "images/icons/grey/media_fast_forward.png";
|
||||||
$content['MENU_PAGER_END_GREY'] = $content['BASEPATH'] . "images/icons/grey/media_end.png";
|
$content['MENU_PAGER_END_GREY'] = $content['BASEPATH'] . "images/icons/grey/media_end.png";
|
||||||
|
|
||||||
|
$content['MENU_BULLET_BLUE'] = $content['BASEPATH'] . "images/icons/bullet_ball_glass_blue.png";
|
||||||
|
$content['MENU_BULLET_GREEN'] = $content['BASEPATH'] . "images/icons/bullet_ball_glass_green.png";
|
||||||
|
$content['MENU_BULLET_RED'] = $content['BASEPATH'] . "images/icons/bullet_ball_glass_red.png";
|
||||||
|
$content['MENU_BULLET_YELLOW'] = $content['BASEPATH'] . "images/icons/bullet_ball_glass_yellow.png";
|
||||||
|
$content['MENU_BULLET_GREY'] = $content['BASEPATH'] . "images/icons/bullet_ball_glass_grey.png";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lang Helper for Strings with ONE variable
|
// Lang Helper for Strings with ONE variable
|
||||||
@ -412,6 +442,13 @@ function InitConfigurationValues()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Paging Size handling!
|
||||||
|
if ( !isset($_SESSION['PAGESIZE_ID']) )
|
||||||
|
{
|
||||||
|
// Default is 0!
|
||||||
|
$_SESSION['PAGESIZE_ID'] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Theme Handling
|
// Theme Handling
|
||||||
if ( !isset($content['web_theme']) ) { $content['web_theme'] = $CFG['ViewDefaultTheme'] /*"default"*/; }
|
if ( !isset($content['web_theme']) ) { $content['web_theme'] = $CFG['ViewDefaultTheme'] /*"default"*/; }
|
||||||
if ( isset($_SESSION['CUSTOM_THEME']) && VerifyTheme($_SESSION['CUSTOM_THEME']) )
|
if ( isset($_SESSION['CUSTOM_THEME']) && VerifyTheme($_SESSION['CUSTOM_THEME']) )
|
||||||
|
@ -98,6 +98,7 @@
|
|||||||
if ( isset($mysource['DBPort']) ) { $content['Sources'][$iSourceID]['ObjRef']->DBPort = $mysource['DBPort']; }
|
if ( isset($mysource['DBPort']) ) { $content['Sources'][$iSourceID]['ObjRef']->DBPort = $mysource['DBPort']; }
|
||||||
if ( isset($mysource['DBUser']) ) { $content['Sources'][$iSourceID]['ObjRef']->DBUser = $mysource['DBUser']; }
|
if ( isset($mysource['DBUser']) ) { $content['Sources'][$iSourceID]['ObjRef']->DBUser = $mysource['DBUser']; }
|
||||||
if ( isset($mysource['DBPassword']) ) { $content['Sources'][$iSourceID]['ObjRef']->DBPassword = $mysource['DBPassword']; }
|
if ( isset($mysource['DBPassword']) ) { $content['Sources'][$iSourceID]['ObjRef']->DBPassword = $mysource['DBPassword']; }
|
||||||
|
if ( isset($mysource['DBEnableRowCounting']) ) { $content['Sources'][$iSourceID]['ObjRef']->DBEnableRowCounting = $mysource['DBEnableRowCounting']; }
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -150,27 +150,25 @@ function InitFilterHelpers()
|
|||||||
if ( $filters['filter_lastx_default'] == DATE_LASTX_31DAYS ) { $content['filter_daterange_last_x_list'][4]['selected'] = "selected"; } else { $content['filter_daterange_last_x_list'][4]['selected'] = ""; }
|
if ( $filters['filter_lastx_default'] == DATE_LASTX_31DAYS ) { $content['filter_daterange_last_x_list'][4]['selected'] = "selected"; } else { $content['filter_daterange_last_x_list'][4]['selected'] = ""; }
|
||||||
// ---
|
// ---
|
||||||
|
|
||||||
// Init Default Syslog Facility from SESSION!
|
// --- Init Default Syslog Facility from SESSION!
|
||||||
if ( isset($_SESSION['filter_facility']) )
|
if ( isset($_SESSION['filter_facility']) )
|
||||||
$filters['filter_facility'] = intval($_SESSION['filter_facility']);
|
$filters['filter_facility'] = intval($_SESSION['filter_facility']);
|
||||||
else
|
else
|
||||||
$filters['filter_facility'] = array ( SYSLOG_KERN, SYSLOG_USER, SYSLOG_MAIL, SYSLOG_DAEMON, SYSLOG_AUTH, SYSLOG_SYSLOG, SYSLOG_LPR, SYSLOG_NEWS, SYSLOG_UUCP, SYSLOG_CRON, SYSLOG_LOCAL0, SYSLOG_LOCAL1, SYSLOG_LOCAL2, SYSLOG_LOCAL3, SYSLOG_LOCAL4, SYSLOG_LOCAL5, SYSLOG_LOCAL6, SYSLOG_LOCAL7 );
|
$filters['filter_facility'] = array ( SYSLOG_KERN, SYSLOG_USER, SYSLOG_MAIL, SYSLOG_DAEMON, SYSLOG_AUTH, SYSLOG_SYSLOG, SYSLOG_LPR, SYSLOG_NEWS, SYSLOG_UUCP, SYSLOG_CRON, SYSLOG_SECURITY, SYSLOG_FTP, SYSLOG_NTP, SYSLOG_LOGAUDIT, SYSLOG_LOGALERT, SYSLOG_CLOCK, SYSLOG_LOCAL0, SYSLOG_LOCAL1, SYSLOG_LOCAL2, SYSLOG_LOCAL3, SYSLOG_LOCAL4, SYSLOG_LOCAL5, SYSLOG_LOCAL6, SYSLOG_LOCAL7 );
|
||||||
// $filters['filter_facility'] = SYSLOG_LOCAL0;
|
|
||||||
|
|
||||||
$iCount = count($content['filter_facility_list']);
|
$iCount = count($content['filter_facility_list']);
|
||||||
for ( $i = 0; $i < $iCount; $i++ )
|
for ( $i = 0; $i < $iCount; $i++ )
|
||||||
{
|
{
|
||||||
// echo $content['filter_facility_list'][$i]["ID"] . "-" . $filters['filter_facility'] . "<br>";
|
|
||||||
if ( in_array($content['filter_facility_list'][$i]["ID"], $filters['filter_facility']) )
|
if ( in_array($content['filter_facility_list'][$i]["ID"], $filters['filter_facility']) )
|
||||||
$content['filter_facility_list'][$i]["selected"] = "selected";
|
$content['filter_facility_list'][$i]["selected"] = "selected";
|
||||||
}
|
}
|
||||||
|
// ---
|
||||||
|
|
||||||
// Init Default Syslog Severity from SESSION!
|
// --- Init Default Syslog Severity from SESSION!
|
||||||
if ( isset($_SESSION['filter_severity']) )
|
if ( isset($_SESSION['filter_severity']) )
|
||||||
$filters['filter_severity'] = intval($_SESSION['filter_severity']);
|
$filters['filter_severity'] = intval($_SESSION['filter_severity']);
|
||||||
else
|
else
|
||||||
$filters['filter_severity'] = array ( SYSLOG_EMERG, SYSLOG_ALERT, SYSLOG_CRIT, SYSLOG_ERR, SYSLOG_WARNING, SYSLOG_NOTICE, SYSLOG_INFO, SYSLOG_DEBUG );
|
$filters['filter_severity'] = array ( SYSLOG_EMERG, SYSLOG_ALERT, SYSLOG_CRIT, SYSLOG_ERR, SYSLOG_WARNING, SYSLOG_NOTICE, SYSLOG_INFO, SYSLOG_DEBUG );
|
||||||
// $filters['filter_severity'] = SYSLOG_NOTICE;
|
|
||||||
|
|
||||||
$iCount = count($content['filter_severity_list']);
|
$iCount = count($content['filter_severity_list']);
|
||||||
for ( $i = 0; $i < $iCount; $i++ )
|
for ( $i = 0; $i < $iCount; $i++ )
|
||||||
@ -178,6 +176,21 @@ function InitFilterHelpers()
|
|||||||
if ( in_array( $content['filter_severity_list'][$i]["ID"], $filters['filter_severity']) )
|
if ( in_array( $content['filter_severity_list'][$i]["ID"], $filters['filter_severity']) )
|
||||||
$content['filter_severity_list'][$i]["selected"] = "selected";
|
$content['filter_severity_list'][$i]["selected"] = "selected";
|
||||||
}
|
}
|
||||||
|
// ---
|
||||||
|
|
||||||
|
// --- Init Default Message Type from SESSION!
|
||||||
|
if ( isset($_SESSION['filter_messagetype']) )
|
||||||
|
$filters['filter_messagetype'] = intval($_SESSION['filter_messagetype']);
|
||||||
|
else
|
||||||
|
$filters['filter_messagetype'] = array ( IUT_Syslog, IUT_NT_EventReport, IUT_File_Monitor );
|
||||||
|
|
||||||
|
$iCount = count($content['filter_messagetype_list']);
|
||||||
|
for ( $i = 0; $i < $iCount; $i++ )
|
||||||
|
{
|
||||||
|
if ( in_array( $content['filter_messagetype_list'][$i]["ID"], $filters['filter_messagetype']) )
|
||||||
|
$content['filter_messagetype_list'][$i]["selected"] = "selected";
|
||||||
|
}
|
||||||
|
// ---
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -189,6 +189,11 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c
|
|||||||
$content['fields'][$mycolkey]['FieldType'] = $fields[$mycolkey]['FieldType'];
|
$content['fields'][$mycolkey]['FieldType'] = $fields[$mycolkey]['FieldType'];
|
||||||
$content['fields'][$mycolkey]['FieldSortable'] = $stream->IsPropertySortable($mycolkey); // $fields[$mycolkey]['Sortable'];
|
$content['fields'][$mycolkey]['FieldSortable'] = $stream->IsPropertySortable($mycolkey); // $fields[$mycolkey]['Sortable'];
|
||||||
$content['fields'][$mycolkey]['DefaultWidth'] = $fields[$mycolkey]['DefaultWidth'];
|
$content['fields'][$mycolkey]['DefaultWidth'] = $fields[$mycolkey]['DefaultWidth'];
|
||||||
|
|
||||||
|
if ( $mycolkey == SYSLOG_MESSAGE )
|
||||||
|
$content['fields'][$mycolkey]['colspan'] = ''; //' colspan="2" ';
|
||||||
|
else
|
||||||
|
$content['fields'][$mycolkey]['colspan'] = '';
|
||||||
}
|
}
|
||||||
// ---
|
// ---
|
||||||
|
|
||||||
@ -212,14 +217,24 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c
|
|||||||
else
|
else
|
||||||
$ret = $stream->ReadNext($uID, $logArray);
|
$ret = $stream->ReadNext($uID, $logArray);
|
||||||
|
|
||||||
// --- If Forward direction is used, we need to SKIP one entry!
|
// --- Check if Read was successfull!
|
||||||
if ( $ret == SUCCESS && $content['read_direction'] == EnumReadDirection::Forward )
|
if ( $ret == SUCCESS )
|
||||||
{
|
{
|
||||||
// Ok the current ID is our NEXT ID in this reading direction, so we save it!
|
// If Forward direction is used, we need to SKIP one entry!
|
||||||
$content['uid_next'] = $uID;
|
if ( $content['read_direction'] == EnumReadDirection::Forward )
|
||||||
|
{
|
||||||
|
// Ok the current ID is our NEXT ID in this reading direction, so we save it!
|
||||||
|
$content['uid_next'] = $uID;
|
||||||
|
|
||||||
// Skip this entry and move to the next
|
// Skip this entry and move to the next
|
||||||
$stream->ReadNext($uID, $logArray);
|
$stream->ReadNext($uID, $logArray);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// This will disable to Main SyslogView and show an error message
|
||||||
|
$content['syslogmessagesenabled'] = "false";
|
||||||
|
$content['detailederror'] = "No syslog messages found.";
|
||||||
}
|
}
|
||||||
// ---
|
// ---
|
||||||
|
|
||||||
@ -262,9 +277,12 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c
|
|||||||
if ( isset($logArray[$mycolkey]) )
|
if ( isset($logArray[$mycolkey]) )
|
||||||
{
|
{
|
||||||
// Set defaults
|
// Set defaults
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['FieldColumn'] = $mycolkey;
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['uid'] = $uID;
|
||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['FieldAlign'] = $fields[$mycolkey]['FieldAlign'];
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['FieldAlign'] = $fields[$mycolkey]['FieldAlign'];
|
||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldcssclass'] = $content['syslogmessages'][$counter]['cssclass'];
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldcssclass'] = $content['syslogmessages'][$counter]['cssclass'];
|
||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldbgcolor'] = "";
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldbgcolor'] = "";
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['isnowrap'] = "nowrap";
|
||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['hasdetails'] = "false";
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['hasdetails'] = "false";
|
||||||
|
|
||||||
// Set default link
|
// Set default link
|
||||||
@ -295,6 +313,14 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c
|
|||||||
// Use default colour!
|
// Use default colour!
|
||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldbgcolor'] = 'bgcolor="' . $facility_colors[SYSLOG_LOCAL0] . '" ';
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldbgcolor'] = 'bgcolor="' . $facility_colors[SYSLOG_LOCAL0] . '" ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set OnClick Menu for SYSLOG_FACILITY
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['hasbuttons'] = true;
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['buttons'][] = array(
|
||||||
|
'ButtonUrl' => '?filter=facility%3A' . $logArray[$mycolkey] . '&search=Search',
|
||||||
|
'DisplayName' => $content['LN_VIEW_FILTERFOR'] . "'" . GetFacilityDisplayName( $logArray[$mycolkey] ). "'",
|
||||||
|
'IconSource' => $content['MENU_BULLET_BLUE']
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else if ( $mycolkey == SYSLOG_SEVERITY )
|
else if ( $mycolkey == SYSLOG_SEVERITY )
|
||||||
{
|
{
|
||||||
@ -311,6 +337,14 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c
|
|||||||
// Use default colour!
|
// Use default colour!
|
||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldbgcolor'] = 'bgcolor="' . $severity_colors[SYSLOG_INFO] . '" ';
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldbgcolor'] = 'bgcolor="' . $severity_colors[SYSLOG_INFO] . '" ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set OnClick Menu for SYSLOG_FACILITY
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['hasbuttons'] = true;
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['buttons'][] = array(
|
||||||
|
'ButtonUrl' => '?filter=severity%3A' . $logArray[$mycolkey] . '&search=Search',
|
||||||
|
'DisplayName' => $content['LN_VIEW_FILTERFOR'] . "'" . GetSeverityDisplayName( $logArray[$mycolkey] ). "'",
|
||||||
|
'IconSource' => $content['MENU_BULLET_BLUE']
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else if ( $mycolkey == SYSLOG_MESSAGETYPE )
|
else if ( $mycolkey == SYSLOG_MESSAGETYPE )
|
||||||
{
|
{
|
||||||
@ -327,6 +361,14 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c
|
|||||||
// Use default colour!
|
// Use default colour!
|
||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldbgcolor'] = 'bgcolor="' . $msgtype_colors[IUT_Unknown] . '" ';
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldbgcolor'] = 'bgcolor="' . $msgtype_colors[IUT_Unknown] . '" ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set OnClick Menu for SYSLOG_MESSAGETYPE
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['hasbuttons'] = true;
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['buttons'][] = array(
|
||||||
|
'ButtonUrl' => '?filter=messagetype%3A' . $logArray[$mycolkey] . '&search=Search',
|
||||||
|
'DisplayName' => $content['LN_VIEW_FILTERFOR'] . "'" . GetMessageTypeDisplayName( $logArray[$mycolkey] ). "'",
|
||||||
|
'IconSource' => $content['MENU_BULLET_BLUE']
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -338,13 +380,16 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c
|
|||||||
// Special Handling for the Syslog Message!
|
// Special Handling for the Syslog Message!
|
||||||
if ( $mycolkey == SYSLOG_MESSAGE )
|
if ( $mycolkey == SYSLOG_MESSAGE )
|
||||||
{
|
{
|
||||||
|
// No NOWRAP for Syslog Message!
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['isnowrap'] = "";
|
||||||
|
|
||||||
// Set truncasted message for display
|
// Set truncasted message for display
|
||||||
if ( isset($logArray[SYSLOG_MESSAGE]) )
|
if ( isset($logArray[SYSLOG_MESSAGE]) )
|
||||||
{
|
{
|
||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue'] = GetStringWithHTMLCodes(strlen($logArray[SYSLOG_MESSAGE]) > $CFG['ViewMessageCharacterLimit'] ? substr($logArray[SYSLOG_MESSAGE], 0, $CFG['ViewMessageCharacterLimit'] ) . " ..." : $logArray[SYSLOG_MESSAGE]);
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['fieldvalue'] = GetStringWithHTMLCodes(strlen($logArray[SYSLOG_MESSAGE]) > $CFG['ViewMessageCharacterLimit'] ? substr($logArray[SYSLOG_MESSAGE], 0, $CFG['ViewMessageCharacterLimit'] ) . " ..." : $logArray[SYSLOG_MESSAGE]);
|
||||||
|
|
||||||
// Enable LINK property! for this field
|
// Enable LINK property! for this field
|
||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['haslink'] = true;
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['ismessagefield'] = true;
|
||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['detaillink'] = "details.php?uid=" . $uID;
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['detaillink'] = "details.php?uid=" . $uID;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -388,7 +433,40 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c
|
|||||||
$content['syslogmessages'][$counter]['values'][$mycolkey]['messagesdetails'][$myIndex]['detailfieldvalue'] = $myfield['fieldvalue'];
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['messagesdetails'][$myIndex]['detailfieldvalue'] = $myfield['fieldvalue'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( strlen($content['searchstr']) > 0 )
|
||||||
|
{
|
||||||
|
// Set OnClick Menu for SYSLOG_MESSAGE
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['hasbuttons'] = true;
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['hasdropdownbutton'] = true;
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['buttons'][] = array(
|
||||||
|
'ButtonUrl' => '?uid=' . $uID,
|
||||||
|
'DisplayName' => $content['LN_VIEW_MESSAGECENTERED'],
|
||||||
|
'IconSource' => $content['MENU_BULLET_GREEN']
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else if ( $mycolkey == SYSLOG_SYSLOGTAG )
|
||||||
|
{
|
||||||
|
// Set OnClick Menu for SYSLOG_SYSLOGTAG
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['hasbuttons'] = true;
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['buttons'][] = array(
|
||||||
|
'ButtonUrl' => '?filter=syslogtag%3A' . $logArray[$mycolkey] . '&search=Search',
|
||||||
|
'DisplayName' => $content['LN_VIEW_FILTERFOR'] . "'" . $logArray[$mycolkey] . "'",
|
||||||
|
'IconSource' => $content['MENU_BULLET_BLUE']
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else if ( $mycolkey == SYSLOG_HOST )
|
||||||
|
{
|
||||||
|
// Set OnClick Menu for SYSLOG_HOST
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['hasbuttons'] = true;
|
||||||
|
$content['syslogmessages'][$counter]['values'][$mycolkey]['buttons'][] = array(
|
||||||
|
'ButtonUrl' => '?filter=source%3A' . $logArray[$mycolkey] . '&search=Search',
|
||||||
|
'DisplayName' => $content['LN_VIEW_FILTERFOR'] . "'" . $logArray[$mycolkey] . "'",
|
||||||
|
'IconSource' => $content['MENU_BULLET_BLUE']
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -396,11 +474,11 @@ if ( isset($content['Sources'][$currentSourceID]) ) // && $content['Sources'][$c
|
|||||||
|
|
||||||
// Increment Counter
|
// Increment Counter
|
||||||
$counter++;
|
$counter++;
|
||||||
} while ($counter < $CFG['ViewEntriesPerPage'] && ($ret = $stream->ReadNext($uID, $logArray)) == SUCCESS);
|
} while ($counter < $content['ViewEntriesPerPage'] && ($ret = $stream->ReadNext($uID, $logArray)) == SUCCESS);
|
||||||
|
|
||||||
//print_r ( $content['syslogmessages'] );
|
//print_r ( $content['syslogmessages'] );
|
||||||
|
|
||||||
if ( $content['main_recordcount'] == -1 || $content['main_recordcount'] > $CFG['ViewEntriesPerPage'] )
|
if ( $content['main_recordcount'] == -1 || $content['main_recordcount'] > $content['ViewEntriesPerPage'] )
|
||||||
{
|
{
|
||||||
// Enable Pager in any case here!
|
// Enable Pager in any case here!
|
||||||
$content['main_pagerenabled'] = true;
|
$content['main_pagerenabled'] = true;
|
||||||
|
@ -476,6 +476,17 @@ else if ( $content['INSTALL_STEP'] == 7 )
|
|||||||
if ( isset($_SESSION['SourceDBTableName']) ) { $content['SourceDBTableName'] = $_SESSION['SourceDBTableName']; } else { $content['SourceDBTableName'] = "systemevents"; }
|
if ( isset($_SESSION['SourceDBTableName']) ) { $content['SourceDBTableName'] = $_SESSION['SourceDBTableName']; } else { $content['SourceDBTableName'] = "systemevents"; }
|
||||||
if ( isset($_SESSION['SourceDBUser']) ) { $content['SourceDBUser'] = $_SESSION['SourceDBUser']; } else { $content['SourceDBUser'] = "user"; }
|
if ( isset($_SESSION['SourceDBUser']) ) { $content['SourceDBUser'] = $_SESSION['SourceDBUser']; } else { $content['SourceDBUser'] = "user"; }
|
||||||
if ( isset($_SESSION['SourceDBPassword']) ) { $content['SourceDBPassword'] = $_SESSION['SourceDBPassword']; } else { $content['SourceDBPassword'] = ""; }
|
if ( isset($_SESSION['SourceDBPassword']) ) { $content['SourceDBPassword'] = $_SESSION['SourceDBPassword']; } else { $content['SourceDBPassword'] = ""; }
|
||||||
|
if ( isset($_SESSION['SourceDBEnableRowCounting']) ) { $content['SourceDBEnableRowCounting'] = $_SESSION['SourceDBEnableRowCounting']; } else { $content['SourceDBEnableRowCounting'] = "false"; }
|
||||||
|
if ( $content['SourceDBEnableRowCounting'] == "true" )
|
||||||
|
{
|
||||||
|
$content['SourceDBEnableRowCounting_true'] = "checked";
|
||||||
|
$content['SourceDBEnableRowCounting_false'] = "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$content['SourceDBEnableRowCounting_true'] = "";
|
||||||
|
$content['SourceDBEnableRowCounting_false'] = "checked";
|
||||||
|
}
|
||||||
|
|
||||||
// Check for Error Msg
|
// Check for Error Msg
|
||||||
if ( isset($_GET['errormsg']) )
|
if ( isset($_GET['errormsg']) )
|
||||||
@ -550,7 +561,14 @@ else if ( $content['INSTALL_STEP'] == 8 )
|
|||||||
$_SESSION['SourceDBPassword'] = DB_RemoveBadChars($_POST['SourceDBPassword']);
|
$_SESSION['SourceDBPassword'] = DB_RemoveBadChars($_POST['SourceDBPassword']);
|
||||||
else
|
else
|
||||||
$_SESSION['SourceDBPassword'] = "";
|
$_SESSION['SourceDBPassword'] = "";
|
||||||
|
|
||||||
|
if ( isset($_POST['SourceDBEnableRowCounting']) )
|
||||||
|
{
|
||||||
|
$_SESSION['SourceDBEnableRowCounting'] = DB_RemoveBadChars($_POST['SourceDBEnableRowCounting']);
|
||||||
|
if ( $_SESSION['SourceDBEnableRowCounting'] != "true" )
|
||||||
|
$_SESSION['SourceDBEnableRowCounting'] = "false";
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Check database connectivity!
|
// TODO: Check database connectivity!
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -592,6 +610,7 @@ else if ( $content['INSTALL_STEP'] == 8 )
|
|||||||
"\$CFG['Sources']['Source1']['DBUser'] = '" . $_SESSION['SourceDBUser'] . "';\r\n" .
|
"\$CFG['Sources']['Source1']['DBUser'] = '" . $_SESSION['SourceDBUser'] . "';\r\n" .
|
||||||
"\$CFG['Sources']['Source1']['DBPassword'] = '" . $_SESSION['SourceDBPassword'] . "';\r\n" .
|
"\$CFG['Sources']['Source1']['DBPassword'] = '" . $_SESSION['SourceDBPassword'] . "';\r\n" .
|
||||||
"\$CFG['Sources']['Source1']['DBTableName'] = '" . $_SESSION['SourceDBTableName'] . "';\r\n" .
|
"\$CFG['Sources']['Source1']['DBTableName'] = '" . $_SESSION['SourceDBTableName'] . "';\r\n" .
|
||||||
|
"\$CFG['Sources']['Source1']['DBEnableRowCounting'] = " . $_SESSION['SourceDBEnableRowCounting'] . ";\r\n" .
|
||||||
"";
|
"";
|
||||||
}
|
}
|
||||||
$patterns[] = "/\/\/ --- \%Insert Source Here\%/";
|
$patterns[] = "/\/\/ --- \%Insert Source Here\%/";
|
||||||
|
@ -133,4 +133,81 @@ function toggleFormareaVisibility(FormFieldName, FirstHiddenArea, SecondHiddenAr
|
|||||||
hidevisibility(FirstHiddenArea);
|
hidevisibility(FirstHiddenArea);
|
||||||
togglevisibility(SecondHiddenArea);
|
togglevisibility(SecondHiddenArea);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// helper array to keep track of the timeouts!
|
||||||
|
var runningTimeouts = new Array();
|
||||||
|
var defaultMenuTimeout = 1500;
|
||||||
|
/*
|
||||||
|
* Toggle display type from NONE to BLOCK
|
||||||
|
*/
|
||||||
|
function ToggleDisplayTypeById(ObjID)
|
||||||
|
{
|
||||||
|
var obj = document.getElementById(ObjID);
|
||||||
|
if (obj != null)
|
||||||
|
{
|
||||||
|
if (obj.style.display == '' || obj.style.display == 'none')
|
||||||
|
{
|
||||||
|
obj.style.display='block';
|
||||||
|
|
||||||
|
// Set Timeout to make sure the menu disappears
|
||||||
|
ToggleDisplaySetTimeout(ObjID);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
obj.style.display='none';
|
||||||
|
|
||||||
|
// Abort Timeout if set!
|
||||||
|
ToggleDisplayClearTimeout(ObjID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function ToggleDisplaySetTimeout(ObjID)
|
||||||
|
{
|
||||||
|
// Set Timeout
|
||||||
|
var szTimeOut = "ToggleDisplayOffTypeById('" + ObjID + "')";
|
||||||
|
runningTimeouts[ObjID] = window.setTimeout(szTimeOut, defaultMenuTimeout);
|
||||||
|
}
|
||||||
|
|
||||||
|
function ToggleDisplayClearTimeout(ObjID)
|
||||||
|
{
|
||||||
|
// Abort Timeout if set!
|
||||||
|
if ( runningTimeouts[ObjID] != null )
|
||||||
|
{
|
||||||
|
window.clearTimeout(runningTimeouts[ObjID]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function ToggleDisplayEnhanceTimeOut(ObjID)
|
||||||
|
{
|
||||||
|
// First clear timeout
|
||||||
|
ToggleDisplayClearTimeout(ObjID);
|
||||||
|
|
||||||
|
// Set new timeout
|
||||||
|
ToggleDisplaySetTimeout(ObjID);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Make Style sheet display OFF in any case
|
||||||
|
*/
|
||||||
|
function ToggleDisplayOffTypeById(ObjID)
|
||||||
|
{
|
||||||
|
var obj = document.getElementById(ObjID);
|
||||||
|
if (obj != null)
|
||||||
|
{
|
||||||
|
obj.style.display='none';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Debug Helper function to read possible properties of an object
|
||||||
|
*/
|
||||||
|
function DebugShowElementsById(ObjName)
|
||||||
|
{
|
||||||
|
var obj = document.getElementById(ObjName);
|
||||||
|
for (var key in obj) {
|
||||||
|
document.write(obj[key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -43,6 +43,9 @@ $content['LN_GEN_PAGE'] = "Seite";
|
|||||||
$content['LN_GEN_PREDEFINEDSEARCHES'] = "Vordefinierte Suchkriterien";
|
$content['LN_GEN_PREDEFINEDSEARCHES'] = "Vordefinierte Suchkriterien";
|
||||||
$content['LN_GEN_SOURCE_DISK'] = "Datei";
|
$content['LN_GEN_SOURCE_DISK'] = "Datei";
|
||||||
$content['LN_GEN_SOURCE_DB'] = "Datenbank";
|
$content['LN_GEN_SOURCE_DB'] = "Datenbank";
|
||||||
|
$content['LN_GEN_RECORDSPERPAGE'] = "records per page";
|
||||||
|
$content['LN_GEN_PRECONFIGURED'] = "Preconfigured";
|
||||||
|
$content['LN_GEN_AVAILABLESEARCHES'] = "Available searches";
|
||||||
|
|
||||||
// Index Site
|
// Index Site
|
||||||
$content['LN_ERROR_INSTALLFILEREMINDER'] = "Warnung! Du hast das Installationsscript 'install.php' noch nicht aus dem phpLogCon Hauptordner entfernt!";
|
$content['LN_ERROR_INSTALLFILEREMINDER'] = "Warnung! Du hast das Installationsscript 'install.php' noch nicht aus dem phpLogCon Hauptordner entfernt!";
|
||||||
@ -56,6 +59,9 @@ $content['LN_SEARCH_ADVANCED'] = "Erweiterte Suche";
|
|||||||
$content['LN_SEARCH'] = "Suche";
|
$content['LN_SEARCH'] = "Suche";
|
||||||
$content['LN_SEARCH_RESET'] = "Suche zurücksetzen";
|
$content['LN_SEARCH_RESET'] = "Suche zurücksetzen";
|
||||||
$content['LN_SEARCH_PERFORMADVANCED'] = "Erweiterte Suche starten";
|
$content['LN_SEARCH_PERFORMADVANCED'] = "Erweiterte Suche starten";
|
||||||
|
$content['LN_VIEW_MESSAGECENTERED'] = "Back to unfiltered view with this message at top";
|
||||||
|
$content['LN_VIEW_RELATEDMSG'] = "View related syslog messages";
|
||||||
|
$content['LN_VIEW_FILTERFOR'] = "Filter message for ";
|
||||||
|
|
||||||
$content['LN_HIGHLIGHT'] = "Hightlight >>";
|
$content['LN_HIGHLIGHT'] = "Hightlight >>";
|
||||||
$content['LN_HIGHLIGHT_OFF'] = "Hightlight <<";
|
$content['LN_HIGHLIGHT_OFF'] = "Hightlight <<";
|
||||||
@ -84,6 +90,7 @@ $content['LN_FILTER_OTHERS'] = "Andere Filter";
|
|||||||
$content['LN_FILTER_MESSAGE'] = "Syslog Meldungen";
|
$content['LN_FILTER_MESSAGE'] = "Syslog Meldungen";
|
||||||
$content['LN_FILTER_SYSLOGTAG'] = "Syslogtag";
|
$content['LN_FILTER_SYSLOGTAG'] = "Syslogtag";
|
||||||
$content['LN_FILTER_SOURCE'] = "Quelle (Hostname)";
|
$content['LN_FILTER_SOURCE'] = "Quelle (Hostname)";
|
||||||
|
$content['LN_FILTER_MESSAGETYPE'] = "Message Type";
|
||||||
|
|
||||||
// Field Captions
|
// Field Captions
|
||||||
$content['LN_FIELDS_DATE'] = "Datum";
|
$content['LN_FIELDS_DATE'] = "Datum";
|
||||||
@ -118,5 +125,6 @@ $content['LN_CFG_FIRSTSYSLOGSOURCE'] = "Erste Syslog Quelle";
|
|||||||
// Details page
|
// Details page
|
||||||
$content['LN_DETAILS_FORSYSLOGMSG'] = "Details for the syslog messages with id";
|
$content['LN_DETAILS_FORSYSLOGMSG'] = "Details for the syslog messages with id";
|
||||||
$content['LN_DETAILS_DETAILSFORMSG'] = "Details for message id";
|
$content['LN_DETAILS_DETAILSFORMSG'] = "Details for message id";
|
||||||
|
$content['LN_DETAIL_BACKTOLIST'] = "Back to Listview";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -43,6 +43,10 @@ $content['LN_GEN_PAGE'] = "Page";
|
|||||||
$content['LN_GEN_PREDEFINEDSEARCHES'] = "Predefined Searches";
|
$content['LN_GEN_PREDEFINEDSEARCHES'] = "Predefined Searches";
|
||||||
$content['LN_GEN_SOURCE_DISK'] = "Diskfile";
|
$content['LN_GEN_SOURCE_DISK'] = "Diskfile";
|
||||||
$content['LN_GEN_SOURCE_DB'] = "Database";
|
$content['LN_GEN_SOURCE_DB'] = "Database";
|
||||||
|
$content['LN_GEN_RECORDSPERPAGE'] = "records per page";
|
||||||
|
$content['LN_GEN_PRECONFIGURED'] = "Preconfigured";
|
||||||
|
$content['LN_GEN_AVAILABLESEARCHES'] = "Available searches";
|
||||||
|
|
||||||
|
|
||||||
// Main Index Site
|
// Main Index Site
|
||||||
$content['LN_ERROR_INSTALLFILEREMINDER'] = "Warning! You still have NOT removed the 'install.php' from your phpLogCon main directory!";
|
$content['LN_ERROR_INSTALLFILEREMINDER'] = "Warning! You still have NOT removed the 'install.php' from your phpLogCon main directory!";
|
||||||
@ -56,6 +60,10 @@ $content['LN_SEARCH_ADVANCED'] = "Advanced Search";
|
|||||||
$content['LN_SEARCH'] = "Search";
|
$content['LN_SEARCH'] = "Search";
|
||||||
$content['LN_SEARCH_RESET'] = "Reset search";
|
$content['LN_SEARCH_RESET'] = "Reset search";
|
||||||
$content['LN_SEARCH_PERFORMADVANCED'] = "Perform Advanced Search";
|
$content['LN_SEARCH_PERFORMADVANCED'] = "Perform Advanced Search";
|
||||||
|
$content['LN_VIEW_MESSAGECENTERED'] = "Back to unfiltered view with this message at top";
|
||||||
|
$content['LN_VIEW_RELATEDMSG'] = "View related syslog messages";
|
||||||
|
$content['LN_VIEW_FILTERFOR'] = "Filter message for ";
|
||||||
|
|
||||||
|
|
||||||
$content['LN_HIGHLIGHT'] = "Hightlight >>";
|
$content['LN_HIGHLIGHT'] = "Hightlight >>";
|
||||||
$content['LN_HIGHLIGHT_OFF'] = "Hightlight <<";
|
$content['LN_HIGHLIGHT_OFF'] = "Hightlight <<";
|
||||||
@ -84,6 +92,7 @@ $content['LN_FILTER_OTHERS'] = "Other Filters";
|
|||||||
$content['LN_FILTER_MESSAGE'] = "Syslog Message";
|
$content['LN_FILTER_MESSAGE'] = "Syslog Message";
|
||||||
$content['LN_FILTER_SYSLOGTAG'] = "Syslogtag";
|
$content['LN_FILTER_SYSLOGTAG'] = "Syslogtag";
|
||||||
$content['LN_FILTER_SOURCE'] = "Source (Hostname)";
|
$content['LN_FILTER_SOURCE'] = "Source (Hostname)";
|
||||||
|
$content['LN_FILTER_MESSAGETYPE'] = "Message Type";
|
||||||
|
|
||||||
// Field Captions
|
// Field Captions
|
||||||
$content['LN_FIELDS_DATE'] = "Date";
|
$content['LN_FIELDS_DATE'] = "Date";
|
||||||
@ -114,9 +123,11 @@ $content['LN_CFG_DBSTORAGEENGINE'] = "Database Storage Engine";
|
|||||||
$content['LN_CFG_DBTABLENAME'] = "Database Tablename";
|
$content['LN_CFG_DBTABLENAME'] = "Database Tablename";
|
||||||
$content['LN_CFG_NAMEOFTHESOURCE'] = "Name of the Source";
|
$content['LN_CFG_NAMEOFTHESOURCE'] = "Name of the Source";
|
||||||
$content['LN_CFG_FIRSTSYSLOGSOURCE'] = "First Syslog Source";
|
$content['LN_CFG_FIRSTSYSLOGSOURCE'] = "First Syslog Source";
|
||||||
|
$content['LN_CFG_DBROWCOUNTING'] = "Enable Row Counting";
|
||||||
|
|
||||||
// Details page
|
// Details page
|
||||||
$content['LN_DETAILS_FORSYSLOGMSG'] = "Details for the syslog messages with id";
|
$content['LN_DETAILS_FORSYSLOGMSG'] = "Details for the syslog messages with id";
|
||||||
$content['LN_DETAILS_DETAILSFORMSG'] = "Details for message id";
|
$content['LN_DETAILS_DETAILSFORMSG'] = "Details for message id";
|
||||||
|
$content['LN_DETAIL_BACKTOLIST'] = "Back to Listview";
|
||||||
|
|
||||||
?>
|
?>
|
@ -117,7 +117,7 @@ if ( (isset($_POST['search']) || isset($_GET['search'])) )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset($_GET['filter_facility']) && count($_GET['filter_facility']) < 18 ) // If we have more than 18 elements, this means all facilities are enabled
|
if ( isset($_GET['filter_facility']) && count($_GET['filter_facility']) < count($content['filter_facility_list']) ) // If we have more elements as in the filter list array, this means all are enabled
|
||||||
{
|
{
|
||||||
$tmpStr = "";
|
$tmpStr = "";
|
||||||
foreach ($_GET['filter_facility'] as $tmpfacility)
|
foreach ($_GET['filter_facility'] as $tmpfacility)
|
||||||
@ -129,7 +129,7 @@ if ( (isset($_POST['search']) || isset($_GET['search'])) )
|
|||||||
$content['searchstr'] .= "facility:" . $tmpStr . " ";
|
$content['searchstr'] .= "facility:" . $tmpStr . " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset($_GET['filter_severity']) && count($_GET['filter_severity']) < 7 ) // If we have more than 7 elements, this means all facilities are enabled)
|
if ( isset($_GET['filter_severity']) && count($_GET['filter_severity']) < count($content['filter_severity_list']) ) // If we have more elements as in the filter list array, this means all are enabled
|
||||||
{
|
{
|
||||||
$tmpStr = "";
|
$tmpStr = "";
|
||||||
foreach ($_GET['filter_severity'] as $tmpfacility)
|
foreach ($_GET['filter_severity'] as $tmpfacility)
|
||||||
@ -141,6 +141,19 @@ if ( (isset($_POST['search']) || isset($_GET['search'])) )
|
|||||||
$content['searchstr'] .= "severity:" . $tmpStr . " ";
|
$content['searchstr'] .= "severity:" . $tmpStr . " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( isset($_GET['filter_messagetype']) && count($_GET['filter_messagetype']) < count($content['filter_messagetype_list']) ) // If we have more elements as in the filter list array, this means all are enabled
|
||||||
|
{
|
||||||
|
$tmpStr = "";
|
||||||
|
foreach ($_GET['filter_messagetype'] as $tmpmsgtype)
|
||||||
|
{
|
||||||
|
if ( strlen($tmpStr) > 0 )
|
||||||
|
$tmpStr .= ",";
|
||||||
|
$tmpStr .= $tmpmsgtype;
|
||||||
|
}
|
||||||
|
$content['searchstr'] .= "messagetype:" . $tmpStr . " ";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Spaces need to be converted!
|
// Spaces need to be converted!
|
||||||
if ( isset($_GET['filter_syslogtag']) && strlen($_GET['filter_syslogtag']) > 0 )
|
if ( isset($_GET['filter_syslogtag']) && strlen($_GET['filter_syslogtag']) > 0 )
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,8 @@
|
|||||||
|
|
||||||
<table width="100%" align="center" border="0" cellpadding="1" cellspacing="1" class="with_border">
|
<table width="100%" align="center" border="0" cellpadding="1" cellspacing="1" class="with_border">
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap width="100%"class="line2" align="left">
|
<td nowrap width="100%"class="line2" align="left" valign="top">
|
||||||
|
<a href="index.php?uid={uid_current}" target="_top"><img src="{MENU_HOMEPAGE}" width="16" align="left" title="{LN_DETAIL_BACKTOLIST}">{LN_DETAIL_BACKTOLIST}</a>
|
||||||
<!-- IF main_currentpagenumber_found="true" -->
|
<!-- IF main_currentpagenumber_found="true" -->
|
||||||
{LN_GEN_PAGE} {main_currentpagenumber}
|
{LN_GEN_PAGE} {main_currentpagenumber}
|
||||||
<!-- ENDIF main_currentpagenumber_found="true" -->
|
<!-- ENDIF main_currentpagenumber_found="true" -->
|
||||||
|
@ -10,11 +10,13 @@
|
|||||||
<td nowrap align="left" nowrap valign="top">
|
<td nowrap align="left" nowrap valign="top">
|
||||||
<div id="menu">
|
<div id="menu">
|
||||||
<ul>
|
<ul>
|
||||||
<li><img src="{MENU_NAV_CLOSE}" width="16" height="16" title="{LN_GEN_PREDEFINEDSEARCHES}" class="SelectSavedFilter">
|
<li><img src="{MENU_NAV_CLOSE}" width="16" height="16" title="{LN_GEN_PREDEFINEDSEARCHES}" class="SelectSavedFilter" OnClick="ToggleDisplayTypeById('menu_presearches');">
|
||||||
<ul class="with_border">
|
<ul class="with_border" id="menu_presearches">
|
||||||
<li><h2 class="cellmenu1">{LN_GEN_PREDEFINEDSEARCHES}</h2>
|
<li><h2 class="cellmenu1">{LN_GEN_PREDEFINEDSEARCHES}</h2>
|
||||||
<!-- BEGIN Search -->
|
<!-- BEGIN Search -->
|
||||||
<li class="{cssclass}"><a href="?{SearchQuery}" target="_top">{DisplayName}</a></li>
|
<li class="{cssclass}" OnMouseMove="ToggleDisplayEnhanceTimeOut('menu_presearches');">
|
||||||
|
<a href="?{SearchQuery}" target="_top">{DisplayName}</a>
|
||||||
|
</li>
|
||||||
<!-- END Search -->
|
<!-- END Search -->
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@ -101,7 +103,24 @@
|
|||||||
<!-- ENDIF main_recordcount_found="true" -->
|
<!-- ENDIF main_recordcount_found="true" -->
|
||||||
<!-- IF main_pagerenabled="true" -->
|
<!-- IF main_pagerenabled="true" -->
|
||||||
<td nowrap width="115" class="cellmenu2">{LN_GEN_PAGERSIZE}:</td>
|
<td nowrap width="115" class="cellmenu2">{LN_GEN_PAGERSIZE}:</td>
|
||||||
<td nowrap width="50" class="line2"><B>{ViewEntriesPerPage}</B></td>
|
<td nowrap width="50" class="line2">
|
||||||
|
|
||||||
|
<form action="userchange.php" method="get" name="pageingsize">
|
||||||
|
<input type="hidden" name="op" value="changepagesize">
|
||||||
|
<table border="0" cellspacing="0" cellpadding="0" align="right">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<select name="pagesizeid" size="1" OnChange="document.pageingsize.submit();">
|
||||||
|
<!-- BEGIN pagesizes -->
|
||||||
|
<option {Selected} value="{ID}">{DisplayName}</option>
|
||||||
|
<!-- END pagesizes -->
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
|
||||||
<td class="cellmenu2" nowrap><B>Pager: </B></td>
|
<td class="cellmenu2" nowrap><B>Pager: </B></td>
|
||||||
<td class="line0" width="20" nowrap>
|
<td class="line0" width="20" nowrap>
|
||||||
@ -160,7 +179,7 @@
|
|||||||
<!-- ENDIF MiscShowDebugGridCounter="1" -->
|
<!-- ENDIF MiscShowDebugGridCounter="1" -->
|
||||||
|
|
||||||
<!-- BEGIN fields -->
|
<!-- BEGIN fields -->
|
||||||
<td width="{DefaultWidth}" class="cellmenu1" align="center" nowrap>
|
<td width="{DefaultWidth}" class="cellmenu1" align="center" nowrap {colspan}>
|
||||||
<!-- IF FieldSortable="true" -->
|
<!-- IF FieldSortable="true" -->
|
||||||
<a HREF="?sorting={FieldID}{additional_url_uidonly}{additional_url}" class="cellmenu1_link" >
|
<a HREF="?sorting={FieldID}{additional_url_uidonly}{additional_url}" class="cellmenu1_link" >
|
||||||
<!-- ENDIF FieldSortable="true" -->
|
<!-- ENDIF FieldSortable="true" -->
|
||||||
@ -179,35 +198,72 @@
|
|||||||
<!-- ENDIF MiscShowDebugGridCounter="1" -->
|
<!-- ENDIF MiscShowDebugGridCounter="1" -->
|
||||||
|
|
||||||
<!-- BEGIN values -->
|
<!-- BEGIN values -->
|
||||||
<td align="{FieldAlign}" class="{fieldcssclass}" {fieldbgcolor} valign="top">
|
|
||||||
<!-- IF hasdetails="false" -->
|
<td align="{FieldAlign}" class="{fieldcssclass}" {fieldbgcolor} valign="middle" {isnowrap}>
|
||||||
<!-- IF haslink="true" -->
|
<!-- IF hasbuttons="true" -->
|
||||||
<a href="{detaillink}" class="syslogdetails" target="_top">
|
<!-- IF hasdropdownbutton="true" -->
|
||||||
<!-- ENDIF haslink="true" -->
|
<img align="left" src="{MENU_NAV_CLOSE}" width="16" height="16" border="1" title="{LN_GEN_AVAILABLESEARCHES}" OnClick="ToggleDisplayTypeById('menu_{FieldColumn}_{uid}');">
|
||||||
<!-- IF haslink!="true" --><B><!-- ENDIF haslink!="true" -->
|
<!-- ENDIF hasdropdownbutton="true" -->
|
||||||
{fieldvalue}
|
<div id="menu">
|
||||||
<!-- IF haslink!="true" --></B><!-- ENDIF haslink!="true" -->
|
<ul>
|
||||||
<!-- IF haslink="true" -->
|
<li>
|
||||||
|
<ul class="with_border" id="menu_{FieldColumn}_{uid}">
|
||||||
|
<li OnMouseMove="ToggleDisplayEnhanceTimeOut('menu_{FieldColumn}_{uid}');">
|
||||||
|
<h2 class="cellmenu1">{LN_GEN_AVAILABLESEARCHES}
|
||||||
|
</h2>
|
||||||
|
<!-- BEGIN buttons -->
|
||||||
|
<li class="{cssclass}" OnMouseMove="ToggleDisplayEnhanceTimeOut('menu_{FieldColumn}_{uid}');">
|
||||||
|
<img align="left" src="{IconSource}" width="16" height="16"><a href="{ButtonUrl}" target="_top">{DisplayName}</a>
|
||||||
|
</li>
|
||||||
|
<!-- END buttons -->
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- ENDIF hasbuttons="true" -->
|
||||||
|
|
||||||
|
<!-- IF hasdetails="false" -->
|
||||||
|
|
||||||
|
<!-- IF ismessagefield!="true" -->
|
||||||
|
|
||||||
|
<!-- IF hasbuttons="true" -->
|
||||||
|
<a href="#search" OnClick="ToggleDisplayTypeById('menu_{FieldColumn}_{uid}');" class="{fieldcssclass}">
|
||||||
|
{fieldvalue}
|
||||||
|
</a>
|
||||||
|
<!-- ENDIF hasbuttons="true" -->
|
||||||
|
|
||||||
|
<!-- IF hasbuttons!="true" -->
|
||||||
|
<b>{fieldvalue}</b>
|
||||||
|
<!-- ENDIF hasbuttons!="true" -->
|
||||||
|
|
||||||
|
<!-- ENDIF ismessagefield!="true" -->
|
||||||
|
|
||||||
|
<!-- IF ismessagefield="true" -->
|
||||||
|
<a href="{detaillink}" class="syslogdetails" target="_top">
|
||||||
|
{fieldvalue}
|
||||||
|
</a>
|
||||||
|
<!-- ENDIF ismessagefield="true" -->
|
||||||
|
|
||||||
|
<!-- ENDIF hasdetails="false" -->
|
||||||
|
<!-- IF hasdetails="true" -->
|
||||||
|
|
||||||
|
<a href="{detaillink}" class="syslogdetails">{fieldvalue}
|
||||||
|
<span>
|
||||||
|
<table cellpadding="0" cellspacing="1" border="0" width="500" align="left" class="with_border_alternate">
|
||||||
|
<tr><td colspan="2" class="cellmenu1" align="center"><B>{popupcaption}</B></td></tr>
|
||||||
|
<!-- BEGIN messagesdetails -->
|
||||||
|
<tr>
|
||||||
|
<td width="150" nowrap class="cellmenu2">{detailfieldtitle}</td>
|
||||||
|
<td width="100%" class="{detailscssclass}" >{detailfieldvalue}</td>
|
||||||
|
</tr>
|
||||||
|
<!-- END messagesdetails -->
|
||||||
|
</table>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<!-- ENDIF haslink="true" -->
|
<!-- ENDIF hasdetails="true" -->
|
||||||
<!-- ENDIF hasdetails="false" -->
|
|
||||||
<!-- IF hasdetails="true" -->
|
|
||||||
<a href="{detaillink}" class="syslogdetails">{fieldvalue}
|
|
||||||
<span>
|
|
||||||
<table cellpadding="0" cellspacing="1" border="0" width="500" align="left" class="with_border_alternate">
|
|
||||||
<tr><td colspan="2" class="cellmenu1" align="center"><B>{popupcaption}</B></td></tr>
|
|
||||||
<!-- BEGIN messagesdetails -->
|
|
||||||
<tr>
|
|
||||||
<td width="150" nowrap class="cellmenu2">{detailfieldtitle}</td>
|
|
||||||
<td width="100%" class="{detailscssclass}" >{detailfieldvalue}</td>
|
|
||||||
</tr>
|
|
||||||
<!-- END messagesdetails -->
|
|
||||||
</table>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
<!-- ENDIF hasdetails="true" -->
|
|
||||||
</td>
|
</td>
|
||||||
<!-- END values -->
|
<!-- END values -->
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END syslogmessages -->
|
<!-- END syslogmessages -->
|
||||||
|
|
||||||
|
@ -331,6 +331,12 @@
|
|||||||
<td align="left" class="cellmenu2" nowrap><b>{LN_CFG_DBPASSWORD}</b></td>
|
<td align="left" class="cellmenu2" nowrap><b>{LN_CFG_DBPASSWORD}</b></td>
|
||||||
<td align="right" class="line0" width="100%"><input type="password" name="SourceDBPassword" size="40" maxlength="255" value="{SourceDBPassword}"></td>
|
<td align="right" class="line0" width="100%"><input type="password" name="SourceDBPassword" size="40" maxlength="255" value="{SourceDBPassword}"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="left" class="cellmenu2" width="150" nowrap><b>{LN_CFG_DBROWCOUNTING}</b></td>
|
||||||
|
<td align="right" class="line1" width="100%">
|
||||||
|
<input type="radio" name="SourceDBEnableRowCounting" value="true" {SourceDBEnableRowCounting_true}> Yes <input type="radio" name="SourceDBEnableRowCounting" value="false" {SourceDBEnableRowCounting_false}> No
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left" class="cellmenu2" width="50%" nowrap><b>{LN_FILTER_FACILITY}</b></td>
|
<td align="left" class="cellmenu2" width="50%" nowrap><b>{LN_FILTER_FACILITY}</b></td>
|
||||||
<td align="right" class="line1" nowrap>
|
<td align="left" class="line1" nowrap>
|
||||||
<select name="filter_facility[]" size="8" multiple>
|
<select name="filter_facility[]" size="8" multiple>
|
||||||
<!-- BEGIN filter_facility_list -->
|
<!-- BEGIN filter_facility_list -->
|
||||||
<option {selected} value="{ID}">{DisplayName}</option>
|
<option {selected} value="{ID}">{DisplayName}</option>
|
||||||
@ -124,7 +124,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td align="left" class="cellmenu2" width="50%" nowrap><b>{LN_FILTER_SEVERITY}</b></td>
|
<td align="left" class="cellmenu2" width="50%" nowrap><b>{LN_FILTER_SEVERITY}</b></td>
|
||||||
<td align="right" class="line1" nowrap>
|
<td align="left" class="line1" nowrap>
|
||||||
<select name="filter_severity[]" size="8" multiple>
|
<select name="filter_severity[]" size="8" multiple>
|
||||||
<!-- BEGIN filter_severity_list -->
|
<!-- BEGIN filter_severity_list -->
|
||||||
<option {selected} value="{ID}">{DisplayName}</option>
|
<option {selected} value="{ID}">{DisplayName}</option>
|
||||||
@ -132,6 +132,16 @@
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td align="left" class="cellmenu2" width="50%" nowrap colspan="2"><b>{LN_FILTER_MESSAGETYPE}</b></td>
|
||||||
|
<td align="left" class="line0" nowrap colspan="2">
|
||||||
|
<select name="filter_messagetype[]" size="3" multiple>
|
||||||
|
<!-- BEGIN filter_messagetype_list -->
|
||||||
|
<option {selected} value="{ID}">{DisplayName}</option>
|
||||||
|
<!-- END filter_messagetype_list -->
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -243,12 +243,12 @@ font
|
|||||||
/* Cell Columns */
|
/* Cell Columns */
|
||||||
.cellmenu1
|
.cellmenu1
|
||||||
{
|
{
|
||||||
height: 15px;
|
/* height: 15px; */
|
||||||
border:1px solid;
|
border:1px solid;
|
||||||
border-color: #353A3F #050A0F #050A0F #353A3F;
|
border-color: #353A3F #050A0F #050A0F #353A3F;
|
||||||
|
|
||||||
text-indent:5px;
|
text-indent:5px;
|
||||||
font: 10px Verdana, Arial, Helvetica, sans-serif;
|
font: bold 10px Verdana, Arial, Helvetica, sans-serif;
|
||||||
color: #FFFCE5;
|
color: #FFFCE5;
|
||||||
background-color: #103B65;
|
background-color: #103B65;
|
||||||
}
|
}
|
||||||
|
@ -123,6 +123,7 @@ font
|
|||||||
/* Cells for listening */
|
/* Cells for listening */
|
||||||
.line0
|
.line0
|
||||||
{
|
{
|
||||||
|
height: 16px;
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
background-color: #DDDDDD;
|
background-color: #DDDDDD;
|
||||||
@ -134,6 +135,7 @@ font
|
|||||||
|
|
||||||
.line1
|
.line1
|
||||||
{
|
{
|
||||||
|
height: 16px;
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
background-color: #EEEEEE;
|
background-color: #EEEEEE;
|
||||||
@ -145,6 +147,7 @@ font
|
|||||||
|
|
||||||
.line2
|
.line2
|
||||||
{
|
{
|
||||||
|
height: 16px;
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
@ -188,12 +191,12 @@ font
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.lineColouredWhite
|
.lineColouredWhite, .lineColouredWhite:hover, A.lineColouredWhite
|
||||||
{
|
{
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
}
|
}
|
||||||
.lineColouredBlack
|
.lineColouredBlack, .lineColouredBlack:hover, A.lineColouredBlack
|
||||||
{
|
{
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
@ -272,12 +275,12 @@ font
|
|||||||
/* Cell Columns */
|
/* Cell Columns */
|
||||||
.cellmenu1
|
.cellmenu1
|
||||||
{
|
{
|
||||||
height: 16px;
|
/* height: 16px; */
|
||||||
border:1px ridge;
|
border:1px ridge;
|
||||||
border-color: #79AABE #09506C #09506C #79AABE;
|
border-color: #79AABE #09506C #09506C #79AABE;
|
||||||
|
|
||||||
text-indent:5px;
|
text-indent:5px;
|
||||||
font: 10px Verdana, Arial, Helvetica, sans-serif;
|
font: bold 10px Verdana, Arial, Helvetica, sans-serif;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
background-color: #6C8E9C;
|
background-color: #6C8E9C;
|
||||||
}
|
}
|
||||||
|
@ -50,17 +50,24 @@ else
|
|||||||
|
|
||||||
if ( isset($_GET['op']) )
|
if ( isset($_GET['op']) )
|
||||||
{
|
{
|
||||||
if ( $_GET['op'] == "changestyle" )
|
if ( $_GET['op'] == "changestyle" && isset($_GET['stylename']) )
|
||||||
{
|
{
|
||||||
if ( VerifyTheme($_GET['stylename']) )
|
if ( VerifyTheme($_GET['stylename']) )
|
||||||
$_SESSION['CUSTOM_THEME'] = $_GET['stylename'];
|
$_SESSION['CUSTOM_THEME'] = $_GET['stylename'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $_GET['op'] == "changelang" )
|
if ( $_GET['op'] == "changelang" && isset($_GET['langcode']) )
|
||||||
{
|
{
|
||||||
if ( VerifyLanguage($_GET['langcode']) )
|
if ( VerifyLanguage($_GET['langcode']) )
|
||||||
$_SESSION['CUSTOM_LANG'] = $_GET['langcode'];
|
$_SESSION['CUSTOM_LANG'] = $_GET['langcode'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $_GET['op'] == "changepagesize" && isset($_GET['pagesizeid']) )
|
||||||
|
{
|
||||||
|
if ( intval($_GET['pagesizeid']) >= 0 && intval($_GET['pagesizeid']) < 7 )
|
||||||
|
$_SESSION['PAGESIZE_ID'] = intval($_GET['pagesizeid']);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Final redirect
|
// Final redirect
|
||||||
|
Loading…
x
Reference in New Issue
Block a user