mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
17 lines
349 B
PHP
17 lines
349 B
PHP
|
<?php
|
||
|
|
||
|
if($_SESSION[userlevel] >= "5" && is_file($config['rancid_configs'] . $device['hostname'])) {
|
||
|
|
||
|
$file = $config['rancid_configs'] . $device['hostname'];
|
||
|
$fh = fopen($file, 'r') or die("Can't open file");
|
||
|
echo(highlight_string(fread($fh, filesize($file))));
|
||
|
fclose($fh);
|
||
|
|
||
|
} else {
|
||
|
|
||
|
print_error("Error : Insufficient access.");
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|