1 |
|
<?php |
2 |
|
|
3 |
– |
# Navigation for the i-scream login timeline reports. |
4 |
– |
# pjm2@ukc.ac.uk |
3 |
|
# |
4 |
+ |
# i-scream central monitoring system |
5 |
+ |
# http://www.i-scream.org |
6 |
+ |
# Copyright (C) 2000-2002 i-scream |
7 |
+ |
# |
8 |
+ |
# This program is free software; you can redistribute it and/or |
9 |
+ |
# modify it under the terms of the GNU General Public License |
10 |
+ |
# as published by the Free Software Foundation; either version 2 |
11 |
+ |
# of the License, or (at your option) any later version. |
12 |
+ |
# |
13 |
+ |
# This program is distributed in the hope that it will be useful, |
14 |
+ |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 |
+ |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
+ |
# GNU General Public License for more details. |
17 |
+ |
# |
18 |
+ |
# You should have received a copy of the GNU General Public License |
19 |
+ |
# along with this program; if not, write to the Free Software |
20 |
+ |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 |
+ |
# |
22 |
+ |
|
23 |
|
# CONFIGURABLE CONSTANTS: - |
24 |
|
|
25 |
|
include("logins_config.inc.php"); |
34 |
|
|
35 |
|
?> |
36 |
|
|
37 |
< |
<? include($titleHTML); ?> |
37 |
> |
<?php include($titleHTML); ?> |
38 |
|
|
39 |
|
|
40 |
< |
<hr weight="1" color="<? echo $lineColor ?>"> |
40 |
> |
<hr weight="1" color="<?php echo $lineColor ?>"> |
41 |
|
|
42 |
|
<b>Most recent login timelines available</b> |
43 |
< |
<form method="<? echo $formMethod ?>" action="<? echo $thisPage ?>"> |
44 |
< |
<? |
43 |
> |
<form method="<?php echo $formMethod ?>" action="<?php echo $thisPage ?>"> |
44 |
> |
<?php |
45 |
|
|
46 |
|
$file_array = getdirArray($reportDirectory,'rsort'); |
47 |
|
print "<select size=\"1\" name=\"date\">"; |
48 |
|
if ($date) { ?> |
49 |
< |
<option selected value="<? echo $date ?>"><? echo $date ?></option> |
49 |
> |
<option selected value="<?php echo $date ?>"><?php echo $date ?></option> |
50 |
|
<option value="">----------------</option> |
51 |
< |
<? } |
51 |
> |
<?php } |
52 |
|
foreach($file_array as $file_name) { |
53 |
|
#if (is_dir($file_name)) { |
54 |
|
if (preg_match("/^[0-9]{4}\-[0-9]{2}\-[0-9]{2}$/", $file_name)) { |
62 |
|
<input type="submit" name="submit" value="Go"> |
63 |
|
</form> |
64 |
|
|
65 |
< |
<hr weight="1" color="<? echo $lineColor ?>"> |
65 |
> |
<hr weight="1" color="<?php echo $lineColor ?>"> |
66 |
|
|
67 |
< |
<? if ($date) { ?> |
67 |
> |
<?php if ($date) { ?> |
68 |
|
|
69 |
< |
<b>Available timelines for <? echo $date ?></b> |
69 |
> |
<b>Available timelines for <?php echo $date ?></b> |
70 |
|
|
71 |
< |
<form method="<? echo $formMethod ?>" action="<? echo $thisPage ?>"> |
71 |
> |
<form method="<?php echo $formMethod ?>" action="<?php echo $thisPage ?>"> |
72 |
|
<select size="1" name="machine"> |
73 |
< |
<? if ($machine) { ?> |
74 |
< |
<option selected value="<? echo $machine ?>"><? echo $machine ?></option> |
73 |
> |
<?php if ($machine) { ?> |
74 |
> |
<option selected value="<?php echo $machine ?>"><?php echo $machine ?></option> |
75 |
|
<option value="">----------------</option> |
76 |
< |
<? } else { ?> |
76 |
> |
<?php } else { ?> |
77 |
|
<option selected value="">[select machine]</option> |
78 |
< |
<? } ?> |
79 |
< |
<? include("$reportDirectory/$date/$machineNameHTML"); ?> |
78 |
> |
<?php } ?> |
79 |
> |
<?php include("$reportDirectory/$date/$machineNameHTML"); ?> |
80 |
|
</select> |
81 |
|
|
82 |
< |
<input type="hidden" name="date" value="<? echo $date ?>"> |
82 |
> |
<input type="hidden" name="date" value="<?php echo $date ?>"> |
83 |
|
<input type="submit" name="submit" value="Show"> |
84 |
|
</form> |
85 |
|
|
86 |
< |
<hr weight="1" color="<? echo $lineColor ?>"> |
86 |
> |
<hr weight="1" color="<?php echo $lineColor ?>"> |
87 |
|
|
88 |
< |
<? } ?> |
88 |
> |
<?php } ?> |
89 |
|
|
90 |
|
</p> |
91 |
|
|
92 |
< |
<? if ($date && $machine) { ?> |
92 |
> |
<?php if ($date && $machine) { ?> |
93 |
|
|
94 |
|
<table border="0" cellpadding="0" cellspacing="0"> |
95 |
|
<tr> |
96 |
|
<td> </td> |
97 |
< |
<td><img src="<?echo $scaleImage;?>" width="800" height="17" border="0"></td> |
97 |
> |
<td><img src="<?php echo $scaleImage;?>" width="800" height="17" border="0"></td> |
98 |
|
<td> </td> |
99 |
|
</tr> |
100 |
|
|
101 |
< |
<? |
101 |
> |
<?php |
102 |
|
|
103 |
|
$flip = 0; |
104 |
|
$file_array = getdirArray("$reportDirectory/$date/$machine/login24",'asort'); |
146 |
|
|
147 |
|
<tr> |
148 |
|
<td> </td> |
149 |
< |
<td><img src="<?echo $scaleImage;?>" width="800" height="17" border="0"></td> |
149 |
> |
<td><img src="<?php echo $scaleImage;?>" width="800" height="17" border="0"></td> |
150 |
|
<td> </td> |
151 |
|
</tr> |
152 |
|
</table> |
153 |
|
|
154 |
< |
<hr weight="1" color="<? echo $lineColor ?>"> |
154 |
> |
<hr weight="1" color="<?php echo $lineColor ?>"> |
155 |
|
|
156 |
< |
<? } ?> |
156 |
> |
<?php } ?> |
157 |
|
|
158 |
< |
<? include($bottomHTML); ?> |
158 |
> |
<?php include($bottomHTML); ?> |