| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
# $Id: index.php 3180 2024-03-04 17:33:37Z rexy $
|
2 |
# $Id: index.php 3325 2026-02-25 18:36:04Z 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 62... |
Line 62... |
| 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');
|
| 66 |
$certificateInfos = openssl_x509_parse(file_get_contents('/etc/pki/tls/certs/alcasar.crt'));
|
66 |
$certificateInfos = openssl_x509_parse(file_get_contents('/etc/pki/tls/certs/alcasar.crt'));
|
| - |
|
67 |
$cert_autoissued = false;
|
| - |
|
68 |
if (isset($certificateInfos["subject"]["O"], $certificateInfos["issuer"]["O"])) {
|
| 67 |
$cert_autoissued = ($certificateInfos["subject"]["O"] == $certificateInfos["issuer"]["O"]);
|
69 |
$cert_autoissued = ($certificateInfos["subject"]["O"] == $certificateInfos["issuer"]["O"]);
|
| - |
|
70 |
}
|
| 68 |
|
71 |
|
| 69 |
// Retrieve the user info behind the remote ip
|
72 |
// Retrieve the user info behind the remote ip
|
| 70 |
$output = [];
|
73 |
$output = [];
|
| 71 |
exec('sudo /usr/sbin/chilli_query list ip '.escapeshellarg($remote_ip), $output);
|
74 |
exec('sudo /usr/sbin/chilli_query list ip '.escapeshellarg($remote_ip), $output);
|
| 72 |
if (!empty($output)) {
|
75 |
if (!empty($output)) {
|