Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: index.php 3034 2022-07-06 09:19:47Z rexy $
|
2 |
# $Id: index.php 3097 2022-12-12 18:35:11Z rexy $
|
3 |
#
|
3 |
#
|
4 |
# index.php for ALCASAR by Rexy
|
4 |
# index.php for ALCASAR by Rexy
|
5 |
# UI & css style by Stéphane ERARD & Alexandre VEZIN
|
5 |
# UI & css style by Stéphane ERARD & Alexandre VEZIN
|
6 |
# The contents of this file may be used under the terms of the GNU
|
6 |
# The contents of this file may be used under the terms of the GNU
|
7 |
# General Public License Version 2, provided that the above copyright
|
7 |
# General Public License Version 2, provided that the above copyright
|
Line 55... |
Line 55... |
55 |
$logout_link = ((($conf['HTTPS_CHILLI'] === 'on') && $useHTTPS) ? 'https://'.$hostname.':3991' : 'http://'.$hostname.':3990').'/logoff';
|
55 |
$logout_link = ((($conf['HTTPS_CHILLI'] === 'on') && $useHTTPS) ? 'https://'.$hostname.':3991' : 'http://'.$hostname.':3990').'/logoff';
|
56 |
$direct_access = false;
|
56 |
$direct_access = false;
|
57 |
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
|
57 |
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
|
58 |
$connection_history = '';
|
58 |
$connection_history = '';
|
59 |
$nb_connection_history = 3;
|
59 |
$nb_connection_history = 3;
|
60 |
$redirect_link = 'www.euronews.com'; // Default redirection for HTTP interception (beware, this website must run in HTTP)
|
60 |
$redirect_link = 'neverssl.com'; // Default redirection for HTTP interception (other HTTP URLs : fixwifi.it, euronews.com, etc.)
|
61 |
$service_wifi4eu_status = ($conf['WIFI4EU'] === 'on');
|
61 |
$service_wifi4eu_status = ($conf['WIFI4EU'] === 'on');
|
62 |
$service_wifi4eu_code = $conf['WIFI4EU_CODE'];
|
62 |
$service_wifi4eu_code = $conf['WIFI4EU_CODE'];
|
63 |
$service_wifi4eu_server = 'https://collection.wifi4eu.ec.europa.eu/wifi4eu.min.js';
|
63 |
$service_wifi4eu_server = 'https://collection.wifi4eu.ec.europa.eu/wifi4eu.min.js';
|
64 |
$service_SMS_status = ($conf['SMS'] === 'on');
|
64 |
$service_SMS_status = ($conf['SMS'] === 'on');
|
65 |
$service_Email_status = ($conf['MAIL'] === 'on');
|
65 |
$service_Email_status = ($conf['MAIL'] === 'on');
|