Subversion Repositories ALCASAR

Rev

Rev 2592 | Rev 2605 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2592 Rev 2600
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 2592 2018-08-18 22:09:42Z rexy $
2
# $Id: index.php 2600 2018-08-19 23:48:55Z tom.houdayer $
3
#
3
#
4
# index.php for ALCASAR by Rexy
4
# index.php for ALCASAR by Rexy
5
# UI & css style by stephane ERARD
5
# UI & css style by stephane ERARD
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 56... Line 56...
56
$nb_connection_history = 3;
56
$nb_connection_history = 3;
57
 
57
 
58
$redirect_link = 'www.euronews.com'; // Default redirection for HTTPS interception (beware, this website must run in HTTP)
58
$redirect_link = 'www.euronews.com'; // Default redirection for HTTPS interception (beware, this website must run in HTTP)
59
 
59
 
60
// Check if the SMS service is enable
60
// Check if the SMS service is enable
61
$service_SMS_status = false;
61
$service_SMS_status = ($conf['SMS'] === 'on');
62
 
62
 
63
// Retrieve the user info behind the remote ip
63
// Retrieve the user info behind the remote ip
64
$output = [];
64
$output = [];
65
exec('sudo /usr/sbin/chilli_query list | grep -Ew '.escapeshellarg($remote_ip), $output);
65
exec('sudo /usr/sbin/chilli_query list | grep -Ew '.escapeshellarg($remote_ip), $output);
66
if (!empty($output)) {
66
if (!empty($output)) {