lots of fixes for non-webroot installations

git-svn-id: http://www.observium.org/svn/observer/trunk@362 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-03-23 17:32:25 +00:00
parent 9a8c885adf
commit 44d1431f94
15 changed files with 214 additions and 182 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ echo("
<div style='padding: 5px; height: 20px; clear: both; display: block;'>
<div style='float: left; font-size: 22px; font-weight: bold;'>Local AS : " . $device['bgpLocalAs'] . "</div>
<div style='float: right; text-align: right;'>
<a href='/device/" . $_GET['id'] . "/bgp/'>No Graphs</a> |
<a href='/device/" . $_GET['id'] . "/bgp/graphs/'>Graphs</a>
<a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/'>No Graphs</a> |
<a href='".$config['base_url']."/device/" . $_GET['id'] . "/bgp/graphs/'>Graphs</a>
</div>
</div>");
+1 -1
View File
@@ -178,7 +178,7 @@ while($device = mysql_fetch_array($device_query)) {
include("blocks/netstats.inc.php");
include("blocks/uptime.inc.php");
break;
case "Snom":
echo("<div class=graphhead>Calls</div>");
$graph_type = "calls"; include ("includes/print-device-graph.php");
+4 -4
View File
@@ -1,10 +1,10 @@
<?php
echo("
<div style='float: right; text-align: right;'>
<a href='/?page=device&id=" . $_GET['id'] . "&section=dev-ifgraphs&type=bits'>Bits</a> |
<a href='/?page=device&id=" . $_GET['id'] . "&section=dev-ifgraphs&type=pkts'>Packets</a> |
<a href='/?page=device&id=" . $_GET['id'] . "&section=dev-ifgraphs&type=nupkts'>NU Packets</a> |
<a href='/?page=device&id=" . $_GET['id'] . "&section=dev-ifgraphs&type=errors'>Errors</a>
<a href='".$config['base_url']."/?page=device&id=" . $_GET['id'] . "&section=dev-ifgraphs&type=bits'>Bits</a> |
<a href='".$config['base_url']."/?page=device&id=" . $_GET['id'] . "&section=dev-ifgraphs&type=pkts'>Packets</a> |
<a href='".$config['base_url']."/?page=device&id=" . $_GET['id'] . "&section=dev-ifgraphs&type=nupkts'>NU Packets</a> |
<a href='".$config['base_url']."/?page=device&id=" . $_GET['id'] . "&section=dev-ifgraphs&type=errors'>Errors</a>
</div>");
$dographs = 1;