Subversion Repositories ALCASAR

Rev

Rev 2418 | Rev 2535 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
528 stephane 1
<?php
958 franck 2
# $Id: status.php 2450 2017-12-05 21:53:42Z tom.houdayer $
528 stephane 3
#
2240 tom.houday 4
# status.php for ALCASAR captive portal
847 richard 5
# by steweb57 & Rexy
528 stephane 6
# 
847 richard 7
/****************************************************************
8
*			GLOBAL FILE PATHS			*
9
*****************************************************************/
2240 tom.houday 10
define('CONF_FILE', '/usr/local/etc/alcasar.conf');
847 richard 11
 
12
/****************************************************************
2240 tom.houday 13
*			FILE reading test			*
847 richard 14
*****************************************************************/
2240 tom.houday 15
$conf_files = array(CONF_FILE);
16
foreach ($conf_files as $file) {
17
	if (!file_exists($file)) {
18
		exit("Fichier $file non présent");
19
	}
20
	if (!is_readable($file)) {
21
		exit("Vous n'avez pas les droits de lecture sur le fichier $file");
22
	}
847 richard 23
}
24
 
25
/****************************************************************
26
*			Read CONF_FILE				*
27
*****************************************************************/
2240 tom.houday 28
$file_conf = fopen(CONF_FILE, 'r');
29
if (!$file_conf) {
30
	exit('Error opening the file '.CONF_FILE);
31
}
32
while (!feof($file_conf)) {
33
	$buffer = fgets($file_conf, 4096);
34
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
2450 tom.houday 35
		$tmp = explode('=', $buffer, 2);
2346 tom.houday 36
		$conf[trim($tmp[0])] = trim($tmp[1]);
847 richard 37
	}
38
}
2240 tom.houday 39
fclose($file_conf);
847 richard 40
 
