Subversion Repositories ALCASAR

Rev

Rev 324 | Rev 925 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 324 Rev 907
Line 1... Line 1...
1
<?php
1
<?php
-
 
2
//gestion de la langue
-
 
3
if (is_file("../lib/langues.php"))
-
 
4
	include("../lib/langues.php");
2
 
5
 
3
echo <<<EOM
6
echo <<<EOM
4
<title>Informations de l'utilisateur  $cn</title>
7
<title>$l_user : $cn</title>
5
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
8
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
6
</head>
9
</head>
7
<body>
10
<body>
8
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
11
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
9
	<tr><th>Gestion des usagers</th></tr>
12
	<tr><th>$l_users_managment</th></tr>
10
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
13
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
11
height="2"></td></tr>
14
height="2"></td></tr>
12
</TABLE>
15
</TABLE>
13
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
16
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
14
	<tr bgcolor="#666666"><td>
17
	<tr bgcolor="#666666"><td>
Line 70... Line 73...
70
include("../html/user_toolbar.html.php");
73
include("../html/user_toolbar.html.php");
71
 
74
 
72
print <<<EOM
75
print <<<EOM
73
</table>
76
</table>
74
<br>
77
<br>
75
<table border=0 width=540 cellpadding=1 cellspacing=1>
78
<table border=0 width=640 cellpadding=1 cellspacing=1>
76
<tr valign=top>
-
 
77
<td width=340></td>
-
 
78
<table border=0 width=540 cellpadding=1 cellspacing=1>
-
 
79
<tr valign=top>
79
<tr valign=top>
80
<td width=340></td>
80
<td width=340></td>
81
<td bgcolor="black" width=250>
81
<td bgcolor="black" width=250>
82
	<table border=0 width=100% cellpadding=2 cellspacing=0>
82
	<table border=0 width=100% cellpadding=2 cellspacing=0>
83
	<tr bgcolor="#907030" align=right valign=top><th>
83
	<tr bgcolor="#907030" align=right valign=top><th>
84
	<font color="white">Etat des connexions pour $login ($cn)</font>&nbsp;
84
	<font color="white">$l_user : $login ($cn)</font>&nbsp;
85
	</th></tr>
85
	</th></tr>
86
	</table>
86
	</table>
87
</td></tr>
87
</td></tr>
88
<tr bgcolor="black" valign=top><td colspan=2>
88
<tr bgcolor="black" valign=top><td colspan=2>
89
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
89
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
Line 93... Line 93...
93
EOM;
93
EOM;
94
if ($logged_now){
94
if ($logged_now){
95
	print <<<EOM
95
	print <<<EOM
96
	<form name="online" onSubmit="return(false);">
96
	<form name="online" onSubmit="return(false);">
97
	<tr><td align=center bgcolor="#d0ddb0">
97
	<tr><td align=center bgcolor="#d0ddb0">
98
	L'utilisateur est <b>en ligne</b> depuis
98
	<b>$l_connected</b>
99
	</td><td>
99
	</td><td>
100
	$lastlog_time
100
	$lastlog_time
101
	</td></tr>
101
	</td></tr>
102
	<tr><td align=center bgcolor="#d0ddb0">
102
	<tr><td align=center bgcolor="#d0ddb0">
103
	Dur&eacute;e des connexions
103
	<b>$l_connection_time</b>
104
	</td><td>	
104
	</td><td>	
105
	<input type="text" name="status" size=10 value="$lastlog_session_time">
105
	<input type="text" name="status" size=10 value="$lastlog_session_time">
106
	</form>
106
	</form>
107
	</td></tr>
107
	</td></tr>
108
EOM;
108
EOM;
109
	require('../html/user_admin_userinfo.html.php');
109
	require('../html/user_admin_userinfo.html.php');
110
 
110
 
111
}else if ($not_known)  print <<<EOM
111
}else if ($not_known)  print <<<EOM
112
	<tr><td align=center bgcolor="#d0ddb0">
112
	<tr><td align=center bgcolor="#d0ddb0">
