| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
# $Id: index.php 3325 2026-02-25 18:36:04Z rexy $
|
2 |
# $Id: index.php 3326 2026-03-01 22:35:33Z 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 50... |
Line 50... |
| 50 |
$protocol = ($ssl_status) ? 'https://' : 'http://';
|
50 |
$protocol = ($ssl_status) ? 'https://' : 'http://';
|
| 51 |
$useHTTPS = ((isset($_SERVER['HTTPS'])) && (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off'));
|
51 |
$useHTTPS = ((isset($_SERVER['HTTPS'])) && (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off'));
|
| 52 |
$network_pb = false;
|
52 |
$network_pb = false;
|
| 53 |
$diagnostic = "can't contact the default router";
|
53 |
$diagnostic = "can't contact the default router";
|
| 54 |
$certCa_link = (($useHTTPS) ? 'https' : 'http')."://$hostname/certs/certificat_alcasar_ca.crt";
|
54 |
$certCa_link = (($useHTTPS) ? 'https' : 'http')."://$hostname/certs/certificat_alcasar_ca.crt";
|
| 55 |
$logout_link = ((($conf['HTTPS_CHILLI'] === 'on') && $useHTTPS) ? 'https://'.$hostname.':3991' : 'http://'.$hostname.':3990').'/logoff';
|
55 |
$logout_link = ((($conf['HTTPS_LOGIN'] === '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 = 'neverssl.com'; // Default redirection for HTTP interception (other HTTP URLs : fixwifi.it, euronews.com, etc.)
|
60 |
$redirect_link = 'neverssl.com'; // Default redirection for HTTP interception (other HTTP URLs : fixwifi.it, euronews.com, etc.)
|