Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: index.php 2833 2020-06-14 10:13:18Z rexy $
|
2 |
# $Id: index.php 2837 2020-06-16 22:24:15Z rexy $
|
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 44... |
Line 44... |
44 |
fclose($file_conf);
|
44 |
fclose($file_conf);
|
45 |
|
45 |
|
46 |
$organisme = $conf["ORGANISM"];
|
46 |
$organisme = $conf["ORGANISM"];
|
47 |
$hostname = $conf["HOSTNAME"].'.'.$conf["DOMAIN"];
|
47 |
$hostname = $conf["HOSTNAME"].'.'.$conf["DOMAIN"];
|
48 |
$ssl_enable = ($conf['HTTPS_LOGIN'] === 'on');
|
48 |
$ssl_enable = ($conf['HTTPS_LOGIN'] === 'on');
|
49 |
$protocol = ($ssl_enable) ? 'https//' : 'http://';
|
49 |
$protocol = ($ssl_enable) ? 'https://' : 'http://';
|
50 |
$useHTTPS = ((isset($_SERVER['HTTPS'])) && (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off'));
|
50 |
$useHTTPS = ((isset($_SERVER['HTTPS'])) && (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off'));
|
51 |
$network_pb = false; // "alcasar-watchdog.sh" changes this value if a network issue is detected
|
51 |
$network_pb = false; // "alcasar-watchdog.sh" changes this value if a network issue is detected
|
52 |
$diagnostic = "can't contact the default router"; // "alcasar-watchdog.sh" changes this value if a network issue is detected
|
52 |
$diagnostic = "can't contact the default router"; // "alcasar-watchdog.sh" changes this value if a network issue is detected
|
53 |
$certCa_link = (($useHTTPS) ? 'https' : 'http')."://$hostname/certs/certificat_alcasar_ca.crt";
|
53 |
$certCa_link = (($useHTTPS) ? 'https' : 'http')."://$hostname/certs/certificat_alcasar_ca.crt";
|
54 |
$logout_link = ((($conf['HTTPS_CHILLI'] === 'on') && $useHTTPS) ? 'https://'.$hostname.':3991' : 'http://'.$hostname.':3990').'/logoff';
|
54 |
$logout_link = ((($conf['HTTPS_CHILLI'] === 'on') && $useHTTPS) ? 'https://'.$hostname.':3991' : 'http://'.$hostname.':3990').'/logoff';
|