113
	Cet utilisateur ne s'est <b>jamais</b> connect&eacute;
113
	$l_user_never_login
114
	</td><td>-
114
	</td><td>-
115
	</td></tr>
115
	</td></tr>
116
EOM;
116
EOM;
117
else{
117
else{
118
	print <<<EOM
118
	print <<<EOM
119
	<tr><td align=center bgcolor="#d0ddb0">
119
	<tr><td align=center bgcolor="#d0ddb0">
120
	L'utilisateur <b>n'est pas connect&eacute;</b> actuellement<br>
120
	<b>$l_user_not_login_yet</b>
121
	</td><td>-
121
	</td><td>-
122
	</td></tr>
122
	</td></tr>
123
	<tr><td align=center bgcolor="#d0ddb0">
123
	<tr><td align=center bgcolor="#d0ddb0">
124
	Derni&egrave;re connexion
124
	<b>$l_last_login</b>
125
	</td><td>
125
	</td><td>
126
	$lastlog_time
126
	$lastlog_time
127
	</td></tr>
127
	</td></tr>
128
	<tr><td align=center bgcolor="#d0ddb0">
128
	<tr><td align=center bgcolor="#d0ddb0">
129
	Dur&eacute;e de la connexion
129
	<b>$l_connection_time</b>
130
	</td><td>
130
	</td><td>
131
	$lastlog_session_time
131
	$lastlog_session_time
132
	</td></tr>
132
	</td></tr>
133
EOM;
133
EOM;
134
	require('../html/user_admin_userinfo.html.php');
134
	require('../html/user_admin_userinfo.html.php');
135
}
135
}
136
 
136
 
137
print <<<EOM
137
print <<<EOM
138
	<tr><td align=center bgcolor="#d0ddb0">
138
	<tr><td align=center bgcolor="#d0ddb0">
139
	Sessions autoris&eacute;es
139
	<b>$l_remain_time</b>
140
	</td><td>
140
	</td><td>
141
	$msg
141
	$msg
142
	</td></tr>
142
	</td></tr>
143
	<tr><td align=center bgcolor="#d0ddb0">
143
<!--	<tr><td align=center bgcolor="#d0ddb0">
144
	Description compl&egrave;te de l'utilisateur
144
	Complete user description
145
	</td><td>
145
	</td><td>
146
	$descr
146
	$descr
147
	</td></tr>
147
	</td></tr>  -->
148
	</table>
148
	</table>
149
	</table>
149
	</table>
150
</table>
150
</table>
151
 
151
 
152
EOM;
152
EOM;
Line 154... Line 154...
154
if (is_file("../lib/$config[general_lib_type]/password_check.php"))
154
if (is_file("../lib/$config[general_lib_type]/password_check.php"))
155
	include("../lib/$config[general_lib_type]/password_check.php");
155
	include("../lib/$config[general_lib_type]/password_check.php");
156
 
156
 
157
echo <<<EOM
157
echo <<<EOM
158
<br>
158
<br>
159
<table border=0 width=540 cellpadding=1 cellspacing=1>
159
<table border=0 width=640 cellpadding=1 cellspacing=1>
160
<tr valign=top>
160
<tr valign=top>
161
<td width=340></td>
161
<td width=340></td>
162
<td bgcolor="black" width=250>
162
<td bgcolor="black" width=250>
163
	<table border=0 width=100% cellpadding=2 cellspacing=0>
163
	<table border=0 width=100% cellpadding=2 cellspacing=0>
164
	<tr bgcolor="#907030" align=right valign=top><th>
164
	<tr bgcolor="#907030" align=right valign=top><th>
Line 168... Line 168...
168
</td></tr>
168
</td></tr>
169
<tr bgcolor="black" valign=top><td colspan=2>
169
<tr bgcolor="black" valign=top><td colspan=2>
170
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
170
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
171
	<tr><td>
171
	<tr><td>
