45,11 → 45,11 |
|
$organisme = $conf["ORGANISM"]; |
$hostname = $conf["HOSTNAME"].'.'.$conf["DOMAIN"]; |
$ssl_enable = ($conf['HTTPS_LOGIN'] === 'on'); |
$protocol = ($ssl_enable) ? 'https://' : 'http://'; |
$ssl_status = ($conf['HTTPS_LOGIN'] === 'on'); |
$protocol = ($ssl_status) ? 'https://' : 'http://'; |
$useHTTPS = ((isset($_SERVER['HTTPS'])) && (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off')); |
$network_pb = false; // "alcasar-watchdog.sh" changes this value if a network issue is detected |
$diagnostic = "can't contact the default router"; // "alcasar-watchdog.sh" changes this value if a network issue is detected |
$network_pb = false; |
$diagnostic = "can't contact the default router"; |
$certCa_link = (($useHTTPS) ? 'https' : 'http')."://$hostname/certs/certificat_alcasar_ca.crt"; |
$logout_link = ((($conf['HTTPS_CHILLI'] === 'on') && $useHTTPS) ? 'https://'.$hostname.':3991' : 'http://'.$hostname.':3990').'/logoff'; |
$direct_access = false; |
56,9 → 56,9 |
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : ''; |
$connection_history = ''; |
$nb_connection_history = 3; |
$redirect_link = 'www.euronews.com'; // Default redirection for HTTPS interception (beware, this website must run in HTTP) |
|
// Check if the SMS service is enable |
$redirect_link = 'www.euronews.com'; // Default redirection for HTTP interception (beware, this website must run in HTTP) |
$service_wifi4eu_status = ($conf['WIFI4EU'] === 'on'); |
$service_wifi4eu_code = $conf['WIFI4EU_CODE']; |
$service_SMS_status = ($conf['SMS'] === 'on'); |
|
// Retrieve the user info behind the remote ip |
534,6 → 534,8 |
<link rel="stylesheet" type="text/css" href="<?= ((!$direct_access) ? "//$hostname" : '') ?>/css/bootstrap.min.css"> |
<link rel="stylesheet" type="text/css" href="/css/index.css"> |
<link rel="icon" href="/images/favicon-48.ico" type="image/ico"> |
<? |
?> |
</head> |
<body> |
<div class="col-xs-12 col-md-10 col-md-offset-1"> |