fix some warnings and a mistake from a previous commit on the processors health page

git-svn-id: http://www.observium.org/svn/observer/trunk@1122 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-06-09 19:22:03 +00:00
parent 650711aa52
commit 9d406ae213
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -136,7 +136,8 @@ function popUp(URL) {
<div style="margin: 7px;"></div>
<?php
if($_SESSION['authenticated']) {
include("includes/warn-deleted-ports.inc.php");
# FIXME: file below is MISSING!
# include("includes/warn-deleted-ports.inc.php");
## Authenticated. Print a page.
if(isset($_GET['page']) && !strstr("..", $_GET['page']) && is_file("pages/" . $_GET['page'] . ".php")) {
include("pages/" . $_GET['page'] . ".php");
@@ -162,7 +163,7 @@ function popUp(URL) {
$end = utime(); $run = $end - $start;
$gentime = substr($run, 0, 5);
echo '<br /> <div id="footer">' . $config['footer'];
echo '<br /> <div id="footer">' . (isset($config['footer']) ? $config['footer'] : '');
echo '<br />Powered by <a href="http://www.observernms.org" target="_blank">ObserverNMS ' . $config['version'];
if (file_exists('.svn/entries'))
+3 -3
View File
@@ -56,11 +56,11 @@
$yearly_url = "graph.php?id=" . $proc['processor_id'] . "&type=processor&from=$year&to=$now&width=400&height=150";
echo(" <a onmouseover=\"return overlib('<img src=\'$daily_url\'>', LEFT);\" onmouseout=\"return nd();\">
<img src="$daily_graph" border=\"0\"></a> ");
<img src=\"$daily_graph\" border=\"0\"></a> ");
echo(" <a onmouseover=\"return overlib('<img src=\'$weekly_url\'>', LEFT);\" onmouseout=\"return nd();\">
<img src="$weekly_graph" border=\"0\"></a> ");
<img src=\"$weekly_graph\" border=\"0\"></a> ");
echo(" <a onmouseover=\"return overlib('<img src=\'$monthly_url\'>', LEFT);\" onmouseout=\"return nd();\">
<img src="$monthly_graph" border=\"0\"></a> ");
<img src=\"$monthly_graph\" border=\"0\"></a> ");
echo(" <a onmouseover=\"return overlib('<img src=\'$yearly_url\'>', LEFT);\" onmouseout=\"return nd();\">
<img src=\"$yearly_graph\" border=\"0\"></a>");
echo(" </td>