20 |
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 |
|
# |
22 |
|
|
23 |
– |
# Navigation for the i-scream reports. |
24 |
– |
# pjm2@ukc.ac.uk |
25 |
– |
# |
23 |
|
# CONFIGURABLE CONSTANTS: - |
24 |
|
|
25 |
|
include("latest_config.inc.php"); |
30 |
|
include("iutils.inc.php"); |
31 |
|
|
32 |
|
if ($formMethod == "GET") { |
33 |
< |
$machine = $_GET['machine']; |
33 |
> |
$machine = isset($_GET['machine']) ? $_GET['machine'] : ""; |
34 |
|
} |
35 |
|
|
36 |
|
|
175 |
|
# show all network information. |
176 |
|
function showNet($netRoot, $input) { |
177 |
|
include("latest_config.inc.php"); |
178 |
< |
|
178 |
> |
|
179 |
|
$i = 0; |
180 |
|
while(1) { |
181 |
|
$name = getPregMatch("$netRoot.p$i.attributes.name", $input); |
192 |
|
} |
193 |
|
} |
194 |
|
|
195 |
+ |
|
196 |
|
# show all mail queue information |
197 |
|
function showMailQ($mailqRoot, $input) { |
198 |
|
include("latest_config.inc.php"); |
213 |
|
} |
214 |
|
} |
215 |
|
|
216 |
+ |
|
217 |
|
# Return a preg_match result. |
218 |
|
function getPregMatch($value, $input) { |
219 |
|
preg_match("/$value=([^\,\}]*)[\,\}]/", $input, $matches); |
220 |
+ |
if(!isset($matches[1])) { |
221 |
+ |
return; |
222 |
+ |
} |
223 |
|
return $matches[1]; |
224 |
|
} |
225 |
|
|
321 |
|
</b></font> |
322 |
|
This realtime report is too old to be considered recent |
323 |
|
EOT; |
324 |
+ |
} |
325 |
+ |
else { |
326 |
+ |
$warning = ""; |
327 |
|
} |
328 |
|
|
329 |
|
echo <<<EOT |