324 |
richard |
1 |
<?php
|
907 |
richard |
2 |
//gestion de la langue
|
|
|
3 |
if (is_file("../lib/langues.php"))
|
|
|
4 |
include("../lib/langues.php");
|
324 |
richard |
5 |
|
|
|
6 |
echo <<<EOM
|
2348 |
tom.houday |
7 |
<title>$l_user : $login ($cn)</title>
|
324 |
richard |
8 |
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
|
|
|
9 |
</head>
|
|
|
10 |
<body>
|
|
|
11 |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
|
907 |
richard |
12 |
<tr><th>$l_users_managment</th></tr>
|
1805 |
clement.si |
13 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
|
324 |
richard |
14 |
height="2"></td></tr>
|
|
|
15 |
</TABLE>
|
|
|
16 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
|
|
|
17 |
<tr bgcolor="#666666"><td>
|
|
|
18 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
|
|
|
19 |
<tr><td valign="middle" align="left">
|
|
|
20 |
EOM;
|
1805 |
clement.si |
21 |
if (isset($logged_now) && $logged_now)
|
324 |
richard |
22 |
print <<<EOM
|
|
|
23 |
<script Language="JavaScript">
|
|
|
24 |
var start;
|
|
|
25 |
var our_time;
|
1805 |
clement.si |
26 |
|
|
|
27 |
function startcounter()
|
324 |
richard |
28 |
{
|
|
|
29 |
var start_date = new Date();
|
|
|
30 |
start = start_date.getTime();
|
|
|
31 |
our_time = $lastlog_session_time_jvs;
|
|
|
32 |
showcounter();
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
function showcounter ()
|
|
|
36 |
{
|
|
|
37 |
var now_date = new Date();
|
|
|
38 |
var diff = now_date.getTime() - start + our_time;
|
1805 |
clement.si |
39 |
|
324 |
richard |
40 |
var hours = parseInt(diff / 3600000);
|
|
|
41 |
if(isNaN(hours)) hours = 0;
|
1805 |
clement.si |
42 |
|
324 |
richard |
43 |
var minutes = parseInt((diff % 3600000) / 60000);
|
|
|
44 |
if(isNaN(minutes)) minutes = 0;
|
1805 |
clement.si |
45 |
|
324 |
richard |
46 |
var seconds = parseInt(((diff % 3600000) % 60000) / 1000);
|
|
|
47 |
if(isNaN(seconds)) seconds = 0;
|
1805 |
clement.si |
48 |
|
324 |
richard |
49 |
var timeValue = " " ;
|
|
|
50 |
timeValue += ((hours < 10) ? "0" : "") + hours;
|
|
|
51 |
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
|
|
|
52 |
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
|
1805 |
clement.si |
53 |
|
324 |
richard |
54 |
document.online.status.value = timeValue;
|
|
|
55 |
setTimeout("showcounter()", 1000);
|
|
|
56 |
}
|
|
|
57 |
</script>
|
|
|
58 |
EOM;
|
|
|
59 |
|
|
|
60 |
print <<<EOM
|
|
|
61 |
<center>
|
925 |
richard |
62 |
<table border=0 width=640 cellpadding=0 cellspacing=2>
|
324 |
richard |
63 |
EOM;
|
|
|
64 |
|
|
|
65 |
include("../html/user_toolbar.html.php");
|
|
|
66 |
|
|
|
67 |
print <<<EOM
|
|
|
68 |
</table>
|
|
|
69 |
<br>
|
925 |
richard |
70 |
<table border=0 width=620 cellpadding=1 cellspacing=1>
|
324 |
richard |
71 |
<tr valign=top>
|
925 |
richard |
72 |
<td width=400></td>
|
|
|
73 |
<td bgcolor="black">
|
324 |
richard |
74 |
<table border=0 width=100% cellpadding=2 cellspacing=0>
|
|
|
75 |
<tr bgcolor="#907030" align=right valign=top><th>
|
907 |
richard |
76 |
<font color="white">$l_user : $login ($cn)</font>
|
324 |
richard |
77 |
</th></tr>
|
|
|
78 |
</table>
|
|
|
79 |
</td></tr>
|
|
|
80 |
<tr bgcolor="black" valign=top><td colspan=2>
|
|
|
81 |
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
|
|
|
82 |
<tr><td>
|
|
|
83 |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
|
|
|
84 |
|
|
|
85 |
EOM;
|
1805 |
clement.si |
86 |
if (isset($logged_now) && $logged_now){
|
324 |
richard |
87 |
print <<<EOM
|
|
|
88 |
<form name="online" onSubmit="return(false);">
|
|
|
89 |
<tr><td align=center bgcolor="#d0ddb0">
|
907 |
richard |
90 |
<b>$l_connected</b>
|
324 |
richard |
91 |
</td><td>
|
|
|
92 |
$lastlog_time
|
|
|
93 |
</td></tr>
|
|
|
94 |
<tr><td align=center bgcolor="#d0ddb0">
|
907 |
richard |
95 |
<b>$l_connection_time</b>
|
1805 |
clement.si |
96 |
</td><td>
|
324 |
richard |
97 |
<input type="text" name="status" size=10 value="$lastlog_session_time">
|
|
|
98 |
</form>
|
|
|
99 |
</td></tr>
|
|
|
100 |
EOM;
|
|
|
101 |
require('../html/user_admin_userinfo.html.php');
|
|
|
102 |
|
2280 |
tom.houday |
103 |
} else if (isset($not_known)) print <<<EOM
|
324 |
richard |
104 |
<tr><td align=center bgcolor="#d0ddb0">
|
907 |
richard |
105 |
$l_user_never_login
|
324 |
richard |
106 |
</td><td>-
|
|
|
107 |
</td></tr>
|
|
|
108 |
EOM;
|
|
|
109 |
else{
|
|
|
110 |
print <<<EOM
|
|
|
111 |
<tr><td align=center bgcolor="#d0ddb0">
|
907 |
richard |
112 |
<b>$l_user_not_login_yet</b>
|
324 |
richard |
113 |
</td><td>-
|
|
|
114 |
</td></tr>
|
|
|
115 |
<tr><td align=center bgcolor="#d0ddb0">
|
907 |
richard |
116 |
<b>$l_last_login</b>
|
324 |
richard |
117 |
</td><td>
|
|
|
118 |
$lastlog_time
|
|
|
119 |
</td></tr>
|
|
|
120 |
<tr><td align=center bgcolor="#d0ddb0">
|
907 |
richard |
121 |
<b>$l_connection_time</b>
|
324 |
richard |
122 |
</td><td>
|
|
|
123 |
$lastlog_session_time
|
|
|
124 |
</td></tr>
|
|
|
125 |
EOM;
|
|
|
126 |
require('../html/user_admin_userinfo.html.php');
|
|
|
127 |
}
|
|
|
128 |
|
|
|
129 |
print <<<EOM
|
|
|
130 |
<tr><td align=center bgcolor="#d0ddb0">
|
907 |
richard |
131 |
<b>$l_remain_time</b>
|
324 |
richard |
132 |
</td><td>
|
|
|
133 |
$msg
|
|
|
134 |
</td></tr>
|
2350 |
tom.houday |
135 |
EOM;
|
|
|
136 |
|
|
|
137 |
if ((!empty($descr)) && ($descr !== '-')) {
|
|
|
138 |
print <<<EOM
|
|
|
139 |
<tr><td align=center bgcolor="#d0ddb0">
|
|
|
140 |
<b>$l_description</b>
|
|
|
141 |
</td><td>
|
|
|
142 |
$descr
|
|
|
143 |
</td></tr>
|
|
|
144 |
EOM;
|
|
|
145 |
}
|
|
|
146 |
|
|
|
147 |
print <<<EOM
|
324 |
richard |
148 |
</table>
|
|
|
149 |
</table>
|
|
|
150 |
</table>
|
|
|
151 |
EOM;
|
|
|
152 |
|
|
|
153 |
if (is_file("../lib/$config[general_lib_type]/password_check.php"))
|
|
|
154 |
include("../lib/$config[general_lib_type]/password_check.php");
|
|
|
155 |
|
|
|
156 |
echo <<<EOM
|
|
|
157 |
<br>
|
925 |
richard |
158 |
<table border=0 width=620 cellpadding=1 cellspacing=1>
|
324 |
richard |
159 |
<tr valign=top>
|
925 |
richard |
160 |
<td width=400></td>
|
|
|
161 |
<td bgcolor="black">
|
324 |
richard |
162 |
<table border=0 width=100% cellpadding=2 cellspacing=0>
|
|
|
163 |
<tr bgcolor="#907030" align=right valign=top><th>
|
|
|
164 |
<font color="white">Analyse</font>
|
|
|
165 |
</th></tr>
|
|
|
166 |
</table>
|
|
|
167 |
</td></tr>
|
|
|
168 |
<tr bgcolor="black" valign=top><td colspan=2>
|
|
|
169 |
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
|
|
|
170 |
<tr><td>
|
|
|
171 |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
|
907 |
richard |
172 |
<tr><td align=center bgcolor="#d0ddb0"> </td><td align=center bgcolor="#d0ddb0"><b>total</b></td><td align=center bgcolor="#d0ddb0"><b>$l_monthly</b></td><td align=center bgcolor="#d0ddb0"><b>$l_weekly</b></td><td align=center bgcolor="#d0ddb0"><b>$l_daily</b></td><td align=center bgcolor="#d0ddb0"><b>$l_by_session</b></td></tr>
|
|
|
173 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_limit</b></td><td>$total_limit</td><td>$monthly_limit</td><td>$weekly_limit</td><td>$daily_limit</td><td>$session_limit</td></tr>
|
|
|
174 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_used_time</b></td><td>$tot_time</td><td>$monthly_used</td><td>$weekly_used</td><td>$daily_used</td><td>$lastlog_session_time</td></tr>
|
324 |
richard |
175 |
</table>
|
|
|
176 |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" va
|
|
|
177 |
lign=top>
|
907 |
richard |
178 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_day</b></td><td align=center bgcolor="#d0ddb0"><b>$l_daily_limit</b></td><td align=center bgcolor="#d0ddb0"><b>$l_used_time</b></td><tr>
|
|
|
179 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_sunday</b></td><td>$daily_limit</td><td>$used[0]</td></tr>
|
|
|
180 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_monday</b></td><td>$daily_limit</td><td>$used[1]</td></tr>
|
|
|
181 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_tuesday</b></td><td>$daily_limit</td><td>$used[2]</td></tr>
|
|
|
182 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_wednesday</b></td><td>$daily_limit</td><td>$used[3]</td></tr>
|
|
|
183 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_thursday</b></td><td>$daily_limit</td><td>$used[4]</td></tr>
|
|
|
184 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_friday</b></td><td>$daily_limit</td><td>$used[5]</td></tr>
|
|
|
185 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_saturday</b></td><td>$daily_limit</td><td>$used[6]</td></tr>
|
324 |
richard |
186 |
</table></table>
|
|
|
187 |
</table>
|
|
|
188 |
<br>
|
925 |
richard |
189 |
<table border=0 width=620 cellpadding=1 cellspacing=1>
|
324 |
richard |
190 |
<tr valign=top>
|
925 |
richard |
191 |
<td width=400></td>
|
|
|
192 |
<td bgcolor="black">
|
324 |
richard |
193 |
<table border=0 width=100% cellpadding=2 cellspacing=0>
|
|
|
194 |
<tr bgcolor="#907030" align=right valign=top><th>
|
907 |
richard |
195 |
<font color="white">$l_last7days_status</font>
|
324 |
richard |
196 |
</th></tr>
|
|
|
197 |
</table>
|
|
|
198 |
</td></tr>
|
|
|
199 |
<tr bgcolor="black" valign=top><td colspan=2>
|
|
|
200 |
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
|
|
|
201 |
<tr><td>
|
|
|
202 |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
|
907 |
richard |
203 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_connections_number</b></td><td>
|
|
|
204 |
$tot_conns</td></tr>
|
|
|
205 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_total_connections_time</b></td><td>
|
|
|
206 |
$tot_time</td></tr>
|
|
|
207 |
<!-- <tr><td align=center bgcolor="#d0ddb0">Identifications défectueuses</td><td>
|
|
|
208 |
$tot_badlogins</td></tr> -->
|
|
|
209 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_download</b></td><td>
|
|
|
210 |
$tot_input</td></tr>
|
|
|
211 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload</b></td><td>
|
|
|
212 |
$tot_output</td></tr>
|
|
|
213 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_connection_time ($l_average)</b></td><td>
|
|
|
214 |
$avg_time</td></tr>
|
|
|
215 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_download ($l_average)</b></td><td>
|
|
|
216 |
$avg_input</td></tr>
|
|
|
217 |
<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload ($l_average)</b></td><td>
|
1805 |
clement.si |
218 |
$avg_output</td></tr>
|
324 |
richard |
219 |
</table>
|
|
|
220 |
</table>
|
|
|
221 |
</table>
|
907 |
richard |
222 |
</tr></table>
|
|
|
223 |
EOM;
|
1805 |
clement.si |
224 |
if (isset($logged_now) && $logged_now)
|
324 |
richard |
225 |
print <<<EOM
|
|
|
226 |
<script Language="JavaScript">
|
|
|
227 |
startcounter();
|
|
|
228 |
</script>
|
|
|
229 |
EOM;
|
|
|
230 |
?>
|
|
|
231 |
</body>
|
|
|
232 |
</html>
|