Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 3033 → Rev 3034

/CHANGELOG
8,6 → 8,7
- Add a third RPM repository (http://ftp.free.fr)
- Improve firewall local rules
- Add SMTP to the list of openned ports (for filtered users)
- Adapt user page when HTTPS is enabled with an official certificate
ACC
- avoid password preload text in password forms
- improve "let's encrypt" & "Internet connexion" forms
/web/index.php
63,6 → 63,8
$service_wifi4eu_server = 'https://collection.wifi4eu.ec.europa.eu/wifi4eu.min.js';
$service_SMS_status = ($conf['SMS'] === 'on');
$service_Email_status = ($conf['MAIL'] === 'on');
$certificateInfos = openssl_x509_parse(file_get_contents('/etc/pki/tls/certs/alcasar.crt'));
$cert_autoissued = ($certificateInfos["subject"]["O"] == $certificateInfos["issuer"]["O"]);
 
// Retrieve the user info behind the remote ip
$output = [];
139,6 → 141,11
}
}
 
if(!$cert_autoissued && !isset($_SERVER["HTTPS"])){
header("Location: https://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"], true, 301);
exit();
}
 
// Choice of language
$Language = 'en';
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
579,12 → 586,14
</div>
</div>
 
<div class="box_menu_right box_menu" id="box_certif">
<span><a href="<?= $certCa_link ?>"><?= $l_install_certif ?></a></span>
<div class="menu-image">
<img class="img-fluid" src="<?= $img_rep.$img_certificate ?>">
<?php if ($cert_autoissued): ?>
<div class="box_menu_right box_menu" id="box_certif">
<span><a href="<?= $certCa_link ?>"><?= $l_install_certif ?></a></span>
<div class="menu-image">
<img class="img-fluid" src="<?= $img_rep.$img_certificate ?>">
</div>
</div>
</div>
<?php endif; ?>
 
<div class="box_menu" id="box_mdp" >
<div class="menu-image">