Subversion Repositories ALCASAR

Rev

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

Rev 2935 Rev 3026
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: status.php 2935 2021-03-28 22:14:58Z rexy $
2
# $Id: status.php 3026 2022-06-30 21:53:54Z rexy $
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 36... Line 36...
36
		$conf[trim($tmp[0])] = trim($tmp[1]);
36
		$conf[trim($tmp[0])] = trim($tmp[1]);
37
	}
37
	}
38
}
38
}
39
fclose($file_conf);
39
fclose($file_conf);
40
 
40
 
-
 
41
$page = "status";
41
$organisme = $conf['ORGANISM'];
42
$organisme = $conf['ORGANISM'];
42
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
43
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
43
$cn = '';
44
$cn = '';
44
$connection_history = '';
45
$connection_history = '';
45
$nb_connection_history = 3;
46
$nb_connection_history = 3;
Line 360... Line 361...
360
			chilliController.ssl  = <?= (($useHTTPS) ? 'true' : 'false') ?>;
361
			chilliController.ssl  = <?= (($useHTTPS) ? 'true' : 'false') ?>;
361
		</script>
362
		</script>
362
		<script src="js/statusControler.js"></script>
363
		<script src="js/statusControler.js"></script>
363
	</head>
364
	</head>
364
	<body>
365
	<body>
365
	<div id="Chilli" class="col-xs-12 col-sm-12">
366
	<div id="Chilli" class="col-12 col-lg-12">
366
		<div id="chilliPage" class="row">
367
		<div id="chilliPage" class="row">
367
			<div id="loggedOutPage" class="c1 col-xs-12 col-sm-12">
368
			<div id="loggedOutPage" class="c1 col-12 col-lg-12">
368
				<div id="disconnectTable" class="row logout_box">
369
				<div id="disconnectTable" class="row logout_box">
369
					<div class="col-xs-3 col-sm-3 logout_msg">
370
					<div class="col-3 col-lg-3 logout_msg">
370
						<img height="150" src="images/logo-alcasar.png" alt="logo">
371
						<img height="150" src="images/logo-alcasar.png" alt="logo">
371
					</div>
372
					</div>
372
					<div class="col-xs-6 col-sm-6 logout_msg">
373
					<div class="col-6 col-lg-6 logout_msg">
373
							<p class="text_auth"><?= $l_loggedout ?></p>
374
							<p class="text_auth"><?= $l_loggedout ?></p>
374
							<p class="text_homelink"><a href="<?= $homepage_url ?>"><?= $l_back_homepage ?></a></p>
375
							<p class="text_homelink"><a href="<?= $homepage_url ?>"><?= $l_back_homepage ?></a></p>
375
					</div>
376
					</div>
376
				</div>
377
				</div>
377
			</div>
378
			</div>
378
			<div id="statusPage" class="col-xs-12 col-sm-12">
379
			<div id="statusPage" class="col-12 col-md-12">
379
				<div class="row">
-
 
380
					<div class="col-xs-12 col-sm-12 col-md-10 col-md-offset-1">
-
 
381
						<div class="row header_background">
380
				<div class="col-lg-10 offset-lg-1">
382
							<div class="header_img hidden-xs col-sm-2">	
-
 
383
								<img class="img-responsive image-resize" src="images/organisme.png" alt="logo">
-
 
384
							</div>
-
 
385
							<div class="header_title col-xs-12 col-sm-8">
-
 
386
							<?php if ($service_wifi4eu_status): ?>
381
					<?php require_once(__DIR__.'/header.php'); ?>
387
								<img id="wifi4eubanner">
-
 
388
							<?php else: ?>
-
 
389
								<p class="login-status"><?= $l_login1 ?></p>
-
 
390
							<?php endif; ?>
-
 
391
							</div>
-
 
392
							<div class="header_img hidden-xs col-sm-2">	
-
 
393
								<img class="img-responsive image-resize" src="images/logo-alcasar.png" alt="logo">
-
 
394
							</div>
-
 
395
						</div>
-
 
396
					</div>
-
 
397
				</div>
382
				</div>
-
 
383
				
398
				<div class="row main_box">	
384
				<div class="row main_box">	
399
					<div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2">
385
					<div class="col-12 col-md-10 offset-md-1 col-lg-8 offset-lg-2">
400
						<div class="row background-display">
386
						<div class="row background-display">
401
							<div class="col-xs-12 col-sm-10 col-sm-offset-1">
387
							<div class="col-12 col-md-10 offset-sm-1 mx-auto">
402
								<div class="row">
388
								<div class="row d-block">
403
									<p class="welcome-user"><?= $l_welcome ?> <?= $cn ?></p>
389
									<p class="welcome-user"><?= $l_welcome ?> <?= $cn ?></p>
404
								</div>	
390
								</div>	
405
								<div class="row nb_open_session">
391
								<div class="row nb_open_session">
406
									<?= ((isset($nb_open_session) && ($nb_open_session > 1)) ? $l_a_connection.' '.$nb_open_session.' '.$l_a_connection_time : '') ?>
392
									<?= ((isset($nb_open_session) && ($nb_open_session > 1)) ? $l_a_connection.' '.$nb_open_session.' '.$l_a_connection_time : '') ?>
407
								</div>
393
								</div>
Line 414... Line 400...
414
										</tr>
400
										</tr>
415
										<tr id="sessionIdRow">
401
										<tr id="sessionIdRow">
416
											<td id="sessionIdLabel" class="chilliLabel"><strong><?= $l_session_id_label ?></strong></td>
