Subversion Repositories ALCASAR

Rev

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

Rev 2137 Rev 2172
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: status.php 2137 2017-03-18 13:18:02Z richard $
2
# $Id: status.php 2172 2017-04-21 22:15:39Z tom.houdayer $
3
#
3
#
4
# status.php for Alcasar captive portal
4
# status.php for Alcasar captive portal
5
# by steweb57 & Rexy
5
# by steweb57 & Rexy
6
# 
6
# 
7
/****************************************************************
7
/****************************************************************
Line 62... Line 62...
62
 
62
 
63
# Choice of language
63
# Choice of language
64
//reste quelques traductions à faire
64
//reste quelques traductions à faire
65
$Language = 'en';
65
$Language = 'en';
66
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
66
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
67
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
67
	$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
68
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
68
	$Language = strtolower(substr(chop($Langue[0]),0,2));
-
 
69
}
69
if($Language == 'es'){
70
if($Language == 'es'){
70
	$l_login1			= "El éxito de la autenticación";
71
	$l_login1			= "El éxito de la autenticación";
71
	$l_logout			= "Conexión de cierre";
72
	$l_logout			= "Conexión de cierre";
72
	$l_logout_question		= "¿Seguro que desea desconectar?";
73
	$l_logout_question		= "¿Seguro que desea desconectar?";
73
	$l_loggedout			= "Su sesión se cierra";
74
	$l_loggedout			= "Su sesión se cierra";
Line 87... Line 88...
87
	$l_welcome			= "Welcome";	// to translate
88
	$l_welcome			= "Welcome";	// to translate
88
	$l_conn_history			= "Your last $nb_connection_history connections";	// to translate
89
	$l_conn_history			= "Your last $nb_connection_history connections";	// to translate
89
	$l_connected 			= "logged"; // to translate
90
	$l_connected 			= "logged"; // to translate
90
	$l_a_connection			= "You have"; // to translate
91
	$l_a_connection			= "You have"; // to translate
91
	$l_a_connection_time		= "active connections on the network"; // to translate
92
	$l_a_connection_time		= "active connections on the network"; // to translate
-
 
93
	$l_close_warning		= "Advertencia: se desconectará si cierra esta ventana";
92
}
94
}
93
else if ($Language == 'zh'){
95
else if ($Language == 'zh'){
94
	$l_login1			= "验证通过";
96
	$l_login1			= "验证通过";
95
	$l_logout			= "关闭连接";
97
	$l_logout			= "关闭连接";
96
	$l_logout_question		= "您确定需要断开连接吗?";
98
	$l_logout_question		= "您确定需要断开连接吗?";
Line 107... Line 109...
107
	$l_uploaded_label		= "数据上传";
109
	$l_uploaded_label		= "数据上传";
108
	$l_original_url_label		= "初始网址";
110
	$l_original_url_label		= "初始网址";
109
	$l_not_available		= "不可用";
111
	$l_not_available		= "不可用";
110
	$l_error			= "出错";
112
	$l_error			= "出错";
111
	$l_welcome			= "欢迎";
113
	$l_welcome			= "欢迎";
112
	$l_conn_history			= "您最近的$nb_connection_history次连接";
114
	$l_conn_history			= "您最近的{$nb_connection_history}次连接";
113
	$l_connected 			= "已登录";  
115
	$l_connected 			= "已登录";  
114
	$l_a_connection			= "您已经有";
116
	$l_a_connection			= "您已经有";
115
	$l_a_connection_time		= "在线时间";
117
	$l_a_connection_time		= "在线时间";
-
 
118
	$l_close_warning		= "警告: 您将会断开连接如果您在关闭此窗口";
116
}
119
}
117
else if ($Language == 'ar'){
120
else if ($Language == 'ar'){
118
	$l_login1			= "نجاح المصادقة";
121
	$l_login1			= "نجاح المصادقة";
119
	$l_logout			= "إغلاق الدورة";
122
	$l_logout			= "إغلاق الدورة";
120
	$l_logout_question		= "هل تريد فعلاً قطع الاتصال؟";
123
	$l_logout_question		= "هل تريد فعلاً قطع الاتصال؟";
Line 136... Line 139...
136
	$l_welcome			= "مرحباً بك";
139
	$l_welcome			= "مرحباً بك";
137
	$l_conn_history			= "($nb_connection_history) سِجِل اتصالاتك الاخيرة";
140
	$l_conn_history			= "($nb_connection_history) سِجِل اتصالاتك الاخيرة";
138
	$l_connected 			= "دورة ناشطة";  
141
	$l_connected 			= "دورة ناشطة";  
139
	$l_a_connection			= "لديك";
142
	$l_a_connection			= "لديك";
140
	$l_a_connection_time		= "اتصالات ناشطة على الشبكة";
143
	$l_a_connection_time		= "اتصالات ناشطة على الشبكة";
-
 
144
	$l_close_warning		= "تحذير: سيتم قطع الاتصال إذا قمت بإغلاق هذه النافذة";
141
}
145
}
142
else if ($Language == 'pt'){
146
else if ($Language == 'pt'){
143
	$l_login1			= "Autenticação bem sucedida.";
147
	$l_login1			= "Autenticação bem sucedida.";
144
	$l_logout			= "Fechando a conexão";
148
	$l_logout			= "Fechando a conexão";
145
	$l_logout_question		= "Tem certeza de que deseja desconectar agora?";
149
	$l_logout_question		= "Tem certeza de que deseja desconectar agora?";
Line 160... Line 164...
160
	$l_welcome			= "Bem-vindo(a)";
164
	$l_welcome			= "Bem-vindo(a)";
161
	$l_conn_history			= "Suas últimos conexões : $nb_connection_history";
165
	$l_conn_history			= "Suas últimos conexões : $nb_connection_history";
162
	$l_connected 			= "Conectado"; 
166
	$l_connected 			= "Conectado"; 
163
	$l_a_connection			= "Conexão ativa já detectada para essa LAN";
167
	$l_a_connection			= "Conexão ativa já detectada para essa LAN";
164
	$l_a_connection_time		= "Tempo (s)";
168
	$l_a_connection_time		= "Tempo (s)";
-
 
169
	$l_close_warning		= "Aviso: você será desconectado se fechar esta janela";
165
}
170
}
166
else if ($Language == 'de'){
171
else if ($Language == 'de'){
167
	$l_login1			= "Erfolgreiche Authentifizierung";
172
	$l_login1			= "Erfolgreiche Authentifizierung";
168
	$l_logout			= "Beenden der Verbindung";
173
	$l_logout			= "Beenden der Verbindung";
169
	$l_logout_question		= "Möchten Sie die Verbindung jetzt wirklich trennen?";
174
	$l_logout_question		= "Möchten Sie die Verbindung jetzt wirklich trennen?";
Line 184... Line 189...
184
	$l_welcome			= "Welcome"; 	// to translate
189
	$l_welcome			= "Welcome"; 	// to translate
185
	$l_conn_history			= "Your last $nb_connection_history connections";	// to translate
190
	$l_conn_history			= "Your last $nb_connection_history connections";	// to translate
186
	$l_connected 			= "logged"; // to translate 
191
	$l_connected 			= "logged"; // to translate 
187
	$l_a_connection			= "You have"; // to translate
192
	$l_a_connection			= "You have"; // to translate
188
	$l_a_connection_time		= "active connections on the network"; // to translate
193
	$l_a_connection_time		= "active connections on the network"; // to translate
-
 
194
	$l_close_warning		= "Warnung: Sie werden getrennt, wenn Sie dieses Fenster schließen";
189
}
195
}
190
else if ($Language == 'nl'){
196
else if ($Language == 'nl'){
191
	$l_login1			= "Succesvolle authenticatie";
197
	$l_login1			= "Succesvolle authenticatie";
192
	$l_logout			= "Slotkoers verbinding";
198
	$l_logout			= "Slotkoers verbinding";
193
	$l_logout_question		= "Bent u zeker dat u wilt nu los te koppelen?";
199
	$l_logout_question		= "Bent u zeker dat u wilt nu los te koppelen?";
Line 208... Line 214...
208
	$l_welcome			= "Welcome";	// to translate
214
	$l_welcome			= "Welcome";	// to translate
209
	$l_conn_history			= "Your last $nb_connection_history connections";	// to translate
215
	$l_conn_history			= "Your last $nb_connection_history connections";	// to translate
210
	$l_connected 			= "logged"; // to translate 
216
	$l_connected 			= "logged"; // to translate 
211
	$l_a_connection			= "You have"; // to translate
217
	$l_a_connection			= "You have"; // to translate
212
	$l_a_connection_time		= "active connections on the network"; // to translate
218
	$l_a_connection_time		= "active connections on the network"; // to translate
-
 
219
	$l_close_warning		= "Waarschuwing: u zal worden afgebroken als u dit venster sluiten";
213
}
220
}
214
else if ($Language == 'fr'){
221
else if ($Language == 'fr'){
215
	$l_login1			= "Authentification réussie";
222
	$l_login1			= "Authentification réussie";
216
	$l_logout			= "Fermeture de la session";
223
	$l_logout			= "Fermeture de la session";
217
	$l_logout_question		= "Êtes vous sûr de vouloir vous déconnecter?";
224
	$l_logout_question		= "Êtes vous sûr de vouloir vous déconnecter?";
Line 232... Line 239...
232
	$l_welcome			= "Bienvenue";
239
	$l_welcome			= "Bienvenue";
233
	$l_conn_history			= "Vos $nb_connection_history dernières connexions";
240
	$l_conn_history			= "Vos $nb_connection_history dernières connexions";
234
	$l_connected 			= "session active";  
241
	$l_connected 			= "session active";  
235
	$l_a_connection			= "Vous avez";
242
	$l_a_connection			= "Vous avez";
236
	$l_a_connection_time		= "connexions actives sur le réseau";
243
	$l_a_connection_time		= "connexions actives sur le réseau";
-
 
244
	$l_close_warning		= "Attention : vous serez déconnecté si vous fermez cette fenêtre";
237
}
245
}
238
else {
246
else {
239
	$l_login1			= "Successful authentication.";
247
	$l_login1			= "Successful authentication.";
240
	$l_logout			= "Closing connection";
248
	$l_logout			= "Closing connection";
241
	$l_logout_question		= "Are you sure you want to disconnect now?";
249
	$l_logout_question		= "Are you sure you want to disconnect now?";
Line 256... Line 264...
256
	$l_welcome			= "Welcome";
264
	$l_welcome			= "Welcome";
257
	$l_conn_history			= "Your last $nb_connection_history connections";
265
	$l_conn_history			= "Your last $nb_connection_history connections";
258
	$l_connected 			= "logged"; 
266
	$l_connected 			= "logged"; 
259
	$l_a_connection			= "You have";
267
	$l_a_connection			= "You have";
260
	$l_a_connection_time		= "active connections on the network";
268
	$l_a_connection_time		= "active connections on the network";
-
 
269
	$l_close_warning		= "Warning: you will be disconnected if you close this window";
261
}
270
}
262
 
271
 
263
if (isset($user[5])){
272
if (isset($user[5])){
264
// Retrieve the last connections
273
// Retrieve the last connections
265
	if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
274
	if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
Line 432... Line 441...
432
					<td colspan=2 id="conHistoryLabel" class="chilliLabel"><?php echo $l_conn_history; ?></td>
441
					<td colspan=2 id="conHistoryLabel" class="chilliLabel"><?php echo $l_conn_history; ?></td>
433
				</tr>
442
				</tr>
434
				<tr id="conHistoryRow">
443
				<tr id="conHistoryRow">
435
					<td colspan=2 id="conHistory" class="chilliValue"><?php echo $connection_history; ?></td>
444
					<td colspan=2 id="conHistory" class="chilliValue"><?php echo $connection_history; ?></td>
436
				</tr>
445
				</tr>
-
 
446
				<tr>
-
 
447
					<td colspan=2 id="close-warning">(<?php echo $l_close_warning; ?>)</td>
-
 
448
				</tr>
437
			</table>
449
			</table>
438
		</div>
450
		</div>
439
		<div id="waitPage">
451
		<div id="waitPage">
440
			<table id="waitTable">
452
			<table id="waitTable">
441
				<tr>
453
				<tr>
Line 457... Line 469...
457
<textarea id="debugarea" rows="20" cols="60">
469
<textarea id="debugarea" rows="20" cols="60">
458
</textarea>
470
</textarea>
459
</div-->
471
</div-->
460
		</div>
472
		</div>
461
	</body>
473
	</body>
462
 
-
 
463
 
-
 
464
</html>
474
</html>