Subversion Repositories ALCASAR

Rev

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