172
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
172
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
173
	<tr><td align=center bgcolor="#d0ddb0">-</td><td align=center bgcolor="#d0ddb0"><b>mensuel</b></td><td align=center bgcolor="#d0ddb0"><b>hebdomadaire</b></td><td align=center bgcolor="#d0ddb0"><b>journalier</b></td><td align=center bgcolor="#d0ddb0"><b>par  session</b></td></tr>
173
	<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>
174
	<tr><td align=center bgcolor="#d0ddb0"><b>limite</b></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_limit</b></td><td>$total_limit</td><td>$monthly_limit</td><td>$weekly_limit</td><td>$daily_limit</td><td>$session_limit</td></tr>
175
	<tr><td align=center bgcolor="#d0ddb0"><b>dur&eacute;e utilis&eacute;e</b></td><td>$monthly_used</td><td>$weekly_used</td><td>$daily_used</td><td>$lastlog_session_time</td></tr>
175
	<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>
176
	</table>
176
	</table>
177
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" va
177
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" va
178
lign=top>
178
lign=top>
179
	<tr><td align=center bgcolor="#d0ddb0"><b>Jour</b></td><td align=center bgcolor="#d0ddb0"><b>limite journali&egrave;re</b></td><td align=center bgcolor="#d0ddb0"><b>dur&eacute;e utilis&eacute;e</b></td><tr>
179
	<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>
180
	<tr><td align=center bgcolor="#d0ddb0">dimanche</td><td>$daily_limit</td><td>$used[0]</td></tr>
180
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_sunday</b></td><td>$daily_limit</td><td>$used[0]</td></tr>
181
	<tr><td align=center bgcolor="#d0ddb0">lundi</td><td>$daily_limit</td><td>$used[1]</td></tr>
181
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_monday</b></td><td>$daily_limit</td><td>$used[1]</td></tr>
182
	<tr><td align=center bgcolor="#d0ddb0">mardi</td><td>$daily_limit</td><td>$used[2]</td></tr>
182
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_tuesday</b></td><td>$daily_limit</td><td>$used[2]</td></tr>
183
	<tr><td align=center bgcolor="#d0ddb0">mercredi</td><td>$daily_limit</td><td>$used[3]</td></tr>
183
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_wednesday</b></td><td>$daily_limit</td><td>$used[3]</td></tr>
184
	<tr><td align=center bgcolor="#d0ddb0">jeudi</td><td>$daily_limit</td><td>$used[4]</td></tr>
184
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_thursday</b></td><td>$daily_limit</td><td>$used[4]</td></tr>
185
	<tr><td align=center bgcolor="#d0ddb0">vendredi</td><td>$daily_limit</td><td>$used[5]</td></tr>
185
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_friday</b></td><td>$daily_limit</td><td>$used[5]</td></tr>
186
	<tr><td align=center bgcolor="#d0ddb0">samedi</td><td>$daily_limit</td><td>$used[6]</td></tr>
186
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_saturday</b></td><td>$daily_limit</td><td>$used[6]</td></tr>
187
	</table></table>
187
	</table></table>
188
</table>
188
</table>
189
<br>
189
<br>
190
<table border=0 width=540 cellpadding=1 cellspacing=1>
190
<table border=0 width=640 cellpadding=1 cellspacing=1>
191
<tr valign=top>
191
<tr valign=top>
192
<td width=340></td>
192
<td width=340></td>
193
<td bgcolor="black" width=200>
193
<td bgcolor="black" width=200>
194
	<table border=0 width=100% cellpadding=2 cellspacing=0>
194
	<table border=0 width=100% cellpadding=2 cellspacing=0>
195
	<tr bgcolor="#907030" align=right valign=top><th>
195
	<tr bgcolor="#907030" align=right valign=top><th>
196
	<font color="white">&Eacute;tat sur les 7 derniers jours</font>&nbsp;
196
	<font color="white">$l_last7days_status</font>&nbsp;
197
	</th></tr>
197
	</th></tr>
198
	</table>
198
	</table>
199
</td></tr>
199
</td></tr>
200
<tr bgcolor="black" valign=top><td colspan=2>
200
<tr bgcolor="black" valign=top><td colspan=2>
201
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
201
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
202
	<tr><td>
