mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 19:29:07 +02:00
134 lines
3.8 KiB
PHP
134 lines
3.8 KiB
PHP
<?php
|
|
|
|
/*#### #### #### #### #### #### #### #### #### ####
|
|
phpLogCon - A Web Interface to Log Data.
|
|
Copyright (C) 2004-2005 Adiscon GmbH
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it
|
|
under the terms of the GNU General Public License as published by the
|
|
Free Software Foundation; either version 2 of the License, or (at your
|
|
option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along with this program;
|
|
if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
|
MA 02111-1307, USA.
|
|
|
|
If you have questions about phpLogCon in general, please email info@adiscon.com.
|
|
To learn more about phpLogCon, please visit http://www.phplogcon.com.
|
|
|
|
This Project was intiated and is maintened by Rainer Gerhards <rgerhards@hq.adiscon.com>.
|
|
See AUTHORS to learn who helped make it become a reality.
|
|
|
|
*/#### #### #### #### #### #### #### #### #### ####
|
|
|
|
|
|
|
|
function ShowVarFilter()
|
|
{
|
|
if ($_SESSION['change'] == 'Predefined')
|
|
{
|
|
echo ' ', _MSGEvnDat, ': ';
|
|
include _FORMS.'events-date.php';
|
|
echo ' ';
|
|
}
|
|
else
|
|
{
|
|
echo ' ', _MSGEvnDat, ': ';
|
|
include _FORMS.'manually-date.php';
|
|
echo ' ';
|
|
}
|
|
|
|
echo '<br><b>', _MSGFilOpt, ': </b>';
|
|
|
|
echo _MSGLogPg, ': ';
|
|
include _FORMS.'logs-per-page.php';
|
|
|
|
if ($_SESSION['FilterInfoUnit'] == 1 && stristr($_SERVER['PHP_SELF'], 'syslog') == FALSE)
|
|
{
|
|
echo " <b>|</b>";
|
|
echo ' ', _MSGDisIU, ': ';
|
|
include _FORMS.'display-infounit.php';
|
|
}
|
|
|
|
if ($_SESSION['FilterOrderby'] == 1)
|
|
{
|
|
echo " <b>|</b>";
|
|
echo ' ', _MSGOrdBy, ': ';
|
|
if(stristr($_SERVER['PHP_SELF'], 'syslog-index') != FALSE) include _FORMS.'tag-order-by.php';
|
|
else include _FORMS.'order-by.php';
|
|
}
|
|
|
|
if ($_SESSION['FilterOrderby'] == 1 && stristr($_SERVER['PHP_SELF'], 'syslog-index') != FALSE)
|
|
{
|
|
echo ' ';
|
|
include _FORMS.'tag-sort.php';
|
|
}
|
|
|
|
if (stristr($_SERVER['PHP_SELF'], 'syslog-index') != FALSE)
|
|
{
|
|
echo " <b>|</b>";
|
|
echo ' ', _MSGDisSlt, ': ';
|
|
include _FORMS.'syslog-show.php';
|
|
}
|
|
|
|
if ($_SESSION['FilterRefresh'] == 1)
|
|
{
|
|
echo " <b>|</b>";
|
|
echo ' ', _MSGRef, ': ';
|
|
include _FORMS.'refresh.php';
|
|
}
|
|
|
|
if ($_SESSION['FilterColExp'] == 1)
|
|
{
|
|
echo " <b>|</b>";
|
|
echo ' ', _MSGColExp, ' ';
|
|
include _FORMS.'color-expression.php';
|
|
}
|
|
|
|
if ($_SESSION['FilterHost'] == 1)
|
|
{
|
|
echo " <b>|</b>";
|
|
echo ' ', _MSGFilHost, ': ';
|
|
include _FORMS.'filter-host.php';
|
|
}
|
|
|
|
if ($_SESSION['FilterMsg'] == 1)
|
|
{
|
|
echo " <b>|</b>";
|
|
echo ' ', _MSGSearchMsg, ': ';
|
|
include _FORMS.'search-msg.php';
|
|
}
|
|
}
|
|
|
|
echo "<form method=\"POST\" action=" . $_SERVER['PHP_SELF'] . ">";
|
|
|
|
// this switch is only a temporarry solution. Which forms are displayed should be configureable in the user profil in the future!
|
|
|
|
if ($_SESSION['change'] == "Predefined")
|
|
{
|
|
echo '<input type="hidden" name="change" value="Manually">';
|
|
echo '<input type="submit" name="button" value="' . _MSGSwiEvnMan . '">';
|
|
}
|
|
else
|
|
{
|
|
echo '<input type="hidden" name="change" value="Predefined">';
|
|
echo '<input type="submit" name="button" value="' . _MSGSwiEvnPre . '">';
|
|
}
|
|
|
|
?>
|
|
</form>
|
|
<form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ; ?>">
|
|
<input type="hidden" name="quickFilter" value="change">
|
|
<?php
|
|
ShowVarFilter();
|
|
?>
|
|
|
|
<input type="submit" name="form" value="Submit">
|
|
</form>
|
|
<center><img src="<?php echo _ADLibPathImage;?>Head-Line.gif" width="100%" height="2" align="center"></center>
|