';
echo '
';
echo 'Logging » ';
if ($vars['section'] == 'eventlog') {
echo '';
}
if (isset($config['enable_syslog']) && $config['enable_syslog'] == 1) {
echo ' | ';
if ($vars['section'] == 'syslog') {
echo '';
}
}
if (isset($config['graylog']['server']) && isset($config['graylog']['port'])) {
echo ' | ';
if ($vars['section'] == 'graylog') {
echo '';
}
}
echo '
';
echo '
';
switch ($vars['section']) {
case 'syslog':
$vars['fromdevice'] = true;
include 'includes/html/pages/syslog.inc.php';
break;
case 'eventlog':
$vars['fromdevice'] = true;
include 'includes/html/pages/eventlog.inc.php';
break;
case 'graylog':
include 'includes/html/pages/device/logs/'.$vars['section'].'.inc.php';
break;
default:
echo '
';
echo report_this('Unknown section '.$vars['section']);
break;
}
echo '
';