Subversion Repositories ALCASAR

Rev

Rev 2935 | Details | Compare with Previous | Last modification | View Log

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