git-svn-id: http://www.observium.org/svn/observer/trunk@125 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2008-03-09 17:39:14 +00:00
parent b8f38d6d24
commit 75f4bac3a2
11 changed files with 70 additions and 11 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ while($device = mysql_fetch_array($sql)){
}
$sql = mysql_query("SELECT * FROM `devices` WHERE `status` = '0'");
$sql = mysql_query("SELECT * FROM `devices` WHERE `status` = '0' AND `ignore` = '0'");
while($device = mysql_fetch_array($sql)){
unset($already);
$i = 0;
@@ -37,7 +37,7 @@ while($device = mysql_fetch_array($sql)){
if(!$already) { $nodes[] = $device['device_id']; }
}
$sql = mysql_query("SELECT * FROM `interfaces` AS I, `devices` AS D WHERE I.device_id = D.device_id AND ifOperStatus = 'down' AND ifAdminStatus = 'up'");
$sql = mysql_query("SELECT * FROM `interfaces` AS I, `devices` AS D WHERE I.device_id = D.device_id AND ifOperStatus = 'down' AND ifAdminStatus = 'up' AND D.ignore = '0' AND I.ignore = '0'");
while($device = mysql_fetch_array($sql)){
unset($already);
$i = 0;
@@ -51,7 +51,7 @@ while($device = mysql_fetch_array($sql)){
if(!$already) { $nodes[] = $device['device_id']; }
}
$sql = mysql_query("SELECT D.device_id FROM `services` AS S, `devices` AS D WHERE S.service_host = D.device_id AND service_status = 'down'");
$sql = mysql_query("SELECT D.device_id FROM `services` AS S, `devices` AS D WHERE S.service_host = D.device_id AND service_status = 'down' AND D.ignore = '0' AND S.service_ignore = '0'");
while($device = mysql_fetch_array($sql)){
unset($already);
$i = 0;
+1 -1
View File
@@ -34,7 +34,7 @@ echo("<table cellpadding=0 cellspacing=0><tr><td>
<table width='200' border='0'>
<tr>
<td width='300'><div align='right'>Description</div></td>
<td colspan='3'><textarea name='descr' cols='50'>$descr</textarea></td>
<td colspan='3'><input name='descr' width='50'>$descr</textarea></td>
</tr>
<tr>
<td>
+1 -1
View File
@@ -6,7 +6,7 @@
<tr>
<td><div align='right'><img src='/images/password.png' width='128' height='128'></div></td>
<td>
<form action='index.php' method=post>
<form action='". $_SERVER['REQUEST_URI'] ."' method=post>
<h3>Please log in:</h3>
<div style='height: 0px;'></div>