mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@2728 61d68cd4-352d-0410-923a-c4978735b2b8
34 lines
876 B
PHP
34 lines
876 B
PHP
<?php
|
|
|
|
if(!isset($vars['section'])) { $vars['section'] = "eventlog"; }
|
|
|
|
print_optionbar_start();
|
|
|
|
echo("<strong>Logging</strong> » ");
|
|
|
|
if ($vars['section'] == "eventlog")
|
|
{ echo('<span class="pagemenu-selected">'); }
|
|
echo(generate_link("Event Log" , $vars, array('section'=>'eventlog')));
|
|
if ($vars['section'] == "eventlog") { echo("</span>"); }
|
|
|
|
echo(" | ");
|
|
|
|
if ($vars['section'] == "syslog")
|
|
{ echo('<span class="pagemenu-selected">'); }
|
|
echo(generate_link("Syslog" , $vars, array('section'=>'syslog')));
|
|
if ($vars['section'] == "syslog") { echo("</span>"); }
|
|
|
|
switch ($vars['section'])
|
|
{
|
|
case 'syslog':
|
|
case 'eventlog':
|
|
include('pages/device/logs/'.$vars['section'].'.inc.php');
|
|
break;
|
|
default:
|
|
print_optionbar_end();
|
|
echo("<h2>Error. No section ".$vars['section'].".<br /> Please report this to observium developers.</h2>");
|
|
break;
|
|
}
|
|
|
|
?>
|