31 |
|
|
32 |
|
include("day.inc"); |
33 |
|
|
34 |
– |
if ($submit == "bung") { |
35 |
– |
$url = escapeshellcmd("$day/$machine_name/$report/chart.gif"); |
36 |
– |
Header("Location: $url"); |
37 |
– |
exit; |
38 |
– |
} |
34 |
|
?> |
35 |
|
|
36 |
|
<html> |
37 |
< |
<body bgcolor="eeeeff"> |
37 |
> |
<body bgcolor="#ffffff"> |
38 |
|
|
39 |
|
<font face="arial, sans-serif"> |
40 |
< |
<h4>I-scream report browser</h4> |
40 |
> |
<h4>I-scream report browser [trial 2.0]</h4> |
41 |
|
</font> |
42 |
|
|
43 |
|
<hr> |
48 |
|
|
49 |
|
<p> |
50 |
|
|
51 |
< |
<form method="GET" action="browser.php"> |
51 |
> |
<form method="GET" action=""> |
52 |
|
<select size="1" name="machine_name"> |
53 |
|
<? include("machine_name.inc"); ?> |
54 |
|
</select> |
62 |
|
</form> |
63 |
|
|
64 |
|
</p> |
65 |
+ |
|
66 |
+ |
<? |
67 |
+ |
if ($submit == "bung") { |
68 |
+ |
$url = escapeshellcmd("$day/$machine_name/$report/chart.gif"); |
69 |
+ |
if (file_exists($url)) { |
70 |
+ |
echo "<p><b>$machine_name - $report</b><br><img src=\"$url\" width=\"500\" height=\"250\"><br><img src=\"24hour.gif\" width=\"500\" height=\"39\"></p>"; |
71 |
+ |
} |
72 |
+ |
else { |
73 |
+ |
echo "<p>The report could not be found.</p>"; |
74 |
+ |
} |
75 |
+ |
} |
76 |
+ |
|
77 |
+ |
?> |
78 |
|
|
79 |
|
<hr> |
80 |
|
|
96 |
|
?> |
97 |
|
|
98 |
|
</body> |
99 |
< |
</html> |
99 |
> |
</html> |