add geshi

git-svn-id: http://www.observium.org/svn/observer/trunk@462 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-09-04 16:03:57 +00:00
parent 77b8853ae2
commit 33e1031f87
212 changed files with 59404 additions and 4 deletions

View File

@@ -4,7 +4,6 @@ include("includes/geshi/geshi.php");
if($_SESSION[userlevel] >= "5" && is_file($config['rancid_configs'] . $device['hostname'])) {
$file = $config['rancid_configs'] . $device['hostname'];
# $file = "/testconfig.txt";
$fh = fopen($file, 'r') or die("Can't open file");
$text = fread($fh, filesize($file));
$language = "ios";
@@ -12,10 +11,7 @@ if($_SESSION[userlevel] >= "5" && is_file($config['rancid_configs'] . $device['h
$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS);
$geshi->set_overall_style('color: black;');
# $geshi->set_line_style('color: #999999');
# echo("<div style='width:1175px;height:540px;overflow-x:hidden;overflow-y:auto;'>");
echo $geshi->parse_code();
# echo("</div>");
fclose($fh);
} else {
print_error("Error : Insufficient access.");