202
	<tr><td>
203
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
203
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
204
	<tr><td align=center bgcolor="#d0ddb0">Nombre de connexions</td><td>
204
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_connections_number</b></td><td>
205
	<b><font color="darkblue">$tot_conns</font></b></td></tr>
205
	$tot_conns</td></tr>
206
	<tr><td align=center bgcolor="#d0ddb0">Dur&eacute;e cumul&eacute;e des connexions</td><td>
206
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_total_connections_time</b></td><td>
207
	<b><font color="darkblue">$tot_time</td></tr></td></tr>
207
	$tot_time</td></tr>
208
	<tr><td align=center bgcolor="#d0ddb0">Identifications d&eacute;fectueuses</td><td>
208
<!--	<tr><td align=center bgcolor="#d0ddb0">Identifications d&eacute;fectueuses</td><td>
209
	<b><font color="darkblue">$tot_badlogins</td></tr></td></tr>
209
	$tot_badlogins</td></tr> -->
210
	<tr><td align=center bgcolor="#d0ddb0">Upload</td><td>
210
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_download</b></td><td>
211
	$tot_input</td></tr></td></tr>
211
	$tot_input</td></tr>
212
	<tr><td align=center bgcolor="#d0ddb0">Download</td><td>
212
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload</b></td><td>
213
	$tot_output</td></tr></td></tr>
213
	$tot_output</td></tr>
214
	<tr><td align=center bgcolor="#d0ddb0">Dur&eacute; moyenne</td><td>
214
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_connection_time ($l_average)</b></td><td>
215
	$avg_time</td></tr></td></tr>
215
	$avg_time</td></tr>
216
	<tr><td align=center bgcolor="#d0ddb0">Upload moyen</td><td>
216
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_download ($l_average)</b></td><td>
217
	$avg_input</td></tr></td></tr>
217
	$avg_input</td></tr>
218
	<tr><td align=center bgcolor="#d0ddb0">Download moyen</td><td>
218
	<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload ($l_average)</b></td><td>
219
	$avg_output</td></tr></td></tr>	
219
	$avg_output</td></tr>	
220
	</table>
220
	</table>
221
	</table>
221
	</table>
222
</table>
222
</table>
223
<br>
223
<br>
224
EOM;
224
EOM;
225
 
225
/*
226
if ($user_info){
226
if ($user_info){
227
	echo <<<EOM
227
	echo <<<EOM
228
<table border=0 width=540 cellpadding=1 cellspacing=1>
228
<table border=0 width=640 cellpadding=1 cellspacing=1>
229
<tr valign=top>
229
<tr valign=top>
230
<td width=340></td>
230
<td width=340></td>
231
<td bgcolor="black" width=250>
231
<td bgcolor="black" width=250>
232
	<table border=0 width=100% cellpadding=2 cellspacing=0>
232
	<table border=0 width=100% cellpadding=2 cellspacing=0>
233
	<tr bgcolor="#907030" align=right valign=top><th>
233
	<tr bgcolor="#907030" align=right valign=top><th>
Line 409... Line 409...
409
	</table>
409
	</table>
410
</table>
410
</table>
411
 
411
 
412
EOM;
412
EOM;
413
}
413
}
414
?>
414
 */
415
	<tr>	<td colspan=3 height=1></td></tr>
-
 
416
	<tr>	<td colspan=3>
415
	print <<<EOM
417
	</table>
416
</tr></table>
418
<?php
417
EOM;
419
if ($logged_now)
418
if ($logged_now)
420
	print <<<EOM
419
	print <<<EOM
421
<script Language="JavaScript">
420
<script Language="JavaScript">
422
	startcounter();
421
	startcounter();
423
</script>
422
</script>
424
EOM;
423
EOM;
425
?>
424
?>
426
		</TD></TR>
-
 
427
	</TABLE>
-
 
428
	</td></tr>
-
 
429
</TABLE>
-
 
430
 
-
 
431
</body>
425
</body>
432
</html>
426
</html>