402
											<td id="sessionIdLabel" class="chilliLabel"><strong><?= $l_session_id_label ?></strong></td>
417
											<td id="sessionId" class="chilliValue"><?= $l_not_available ?></td>
403
											<td id="sessionId" class="chilliValue"><?= $l_not_available ?></td>
418
										</tr>
404
										</tr>
419
			-->
405
										-->
420
										<tr id="sessionTimeoutRow" class="table-border">
406
										<tr id="sessionTimeoutRow" class="table-border">
421
											<td id="sessionTimeoutLabel" class="chilliLabel"><?= $l_max_session_time_label ?>: </td>
407
											<td id="sessionTimeoutLabel" class="chilliLabel"><?= $l_max_session_time_label ?>: </td>
422
											<td id="sessionTimeout" class="chilliValue"><?= $l_not_available ?></td>
408
											<td id="sessionTimeout" class="chilliValue"><?= $l_not_available ?></td>
423
										</tr>
409
										</tr>
424
										<tr id="idleTimeoutRow">
410
										<tr id="idleTimeoutRow">
Line 460... Line 446...
460
								</div>
446
								</div>
461
								<button onclick="return logoutWithConfirmation('<?= $l_logout_question ?>');" class="button btn btn-danger btn-md"><?= $l_logout ?></button>
447
								<button onclick="return logoutWithConfirmation('<?= $l_logout_question ?>');" class="button btn btn-danger btn-md"><?= $l_logout ?></button>
462
							</div>
448
							</div>
463
						</div>
449
						</div>
464
					</div>
450
					</div>
465
					<div class="hidden-xs hidden-sm hidden-md col-lg-2 history">
451
					<div class="d-sm-none d-lg-block col-lg-2 history mx-auto">
466
						<div class="row">
452
						<div class="row">
467
							<div class="hidden-xs col-lg-11 col-lg-offset-1 log-box">
453
							<div class="d-none d-sm-block col-lg-11 offset-lg-1 log-box">
468
								<div class="row log-titre">	
454
								<div class="row log-titre">	
469
									<div class="col-lg-12">
455
									<div class="col-lg-12">
470
									<?= $l_conn_history ?>
456
									<?= $l_conn_history ?>
471
									</div>
457
									</div>
472
								</div>
458
								</div>
Line 476... Line 462...
476
							</div>
462
							</div>
477
						</div>
463
						</div>
478
					</div>
464
					</div>
479
				</div>
465
				</div>
480
				<div class="row">
466
				<div class="row">
481
					<div class="col-xs-3 hidden-sm hidden-md hidden-lg">	
467
					<div class="col-3 d-sm-none d-md-none d-lg-none">	
482
						<img class="img-responsive image-resize-bottom" src="images/logo-alcasar.png" alt="logo">
468
						<img class="img-fluid image-resize-bottom" src="images/logo-alcasar.png" alt="logo">
483
					</div>
469
					</div>
484
					<div class="col-xs-6 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 hidden-lg history_bottom">
470
					<div class="col-6 col-md-10 offset-sm-1 col-lg-8 offset-lg-2 d-lg-none history_bottom">
485
						<div class="row log-titre-petit">	
471
						<div class="log-titre-petit">	
486
							<?= $l_conn_history ?>
472
							<?= $l_conn_history ?>
487
						</div>
473
						</div>
488
						<div class="row log-info-petit">
474
						<div class="log-info-petit">
489
							<?= $connection_history ?>
475
							<?= $connection_history ?>
490
						</div>
476
						</div>
491
					</div>
477
					</div>
492
				</div>
478
				</div>
493
			</div>
479
			</div>
494
			<div id="waitPage" class="col-xs-12 col-sm-12">
480
			<div id="waitPage" class="col-12 col-md-12">
495
				<div class="row waiting_box">
481
				<div class="row waiting_box">
496
					<div class="col-xs-3 col-sm-3 waiting_msg">
482
					<div class="col-3 col-md-3 waiting_msg">
497
						<img height="150" src="images/logo-alcasar.png" alt="logo">
483
						<img height="150" src="images/logo-alcasar.png" alt="logo">
498
					</div>
484
					</div>
499
					<div class="col-xs-6 col-sm-6 waiting_msg">
485
					<div class="col-6 col-md-6 waiting_msg">
500
						<p class="text_auth"><img src="images/wait.gif" width="16" height="16" class="wait" alt="<?= $l_wait ?>"><?= $l_wait ?></p>
486
						<p class="text_auth"><img src="images/wait.gif" width="16" height="16" class="wait" alt="<?= $l_wait ?>"><?= $l_wait ?></p>
501
					</div>
487
					</div>
502
				</div>
488
				</div>
503
			</div>
489
			</div>
504
			<div id="errorPage" class="col-xs-12 col-sm-12">
490
			<div id="errorPage" class="col-12 col-md-12">
505
				<div class="row error_box">
491
				<div class="row error_box">
506
					<div class="col-xs-3 col-sm-3 error_msg">
492
					<div class="col-3 col-md-3 error_msg">
507
						<img height="150" src="images/logo-alcasar.png" alt="logo">
493
						<img height="150" src="images/logo-alcasar.png" alt="logo">
508
					</div>
494
					</div>
509
					<div class="col-xs-6 col-sm-6 error_msg">
495
					<div class="col-6 col-md-6 error_msg">
510
						<p id="errorMessage"><?= $l_error ?></p>
496
						<p id="errorMessage"><?= $l_error ?></p>
511
					</div>
497
					</div>
512
				</div>
498
				</div>
513
			</div>
499
			</div>
514
		</div>
500
		</div>