Subversion Repositories ALCASAR

Rev

Rev 2348 | Rev 2817 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
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
<link rel="stylesheet" href="/css/style.css">
21
EOM;
1805 clement.si 22
if (isset($logged_now) && $logged_now)
324 richard 23
	print <<<EOM
24
<script Language="JavaScript">
25
<!--
26
	var start;
27
	var our_time;
1805 clement.si 28
 
29
	function startcounter()
324 richard 30
	{
31
		var start_date = new Date();
32
		start = start_date.getTime();
33
		our_time = $lastlog_session_time_jvs;
34
		showcounter();
35
	}
36
 
37
	function showcounter ()
38
	{
39
		var now_date = new Date();
40
		var diff = now_date.getTime() - start + our_time;
1805 clement.si 41
 
324 richard 42
		var hours = parseInt(diff / 3600000);
43
		if(isNaN(hours)) hours = 0;
1805 clement.si 44
 
324 richard 45
		var minutes = parseInt((diff % 3600000) / 60000);
46
		if(isNaN(minutes)) minutes = 0;
1805 clement.si 47
 
324 richard 48
		var seconds = parseInt(((diff % 3600000) % 60000) / 1000);
49
		if(isNaN(seconds)) seconds = 0;
1805 clement.si 50
 
324 richard 51
		var timeValue = " " ;
52
		timeValue += ((hours < 10) ? "0" : "") + hours;
53
		timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
54
		timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
1805 clement.si 55
 
324 richard 56
		document.online.status.value = timeValue;
57
		setTimeout("showcounter()", 1000);
58
	}
59
	//-->
60
</script>
61
EOM;
62
 
63
print <<<EOM
64
<center>
925 richard 65
<table border=0 width=640 cellpadding=0 cellspacing=2>
324 richard 66
EOM;
67
 
68
include("../html/user_toolbar.html.php");
69
 
70
print <<<EOM
71
</table>
72
<br>
925 richard 73
<table border=0 width=620 cellpadding=1 cellspacing=1>
324 richard 74
<tr valign=top>
925 richard 75
<td width=400></td>
76
<td bgcolor="black">
324 richard 77
	<table border=0 width=100% cellpadding=2 cellspacing=0>
78
	<tr bgcolor="#907030" align=right valign=top><th>
907 richard 79
	<font color="white">$l_user : $login ($cn)</font>&nbsp;
324 richard 80
	</th></tr>
81
	</table>
82
</td></tr>
83
<tr bgcolor="black" valign=top><td colspan=2>
84
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
85
	<tr><td>
86
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
87
 
88
EOM;
1805 clement.si 89
if (isset($logged_now) && $logged_now){
324 richard 90
	print <<<EOM
91
	<form name="online" onSubmit="return(false);">
92
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 93
	<b>$l_connected</b>
324 richard 94
	</td><td>
95
	$lastlog_time
96
	</td></tr>
97
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 98
	<b>$l_connection_time</b>
1805 clement.si 99
	</td><td>
324 richard 100
	<input type="text" name="status" size=10 value="$lastlog_session_time">
101
	</form>
102
	</td></tr>
103
EOM;
104
	require('../html/user_admin_userinfo.html.php');
105
 
2280 tom.houday 106
} else if (isset($not_known))  print <<<EOM
324 richard 107
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 108
	$l_user_never_login
324 richard 109
	</td><td>-
110
	</td></tr>
111
EOM;
112
else{
113
	print <<<EOM
114
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 115
	<b>$l_user_not_login_yet</b>
324 richard 116
	</td><td>-
117
	</td></tr>
118
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 119
	<b>$l_last_login</b>
324 richard 120
	</td><td>
121
	$lastlog_time
122
	</td></tr>
123
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 124
	<b>$l_connection_time</b>
324 richard 125
	</td><td>
126
	$lastlog_session_time
127
	</td></tr>
128
EOM;
129
	require('../html/user_admin_userinfo.html.php');
130
}
131
 
132
print <<<EOM
133
	<tr><td align=center bgcolor="#d0ddb0">
907 richard 134
	<b>$l_remain_time</b>
324 richard 135
	</td><td>
136
	$msg
137
	</td></tr>
2350 tom.houday 138
EOM;
139
 
140
if ((!empty($descr)) && ($descr !== '-')) {
141
	print <<<EOM
142
		<tr><td align=center bgcolor="#d0ddb0">
143
		<b>$l_description</b>
144
		</td><td>
145
		$descr
146
		</td></tr>
147
EOM;
148
}
149
 
150
print <<<EOM
324 richard 151
	</table>
152
	</table>
153
</table>
154
EOM;
155
 