2240 tom.houday 41
$organisme = $conf['ORGANISM'];
42
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
43
$cn = '';
44
$connection_history = '';
725 stephane 45
$nb_connection_history = 3;
2346 tom.houday 46
$homepage_url = (($conf['HTTPS_LOGIN'] === 'on') ? 'https' : 'http' ).'://'.$conf['HOSTNAME'].'.'.$conf['DOMAIN'].'/';
2370 tom.houday 47
$useHTTPS = ((isset($_SERVER['HTTPS'])) && (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off'));
528 stephane 48
 
2240 tom.houday 49
// Wait for chilli (update its tables)
50
sleep(1); // TODO: wait after login only?
2134 richard 51
// Retrieve user info in tab $user[]
2240 tom.houday 52
exec("sudo /usr/sbin/chilli_query list | grep 'pass' | grep -Ew '($remote_ip)'" , $tab);
53
if (isset($tab[0])) {
54
	$user = explode(' ', $tab[0]);
55
}
725 stephane 56
 
2240 tom.houday 57
// Time conversion 
58
function secondsToDuration($seconds = null) {
59
	if ($seconds === null) return '';
725 stephane 60
	$temp = $seconds % 3600;
2240 tom.houday 61
	$time[2] = $temp % 60 ;			// seconds
62
	$time[1] = ($temp - $time[2]) / 60;	// minutes
63
	$time[0] = ($seconds - $temp) / 3600 ;	// hours
64
	return $time[0].' h '.$time[1].' m '.$time[2].' s';
725 stephane 65
}
66
 
528 stephane 67
# Choice of language
2240 tom.houday 68
// TODO: reste quelques traductions à faire
528 stephane 69
$Language = 'en';
2240 tom.houday 70
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
71
	$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
72
	$Language = strtolower(substr(chop($Langue[0]), 0, 2));
2172 tom.houday 73
}
2240 tom.houday 74
if ($Language === 'es') {		// Spanish
734 richard 75
	$l_login1			= "El éxito de la autenticación";
528 stephane 76
	$l_logout			= "Conexión de cierre";
2066 richard 77
	$l_logout_question		= "¿Seguro que desea desconectar?";
955 richard 78
	$l_loggedout			= "Su sesión se cierra";
528 stephane 79
	$l_wait				= "Por favor, espere un momento ...";
2066 richard 80
	$l_state_label			= "Estado";
81
	$l_session_id_label		= "Sesión ID";
82
	$l_max_session_time_label	= "Tiempo máximo de sesión";
83
	$l_max_idle_time_label		= "Tiempo de inactividad autorizado";
2064 richard 84
	$l_start_time_label		= "Start Time";	// to translate
528 stephane 85
	$l_session_time_label		= "Tiempo de conexión";
2064 richard 86
	$l_idle_time_label		= "Idle Time";	// to translate
87
	$l_downloaded_label		= "Downloaded";	// to translate
88
	$l_uploaded_label		= "Uploaded";	// to translate
89
	$l_original_url_label		= "Original URL";	// to translate
90
	$l_not_available		= "Not available";	// to translate
91
	$l_error			= "error";		// to translate
92
	$l_welcome			= "Welcome";	// to translate
93
	$l_conn_history			= "Your last $nb_connection_history connections";	// to translate
94
	$l_connected 			= "logged"; // to translate
95
	$l_a_connection			= "You have"; // to translate
96
	$l_a_connection_time		= "active connections on the network"; // to translate
2172 tom.houday 97
	$l_close_warning		= "Advertencia: se desconectará si cierra esta ventana";
2346 tom.houday 98
	$l_back_homepage		= "Volver a la página de inicio";
2240 tom.houday 99
} else if ($Language === 'zh') {	// Chinese
2066 richard 100
	$l_login1			= "验证通过";
101
	$l_logout			= "关闭连接";
102
	$l_logout_question		= "您确定需要断开连接吗?";
103
	$l_loggedout			= "您已登出";
104
	$l_wait				= "请等待 ...";
105
	$l_state_label			= "连接状态";
106
	$l_session_id_label		= "连接ID";
107
	$l_max_session_time_label	= "最大连接时间";
108
	$l_max_idle_time_label		= "最大闲置时间";
109
	$l_start_time_label		= "起始连接时间";
110
	$l_session_time_label		= "连接时间";
111
	$l_idle_time_label		= "闲置时间";
112
	$l_downloaded_label		= "数据下载";
113
	$l_uploaded_label		= "数据上传";
114
	$l_original_url_label		= "初始网址";
115
	$l_not_available		= "不可用";
116
	$l_error			= "出错";
117
	$l_welcome			= "欢迎";
2172 tom.houday 118
	$l_conn_history			= "您最近的{$nb_connection_history}次连接";
2066 richard 119
	$l_connected 			= "已登录";  
120
	$l_a_connection			= "您已经有";
121
	$l_a_connection_time		= "在线时间";
2172 tom.houday 122
	$l_close_warning		= "警告: 您将会断开连接如果您在关闭此窗口";
2346 tom.houday 123
	$l_back_homepage		= "回到主页";
2240 tom.houday 124
} else if ($Language === 'ar') {	// Arabic
2086 richard 125
	$l_login1			= "نجاح المصادقة";
126
	$l_logout			= "إغلاق الدورة";
127
	$l_logout_question		= "هل تريد فعلاً قطع الاتصال؟";
128
	$l_loggedout			= "دورتكَ مُغلَقة";
129
	$l_wait				= "...إنتظر بعض اللحظات";
130
	$l_state_label			= "وَضْع";
131
	$l_session_id_label		= "معرف الدورة";
132
	$l_max_session_time_label	= "الوقت المسموح للإتصال";
133
	$l_max_idle_time_label		= "الحد الأقصى لعدم التنشيط";
134
	$l_start_time_label		= "بداية الإتصال";
135
	$l_session_time_label		= "مدة الإتصال";
136
	$l_idle_time_label		= "انعدام التنشيط";
137
	$l_downloaded_label		= "تم تحميل المعطيات";
138
	$l_uploaded_label		= "تم إرسال المعطيات";
139
	$l_original_url_label		= "تم طلب URL";
140
	$l_not_available		= "غير متوفّر";
141
	$l_na				= "N/D";
142
	$l_error			= "خطأ";
143
	$l_welcome			= "مرحباً بك";
144
	$l_conn_history			= "($nb_connection_history) سِجِل اتصالاتك الاخيرة";
145
	$l_connected 			= "دورة ناشطة";  
146
	$l_a_connection			= "لديك";
147
	$l_a_connection_time		= "اتصالات ناشطة على الشبكة";
2172 tom.houday 148
	$l_close_warning		= "تحذير: سيتم قطع الاتصال إذا قمت بإغلاق هذه النافذة";
2346 tom.houday 149
	$l_back_homepage		= "الرجوع إلى الصفحة الرئيسية";
2240 tom.houday 150
} else if ($Language === 'pt') {	// Portuguese
912 richard 151
	$l_login1			= "Autenticação bem sucedida.";
152
	$l_logout			= "Fechando a conexão";
955 richard 153
	$l_logout_question		= "Tem certeza de que deseja desconectar agora?";
971 richard 154
	$l_loggedout			= "Sua conexão será fechada";
912 richard 155
	$l_wait				= "Por favor, aguarde um momento ...";
971 richard 156
	$l_state_label			= "Estado da conexão";
955 richard 157
	$l_session_id_label		= "Sessão ID";
971 richard 158
	$l_max_session_time_label	= "Restante em horas da conexão";
159
	$l_max_idle_time_label		= "Restante máximo liberado por dia";
160
	$l_start_time_label		= "Dia, mês, ano e hora da conexão";
955 richard 161
	$l_session_time_label		= "Duração da conexão";
162
	$l_idle_time_label		= "Tempo de Espera";
971 richard 163
	$l_downloaded_label		= "Recebidos";
164
	$l_uploaded_label		= "Enviados";
912 richard 165
	$l_original_url_label		= "URL Original";
955 richard 166
	$l_not_available		= "Não disponível";
167
	$l_error			= "Erro";
971 richard 168
	$l_welcome			= "Bem-vindo(a)";
169
	$l_conn_history			= "Suas últimos conexões : $nb_connection_history";
955 richard 170
	$l_connected 			= "Conectado"; 
971 richard 171
	$l_a_connection			= "Conexão ativa já detectada para essa LAN";
912 richard 172
	$l_a_connection_time		= "Tempo (s)";
2172 tom.houday 173
	$l_close_warning		= "Aviso: você será desconectado se fechar esta janela";
2346 tom.houday 174
	$l_back_homepage		= "Voltar à página inicial";
2240 tom.houday 175
} else if ($Language === 'de') {	// German
734 richard 176
	$l_login1			= "Erfolgreiche Authentifizierung";
528 stephane 177
	$l_logout			= "Beenden der Verbindung";
2074 richard 178
	$l_logout_question		= "Möchten Sie die Verbindung jetzt wirklich trennen?";
2064 richard 179
	$l_loggedout			= "Ihre Sitzung ist geschlossen";
528 stephane 180
	$l_wait				= "Bitte warten Sie einen Moment ...";
2064 richard 181
	$l_state_label			= "State";		// to translate
182
	$l_session_id_label		= "Session ID";	// to translate
183
	$l_max_session_time_label	= "Max Session Time";	// to translate
184
	$l_max_idle_time_label		= "Max Idle Time";		// to translate
185
	$l_start_time_label		= "Start Time";	// to translate
528 stephane 186
	$l_session_time_label		= "Online-zeit";
2064 richard 187
	$l_idle_time_label		= "Idle Time";	// to translate
188
	$l_downloaded_label		= "Downloaded";	// to translate
189
	$l_uploaded_label		= "Uploaded";	// to translate
190
	$l_original_url_label		= "Original URL";	// to translate
191
	$l_not_available		= "Not available";	// to translate
192
	$l_error			= "error";		// to translate
193
	$l_welcome			= "Welcome"; 	// to translate
194
	$l_conn_history			= "Your last $nb_connection_history connections";	// to translate
195
	$l_connected 			= "logged"; // to translate 
196
	$l_a_connection			= "You have"; // to translate
197
	$l_a_connection_time		= "active connections on the network"; // to translate
2172 tom.houday 198
	$l_close_warning		= "Warnung: Sie werden getrennt, wenn Sie dieses Fenster schließen";
2346 tom.houday 199
	$l_back_homepage		= "Zurück zur Startseite";
2240 tom.houday 200
} else if ($Language === 'nl') {	// Dutch
734 richard 201
	$l_login1			= "Succesvolle authenticatie";
528 stephane 202
	$l_logout			= "Slotkoers verbinding";
2073 richard 203
	$l_logout_question		= "Bent u zeker dat u wilt nu los te koppelen?";
2064 richard 204
	$l_loggedout			= "Uw sessie is gesloten";
528 stephane 205
	$l_wait				= "Wacht een moment ...";
2064 richard 206
	$l_state_label			= "State";		// to translate
207
	$l_session_id_label		= "Session ID";	// to translate
208
	$l_max_session_time_label	= "Max Session Time";	// to translate
209
	$l_max_idle_time_label		= "Max Idle Time";		// to translate
210
	$l_start_time_label		= "Start Time";	// to translate
528 stephane 211
	$l_session_time_label		= "Online tijd";
2064 richard 212
	$l_idle_time_label		= "Idle Time";	// to translate
213
	$l_downloaded_label		= "Downloaded";	// to translate
214
	$l_uploaded_label		= "Uploaded";	// to translate
215
	$l_original_url_label		= "Original URL";	// to translate
216
	$l_not_available		= "Not available";	// to translate
217
	$l_error			= "error";		// to translate
218
	$l_welcome			= "Welcome";	// to translate
219
	$l_conn_history			= "Your last $nb_connection_history connections";	// to translate
220
	$l_connected 			= "logged"; // to translate 
221
	$l_a_connection			= "You have"; // to translate
222
	$l_a_connection_time		= "active connections on the network"; // to translate
2172 tom.houday 223
	$l_close_warning		= "Waarschuwing: u zal worden afgebroken als u dit venster sluiten";
2346 tom.houday 224
	$l_back_homepage		= "Terug naar de homepage";
2240 tom.houday 225
} else if ($Language === 'fr') {	// French
2064 richard 226
	$l_login1			= "Authentification réussie";
528 stephane 227
	$l_logout			= "Fermeture de la session";
2066 richard 228
	$l_logout_question		= "Êtes vous sûr de vouloir vous déconnecter?";
2064 richard 229
	$l_loggedout			= "Votre session est fermée";
528 stephane 230
	$l_wait				= "Patientez un instant ....";
2066 richard 231
	$l_state_label			= "État";
2064 richard 232
	$l_session_id_label		= "Session ID";
233
	$l_max_session_time_label	= "Temps de connexion autorisé";
2066 richard 234
	$l_max_idle_time_label		= "Temps d'inactivité autorisé";
2064 richard 235
	$l_start_time_label		= "Début de connexion";
236
	$l_session_time_label		= "Durée de connexion";
237
	$l_idle_time_label		= "Inactivité";
238
	$l_downloaded_label		= "Données téléchargées";
239
	$l_uploaded_label		= "Données envoyées";
240
	$l_original_url_label		= "URL demandée";
241
	$l_not_available		= "Non disponible";
242
	$l_error			= "erreur";
243
	$l_welcome			= "Bienvenue";
244
	$l_conn_history			= "Vos $nb_connection_history dernières connexions";
737 franck 245
	$l_connected 			= "session active";  
1708 richard 246
	$l_a_connection			= "Vous avez";
247
	$l_a_connection_time		= "connexions actives sur le réseau";
2172 tom.houday 248
	$l_close_warning		= "Attention : vous serez déconnecté si vous fermez cette fenêtre";
2346 tom.houday 249
	$l_back_homepage		= "Revenir à la page d'accueil";
2240 tom.houday 250
} else {				// English
528 stephane 251
	$l_login1			= "Successful authentication.";
252
	$l_logout			= "Closing connection";
2064 richard 253
	$l_logout_question		= "Are you sure you want to disconnect now?";
254
	$l_loggedout			= "Your session is closed";
528 stephane 255
	$l_wait				= "Please wait a moment ...";
2064 richard 256
	$l_state_label			= "State";
257
	$l_session_id_label		= "Session ID";
528 stephane 258
	$l_max_session_time_label	= "Max Session Time";
259
	$l_max_idle_time_label		= "Max Idle Time";
2064 richard 260
	$l_start_time_label		= "Start Time";
528 stephane 261
	$l_session_time_label		= "Session Time";
2064 richard 262
	$l_idle_time_label		= "Idle Time";
263
	$l_downloaded_label		= "Downloaded";
264
	$l_uploaded_label		= "Uploaded";
528 stephane 265
	$l_original_url_label		= "Original URL";
2064 richard 266
	$l_not_available		= "Not available";
267
	$l_error			= "error";
268
	$l_welcome			= "Welcome";
269
	$l_conn_history			= "Your last $nb_connection_history connections";
734 richard 270
	$l_connected 			= "logged"; 
2064 richard 271
	$l_a_connection			= "You have";
272
	$l_a_connection_time		= "active connections on the network";
2172 tom.houday 273
	$l_close_warning		= "Warning: you will be disconnected if you close this window";
2346 tom.houday 274
	$l_back_homepage		= "Back to homepage";
528 stephane 275
}
734 richard 276
 
2240 tom.houday 277
if (isset($user[5])) {
278
	if ((is_file('acc/manager/lib/sql/drivers/mysql/functions.php')) && (is_file('/etc/freeradius-web/config.php'))) {
279
		require_once('/etc/freeradius-web/config.php');
280
		require_once('acc/manager/lib/sql/drivers/mysql/functions.php');
2134 richard 281
		$link = @da_sql_pconnect($config);
2240 tom.houday 282
		if ($link) {
283
			// Retrieve the last connections
284
			$sql = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user[5]' ORDER BY AcctStartTime DESC LIMIT 0, $nb_connection_history";
285
			$res = @da_sql_query($link, $config, $sql);
286
			if ($res) {
287
				$connection_history = '<ul>';
288
				while (($row = @da_sql_fetch_array($res,$config))) {
872 richard 289
					$start_conn = date_create($row['acctstarttime']);
2240 tom.houday 290
					if (empty($row['acctstoptime'])) {
737 franck 291
						$connected = $l_connected;
2240 tom.houday 292
					} else {
872 richard 293
						$connected = secondsToDuration($row['acctsessiontime']);
737 franck 294
					}
2240 tom.houday 295
					$connection_history .= '<li>'.date_format($start_conn, 'd M Y - H:i:s')." - ($connected)</li>";
734 richard 296
				}
2240 tom.houday 297
				$connection_history .= '</ul>';
737 franck 298
			}
2240 tom.houday 299
 
2413 tom.houday 300
			// Retrieve number of open session
301
			$sql = "SELECT COUNT(*) AS nb_open FROM radacct WHERE username = '$user[5]' AND acctstoptime IS NULL;";
302
			$res = @da_sql_query($link, $config, $sql);
303
			if ($res) {
304
				$row = @da_sql_fetch_array($search,$config);
305
				$nb_open_session = $row['nb_open'];
306
			}
307
 
2240 tom.houday 308
			// Retrieve first name & last name
309
			$sql = "SELECT Name FROM userinfo WHERE UserName='$user[5]'";
310
			$res = @da_sql_query($link, $config, $sql);
311
			if ($res) {
2137 richard 312
				$row = @da_sql_fetch_array($res,$config);
2240 tom.houday 313
				$cn = (!empty($row['name'])) ? $row['name'] : $user[5];
2137 richard 314
			}
315
		}
734 richard 316
	}
2418 tom.houday 317
 
318
	$filename = '/var/tmp/havp/current_users.txt';
319
	$user_needKeepOpen = (preg_match("/^$remote_ip:PERM/m", file_get_contents($filename)) === 0);
734 richard 320
}
2240 tom.houday 321
 
322
// Cleaning the cache
323
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
324
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
325
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
326
header('Cache-Control: post-check=0, pre-check=0', false);
327
header('Pragma: no-cache');
528 stephane 328
?>
2240 tom.houday 329
<!DOCTYPE html>
2137 richard 330
<html>
734 richard 331
	<head>
2240 tom.houday 332
		<meta charset="UTF-8">
333
		<title>ALCASAR - <?= $organisme ?></title>
334
		<link type="text/css" href="css/status.css" rel="stylesheet">
335
		<script src="js/ChilliLibrary.js"></script>
2370 tom.houday 336
		<script>
337
			chilliController.host = '<?= $conf['HOSTNAME'].'.'.$conf['DOMAIN'] ?>';
338
			chilliController.port = <?= (($useHTTPS) ? 3991 : 3990) ?>;
339
			chilliController.ssl  = <?= (($useHTTPS) ? 'true' : 'false') ?>;
340
		</script>
2240 tom.houday 341
		<script src="js/statusControler.js"></script>
734 richard 342
	</head>
343
	<body>
344
		<div id="Chilli">
2240 tom.houday 345
			<div id="locationName"></div>
346
			<div id="chilliPage">
347
				<div id="loggedOutPage" class="c1">
348
					<table id="disconnectTable">
349
						<tr>
350
							<td><img height="150" src="images/logo-alcasar.png" alt="logo"></td>
2346 tom.houday 351
							<td>
352
								<p class="text_auth"><?= $l_loggedout ?></p>
353
								<p class="text_homelink"><a href="<?= $homepage_url ?>"><?= $l_back_homepage ?></a></p>
354
							</td>
2240 tom.houday 355
						</tr>
356
					</table>
357
				</div>
358
				<div id="statusPage" class="c1">
359
					<table border="0" id="statusTable">
360
						<tr>
361
							<td colspan="2">
362
								<table border="0" cellpadding="0" cellspacing="0" width="100%">
363
									<tr>
364
										<td valign="top" rowspan="4">
365
											<img height="150" src="images/logo-alcasar.png" alt="logo">
366
										</td>
367
										<td class="text_auth_welcom">
368
											<?= $l_login1 ?>
369
										</td>
370
									</tr>
371
									<tr>
372
										<td class="text_auth">
373
											<?= $l_welcome ?><br><?= $cn ?>
374
										</td>
375
									</tr>
376
									<tr>
377
										<td class="alert">
2413 tom.houday 378
											<?= ((isset($nb_open_session) && ($nb_open_session > 1)) ? $l_a_connection.' '.$nb_open_session.' '.$l_a_connection_time : '') ?>
2240 tom.houday 379
										</td>
380
									</tr>
381
									<tr>
382
										<td colspan="2" align="center" class="link_logout">
383
											<a href="#" onclick="return logoutWithConfirmation('<?= $l_logout_question ?>');" class="lien_deco"><?= $l_logout ?></a>
384
										</td>
385
									</tr>
386
								</table>
387
							</td>
388
						</tr>
389
<!-- 
390
						<tr id="connectRow">
391
							<td id="statusMessageLabel" class="chilliLabel"><strong><?= $l_state_label ?></strong></td>
392
							<td id="statusMessage" class="chilliValue">Connected</td>
393
						</tr>
394
						<tr id="sessionIdRow">
395
							<td id="sessionIdLabel" class="chilliLabel"><strong><?= $l_session_id_label ?></strong></td>
396
							<td id="sessionId" class="chilliValue"><?= $l_not_available ?></td>
397
						</tr>
398
-->
399
						<tr id="sessionTimeoutRow">
400
							<td id="sessionTimeoutLabel" class="chilliLabel"><?= $l_max_session_time_label ?></td>
401
							<td id="sessionTimeout" class="chilliValue"><?= $l_not_available ?></td>
402
						</tr>
403
						<tr id="idleTimeoutRow">
404
							<td id="idleTimeoutLabel" class="chilliLabel"><?= $l_max_idle_time_label ?></td>
405
							<td id="idleTimeout" class="chilliValue"><?= $l_not_available ?></td>
406
						</tr>
407
						<tr id="startTimeRow">
408
							<td id="startTimeLabel" class="chilliLabel"><?= $l_start_time_label ?></td>
409
							<td id="startTime" class="chilliValue"><?= $l_not_available ?></td>
410
						</tr>
411
						<tr id="sessionTimeRow">
412
							<td id="sessionTimeLabel" class="chilliLabel"><?= $l_session_time_label ?></td>
413
							<td id="sessionTime" class="chilliValue"><?= $l_not_available ?></td>
414
						</tr>
415
						<tr id="idleTimeRow">
416
							<td id="idleTimeLabel" class="chilliLabel"><?= $l_idle_time_label ?></td>
417
							<td id="idleTime" class="chilliValue"><?= $l_not_available ?></td>
418
						</tr>
419
						<tr id="inputOctetsRow">
420
							<td id="inputOctetsLabel" class="chilliLabel"><?= $l_downloaded_label ?></td>
421
							<td id="inputOctets" class="chilliValue"><?= $l_not_available ?></td>
422
						</tr>
423
						<tr id="outputOctetsRow">
424
							<td id="outputOctetsLabel" class="chilliLabel"><?= $l_uploaded_label ?></td>
425
							<td id="outputOctets" class="chilliValue"><?= $l_not_available ?></td>
426
						</tr>
427
<!-- 
428
						<tr id="originalURLRow">
429
							<td id="originalURLLabel" class="chilliLabel"><?= $l_original_url_label ?></td>
430
							<td id="originalURL" class="chilliValue"><?= $l_not_available ?></td>
431
						</tr>
432
 -->
433
						<tr>
434
							<td colspan="2" id="conHistoryLabel" class="chilliLabel"><?= $l_conn_history ?></td>
435
						</tr>
436
						<tr id="conHistoryRow">
437
							<td colspan="2" id="conHistory" class="chilliValue"><?= $connection_history ?></td>
438
						</tr>
2418 tom.houday 439
						<?php if ($user_needKeepOpen): ?>
440
							<tr>
441
								<td colspan="2" id="close-warning">(<?= $l_close_warning ?>)</td>
442
							</tr>
443
						<?php endif; ?>
2240 tom.houday 444
					</table>
445
				</div>
446
				<div id="waitPage">
447
					<table id="waitTable">
448
						<tr>
449
							<td><img height="150" src="images/logo-alcasar.png" alt="logo"></td>
450
							<td><p class="text_auth"><img src="images/wait.gif" width="16" height="16" class="wait" alt="<?= $l_wait ?>"><?= $l_wait ?></p></td>
451
						</tr>
452
					</table>
453
				</div>
454
				<div id="errorPage">
455
					<table id="errorTable">
456
						<tr>
457
							<td><img height="150" src="images/logo-alcasar.png" alt="logo"></td>
458
							<td><span id="errorMessage"><?= $l_error ?></span></td>
459
						</tr>
460
					</table>
461
				</div>
462
			</div>
734 richard 463
		</div>
464
	</body>
528 stephane 465
</html>