59,6 → 59,7 |
$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_wifi4eu_server = 'https://collection.wifi4eu.ec.europa.eu/wifi4eu.min.js'; |
$service_SMS_status = ($conf['SMS'] === 'on'); |
|
// Retrieve the user info behind the remote ip |
458,8 → 459,8 |
$fileContent = file(DOMAIN_ALLOWED_LIST); if ($fileContent) { // the file isn't empty |
foreach ($fileContent as $line) { |
if (!empty(trim($line))) { |
$domain_fields = explode('#', $line); |
if (!empty(trim($domain_fields[1]))) { |
if (strpos ($line, '#')) { // the domain should be displayed |
$domain_fields = explode('#', $line); |
$domain = explode('"', $domain_fields[0]); |
$domain[1] = ltrim($domain[1], '.'); // remove every '.' from the beginning of domain |
$domainsAllowed[] = (object) [ |
534,8 → 535,15 |
<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"> |
<? |
?> |
<? if ($service_wifi4eu_status): ?> |
<script type="text/javascript"> |
var wifi4euTimerStart = Date.now(); |
var wifi4euNetworkIdentifier = '<?= $service_wifi4eu_code ?>'; |
var wifi4euLanguage = '<?= $Language ?>'; |
//var selftestModus = true; |
</script> |
<script type="text/javascript" src="<?= $service_wifi4eu_server ?>"></script> |
<? endif; ?> |
</head> |
<body> |
<div class="col-xs-12 col-md-10 col-md-offset-1"> |
550,7 → 558,11 |
<!-- Title --> |
<div id="cadre_titre" class="titre_banner col-xs-12 col-sm-8"> |
<?php if ($direct_access): ?> |
<p id="acces_controle" class="titre_controle"><?= $l_title ?></p> |
<?php if ($service_wifi4eu_status): ?> |
<img id="wifi4eubanner"> |
<?php else: ?> |
<p id="acces_controle" class="titre_controle"><?= $l_title ?></p> |
<?php endif; ?> |
<?php if ($network_pb): ?> |
<div class="explanation_net_pb"><?= $l_explain_net_pb ?></div> |
<?php endif; ?> |