156
if (is_file("../lib/$config[general_lib_type]/password_check.php"))
157
	include("../lib/$config[general_lib_type]/password_check.php");
158
 
159
echo <<<EOM
160
<br>
925 richard 161
<table border=0 width=620 cellpadding=1 cellspacing=1>
324 richard 162
<tr valign=top>
925 richard 163
<td width=400></td>
164
<td bgcolor="black">
324 richard 165
	<table border=0 width=100% cellpadding=2 cellspacing=0>
166
	<tr bgcolor="#907030" align=right valign=top><th>
167
	<font color="white">Analyse</font>&nbsp;
168
	</th></tr>
169
	</table>
170
</td></tr>
171
<tr bgcolor="black" valign=top><td colspan=2>
172
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
173
	<tr><td>
174
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
907 richard 175
	<tr><td align=center bgcolor="#d0ddb0">&nbsp;</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>
176
	<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>
177
	<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 178
	</table>
179
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" va
180
lign=top>
907 richard 181
	<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>
182
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_sunday</b></td><td>$daily_limit</td><td>$used[0]</td></tr>
183
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_monday</b></td><td>$daily_limit</td><td>$used[1]</td></tr>
184
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_tuesday</b></td><td>$daily_limit</td><td>$used[2]</td></tr>
185
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_wednesday</b></td><td>$daily_limit</td><td>$used[3]</td></tr>
186
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_thursday</b></td><td>$daily_limit</td><td>$used[4]</td></tr>
187
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_friday</b></td><td>$daily_limit</td><td>$used[5]</td></tr>
188
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_saturday</b></td><td>$daily_limit</td><td>$used[6]</td></tr>
324 richard 189
	</table></table>
190
</table>
191
<br>
925 richard 192
<table border=0 width=620 cellpadding=1 cellspacing=1>
324 richard 193
<tr valign=top>
925 richard 194
<td width=400></td>
195
<td bgcolor="black">
324 richard 196
	<table border=0 width=100% cellpadding=2 cellspacing=0>
197
	<tr bgcolor="#907030" align=right valign=top><th>
907 richard 198
	<font color="white">$l_last7days_status</font>&nbsp;
324 richard 199
	</th></tr>
200
	</table>
201
</td></tr>
202
<tr bgcolor="black" valign=top><td colspan=2>
203
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
204
	<tr><td>
205
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
907 richard 206
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_connections_number</b></td><td>
207
	$tot_conns</td></tr>
208
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_total_connections_time</b></td><td>
209
	$tot_time</td></tr>
210
<!--	<tr><td align=center bgcolor="#d0ddb0">Identifications d&eacute;fectueuses</td><td>
211
	$tot_badlogins</td></tr> -->
212
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_download</b></td><td>
213
	$tot_input</td></tr>
214
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload</b></td><td>
215
	$tot_output</td></tr>
216
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_connection_time ($l_average)</b></td><td>
217
	$avg_time</td></tr>
218
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_download ($l_average)</b></td><td>
219
	$avg_input</td></tr>
220
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload ($l_average)</b></td><td>
1805 clement.si 221
	$avg_output</td></tr>
324 richard 222
	</table>
223
	</table>
