Subversion Repositories ALCASAR

Rev

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

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