mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
restructure/reindent/htmlfix html pages, remove dead code
git-svn-id: http://www.observium.org/svn/observer/trunk@1897 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,7 +6,7 @@ if ($_SESSION['userlevel'] >= "7")
|
||||
{
|
||||
if (!is_array($config['rancid_configs'])) { $config['rancid_configs'] = array($config['rancid_configs']); }
|
||||
|
||||
foreach ($config['rancid_configs'] as $configs)
|
||||
foreach ($config['rancid_configs'] as $configs)
|
||||
{
|
||||
if ($configs[strlen($configs)-1] != '/') { $configs .= '/'; }
|
||||
if (is_file($configs . $device['hostname'])) { $file = $configs . $device['hostname']; }
|
||||
@@ -25,7 +25,7 @@ if ($_SESSION['userlevel'] >= "7")
|
||||
}
|
||||
$text = join("\n",$lines);
|
||||
}
|
||||
|
||||
|
||||
$language = "ios";
|
||||
$geshi = new GeSHi($text, $language);
|
||||
$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS);
|
||||
|
||||
Reference in New Issue
Block a user