mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Hide link to syslog for device if syslog is disabled.
This commit is contained in:
@@ -6,17 +6,25 @@ print_optionbar_start();
|
|||||||
|
|
||||||
echo("<strong>Logging</strong> » ");
|
echo("<strong>Logging</strong> » ");
|
||||||
|
|
||||||
if ($vars['section'] == "eventlog")
|
if ($vars['section'] == "eventlog") {
|
||||||
{ echo('<span class="pagemenu-selected">'); }
|
echo('<span class="pagemenu-selected">');
|
||||||
|
}
|
||||||
echo(generate_link("Event Log" , $vars, array('section'=>'eventlog')));
|
echo(generate_link("Event Log" , $vars, array('section'=>'eventlog')));
|
||||||
if ($vars['section'] == "eventlog") { echo("</span>"); }
|
if ($vars['section'] == "eventlog") {
|
||||||
|
echo("</span>");
|
||||||
|
}
|
||||||
|
|
||||||
echo(" | ");
|
if (isset($config['enable_syslog']) && $config['enable_syslog'] == 1) {
|
||||||
|
echo(" | ");
|
||||||
|
|
||||||
if ($vars['section'] == "syslog")
|
if ($vars['section'] == "syslog") {
|
||||||
{ echo('<span class="pagemenu-selected">'); }
|
echo('<span class="pagemenu-selected">');
|
||||||
echo(generate_link("Syslog" , $vars, array('section'=>'syslog')));
|
}
|
||||||
if ($vars['section'] == "syslog") { echo("</span>"); }
|
echo(generate_link("Syslog" , $vars, array('section'=>'syslog')));
|
||||||
|
if ($vars['section'] == "syslog") {
|
||||||
|
echo("</span>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch ($vars['section'])
|
switch ($vars['section'])
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user