224
</table>
225
<br>
226
EOM;
907 richard 227
/*
324 richard 228
if ($user_info){
229
	echo <<<EOM
925 richard 230
<table border=0 width=620 cellpadding=1 cellspacing=1>
324 richard 231
<tr valign=top>
232
<td width=340></td>
233
<td bgcolor="black" width=250>
234
	<table border=0 width=100% cellpadding=2 cellspacing=0>
235
	<tr bgcolor="#907030" align=right valign=top><th>
236
	<font color="white">Informations personnelles</font>
237
	</th></tr>
238
	</table>
239
</td></tr>
240
<tr bgcolor="black" valign=top><td colspan=2>
241
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
242
	<tr><td>
243
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
244
	<tr>
245
	<td align=center bgcolor="#d0ddb0">
246
	<b>nom</b>
247
	</td>
248
	<td>
249
	$cn
250
	</td>
251
	</tr>
252
EOM;
253
	if ($config[general_prefered_lang] != 'en'){
254
		echo <<<EOM
255
	<tr>
256
	<td align=center bgcolor="#d0ddb0">
257
	<b>nom ($config[general_prefered_lang_name])</b>
258
	</td>
259
	<td>
260
	$cn_lang
261
	</td>
262
	</tr>
263
EOM;
264
	}
265
	echo <<<EOM
266
	<tr>
267
	<td align=center bgcolor="#d0ddb0">
268
	<b>service</b>
269
	</td>
270
	<td>
271
	$ou
272
	</td>
273
	</tr>
274
EOM;
275
	if ($config[general_prefered_lang] != 'en'){
276
		echo <<<EOM
277
	<tr>
278
	<td align=center bgcolor="#d0ddb0">
279
	<b>service ($config[general_prefered_lang_name])</b>
280
	</td>
281
	<td>
282
	$ou_lang
283
	</td>
284
	</tr>
285
EOM;
286
	}
287
	echo <<<EOM
288
	<tr>
289
	<td align=center bgcolor="#d0ddb0">
290
	<b>titre</b>
291
	</td>
292
	<td>
293
	$title
294
	</td>
295
	</tr>
296
EOM;
297
	if ($config[general_prefered_lang] != 'en'){
298
		echo <<<EOM
299
	<tr>
300
	<td align=center bgcolor="#d0ddb0">
301
	<b>title ($config[general_prefered_lang_name])</b>
302
	</td>
303
	<td>
304
	$title_lang
305
	</td>
306
	</tr>
307
EOM;
308
	}
309
	echo <<<EOM
310
	<tr>
311
	<td align=center bgcolor="#d0ddb0">
312
	<b>adresse</b>
313
	</td>
314
	<td>
315
	$address
316
	</td>
317
	</tr>
318
EOM;
319
	if ($config[general_prefered_lang] != 'en'){
320
		echo <<<EOM
321
	<tr>
322
	<td align=center bgcolor="#d0ddb0">
323
	<b>adresse ($config[general_prefered_lang_name])</b>
324
	</td>
325
	<td>
326
	$address_lang
327
	</td>
328
	</tr>
329
EOM;
330
	}
331
	echo <<<EOM
332
	<tr>
333
	<td align=center bgcolor="#d0ddb0">
334
	<b>adresse personnelle</b>
335
	</td>
336
	<td>
337
	$homeaddress
338
	</td>
339
	</tr>
340
EOM;
341
	if ($config[general_prefered_lang] != 'en'){
342
		echo <<<EOM
343
	<tr>
344
	<td align=center bgcolor="#d0ddb0">
345
	<b>adresse personnelle ($config[general_prefered_lang_name])</b>
346
	</td>
347
	<td>
348
	$homeaddress_lang
349
	</td>
350
	</tr>
351
EOM;
352
	}
353
	echo <<<EOM
354
	<tr>
355
	<td align=center bgcolor="#d0ddb0">
356
	<b>t&eacute;l&eacute;phone</b>
357
	</td>
358
	<td>
359
	$telephonenumber
360
	</td>
361
	</tr>
362
	<tr>
363
	<td align=center bgcolor="#d0ddb0">
364
	<b>t&eacute;l&eacute;phone personnel</b>
365
	</td>
366
	<td>
367
	$homephone
368
	</td>
369
	</tr>
370
	<tr>
371
	<td align=center bgcolor="#d0ddb0">
372
	<b>mobile</b>
373
	</td>
374
	<td>
375
	$mobile
376
	</td>
377
	</tr>
378
	<tr>
379
	<td align=center bgcolor="#d0ddb0">
380
	<b>fax</b>
381
	</td>
382
	<td>
383
	$fax
384
	</td>
385
	</tr>
386
	<tr>
387
	<td align=center bgcolor="#d0ddb0">
388
	<b>home page</b>
389
	</td>
390
	<td>
391
	<a href="$url" target=userpage onclick=window.open("$url","userpage","width=1000,height=550,toolbar=no,scrollbars=yes,resizable=yes") title="Aller à&agrave; la page d'accueil de l'utilisateur">$url</a>
392
	</td>
393
	</tr>
394
	<tr>
395
	<td align=center bgcolor="#d0ddb0">
396
	<b>e-mail</b>
397
	</td>
398
	<td>
399
	<a href="mailto: $mail" title="Envoyer un email">$mail</a>
400
	</td>
401
	</tr>
402
	<tr>
403
	<td align=center bgcolor="#d0ddb0">
404
	<b>e-mail alias</b>
405
	</td>
406
	<td>
407
	<a href="mailto: $mailalt" title="Envoyer un email">$mailalt</a>
408
	</td>
409
	</tr>
410
	</table>
411
	</table>
412
</table>
413
 
414
EOM;
415
}
907 richard 416
 */
417
	print <<<EOM
418
</tr></table>
419
EOM;
1805 clement.si 420
if (isset($logged_now) && $logged_now)
324 richard 421
	print <<<EOM
422
<script Language="JavaScript">
423
	startcounter();
424
</script>
425
EOM;
426
?>
427
</body>
428
</html>