73,31 → 73,6 |
$l_current_certificate = "Certificat actuel"; |
$l_validated = "Validé par :"; |
$l_empty = "Vide"; |
$l_yes = "Oui"; |
$l_no = "Non"; |
$l_allow_unsecured_login = "Autoriser les utilisateurs à se connecter de manière non sécurisée (HTTP) :"; |
$l_unsecured_login_warning = "/!\\ Les identifiants de connexion seront envoyés en clair."; |
$l_cert_expiration = "Date d'expiration :"; |
$l_cert_commonname = "Nom commun:"; |
$l_cert_organization = "Organisation:"; |
$l_upload_certificate = "Importer un certificat"; |
$l_le_integration = "Intégration Let's Encrypt"; |
$l_le_status = "Status :"; |
$l_disabled = "Inactif"; |
$l_pending_validation = "En attente de validation"; |
$l_enabled = "Actif"; |
$l_le_email = "Email :"; |
$l_le_domain_name = "Nom de domaine :"; |
$l_send = "Envoyer"; |
$l_le_ask_on = "Demandé le :"; |
$l_le_dns_entry_txt = "Entrée DNS TXT :"; |
$l_le_challenge = "Challenge :"; |
$l_recheck = "Revérifier"; |
$l_cancel = "Annuler"; |
$l_le_api = "API :"; |
$l_le_next_renewal = "Prochain renouvellement :"; |
$l_renew = "Renouveller"; |
$l_renew_force = "Renouveller (forcer)"; |
} else { // English |
$l_network_title = "Network configuration"; |
$l_internet_legend = "INTERNET"; |
128,31 → 103,6 |
$l_current_certificate = "Current certificate"; |
$l_validated = "Validated by :"; |
$l_empty = "Empty"; |
$l_yes = "Yes"; |
$l_no = "No"; |
$l_allow_unsecured_login = "Allow users to login with insecure connection (HTTP):"; |
$l_unsecured_login_warning = "/!\\ Credentials will be sent in plain text."; |
$l_cert_expiration = "Expiration date:"; |
$l_cert_commonname = "Common name:"; |
$l_cert_organization = "Organization:"; |
$l_upload_certificate = "Importer un certificat"; |
$l_le_integration = "Let's Encrypt integration"; |
$l_le_status = "Status:"; |
$l_disabled = "Disabled"; |
$l_pending_validation = "Pending validation"; |
$l_enabled = "Enabled"; |
$l_le_email = "Email:"; |
$l_le_domain_name = "Domain name:"; |
$l_send = "Send"; |
$l_le_ask_on = "Ask on:"; |
$l_le_dns_entry_txt = "DNS TXT entry:"; |
$l_le_challenge = "Challenge:"; |
$l_recheck = "Recheck"; |
$l_cancel = "Cancel"; |
$l_le_api = "API:"; |
$l_le_next_renewal = "Next renewal:"; |
$l_renew = "Renew"; |
$l_renew_force = "Renew (force)"; |
} |
|
$reg_ip = '/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/'; |
766,13 → 716,13 |
<td width="50%" valign="top"> |
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>"> |
<input type="hidden" name="choix" value="https_login"> |
<span><?= $l_allow_unsecured_login ?></span><br> |
<span>Autoriser les utilisateurs à se connecter de manière non sécurisée :</span><br> |
<select name="https_login"> |
<option value="on"<?= (($conf['HTTPS_LOGIN'] === 'on') ? ' selected' : '') ?>><?= $l_no ?></option> |
<option value="off"<?= (($conf['HTTPS_LOGIN'] === 'off') ? ' selected' : '') ?>><?= $l_yes ?></option> |
<option value="on"<?= (($conf['HTTPS_LOGIN'] === 'on') ? ' selected' : '') ?>>Non</option> |
<option value="off"<?= (($conf['HTTPS_LOGIN'] === 'off') ? ' selected' : '') ?>>Oui</option> |
</select> |
<input type="submit" value="<?= $l_apply ?>"><br> |
<span><?= $l_unsecured_login_warning ?></span> |
<span>/!\ Les identifiants de connexion seront envoyés en clair.</span> |
</form> |
<br> |
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>"> |
791,17 → 741,17 |
$CAorganization = (isset($certificateInfos['issuer']['O'])) ? $certificateInfos['issuer']['O'] : ''; |
?> |
<h3><?= $l_current_certificate ?></h3> |
<?= $l_cert_expiration ?> <?= $cert_expiration_date ?><br> |
<?= $l_cert_commonname ?> <?= $domain ?><br> |
<?= $l_cert_organization ?> <?= $organization ?><br/> |
Expiration Date : <?= $cert_expiration_date ?><br> |
Common name : <?= $domain ?><br> |
Organization : <?= $organization ?><br/> |
<h4><?= $l_validated ?></h4> |
<?= $l_cert_commonname ?> <?= $CAdomain ?><br> |
<?= $l_cert_organization ?> <?= $CAorganization ?><br> |
Common name : <?= $CAdomain ?><br> |
Organization : <?= $CAorganization ?><br> |
</td> |
</tr> |
<tr> |
<td width="50%" valign="top"> |
<h3><?= $l_upload_certificate ?></h3> |
<h3>Importer un certificat</h3> |
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>" enctype="multipart/form-data"> |
<?= $l_private_key;?> <input type="file" name="key"><br> |
<?= $l_certificate;?> <input type="file" name="crt"><br> |
823,36 → 773,36 |
$step = 1; |
} |
?> |
<h3><?= $l_le_integration ?></h3> |
<h3>Intégration Let's Encrypt</h3> |
<?php if ($step === 1): ?> |
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>"> |
<input type="hidden" name="choix" value="le_issueCert"> |
<?= $l_le_status ?> <?= $l_disabled ?><br> |
<?= $l_le_email ?> <input type="text" name="email" placeholder="adresse@email.com"<?= ((!empty($LE_conf['email'])) ? ' value="'.$LE_conf['email'].'"' : '') ?>><br> |
<?= $l_le_domain_name ?> <input type="text" name="domainname" placeholder="alcasar.domain.tld" required><br> |
<input type="submit" name="issue" value="<?= $l_send ?>"><br> |
Status : Inactif<br> |
Email : <input type="text" name="email" placeholder="adresse@email.com"<?= ((!empty($LE_conf['email'])) ? ' value="'.$LE_conf['email'].'"' : '') ?>><br> |
Nom de domaine : <input type="text" name="domainname" placeholder="alcasar.domain.tld" required><br> |
<input type="submit" name="issue" value="Envoyer"><br> |
</form> |
<?php elseif ($step === 2): ?> |
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>"> |
<input type="hidden" name="choix" value="le_renewCert"> |
<?= $l_le_status ?> <?= $l_pending_validation ?><br> |
<?= $l_le_domain_name ?> <?= $LE_conf['domainRequest'] ?><br> |
<?= $l_le_ask_on ?> <?= date('d-m-Y H:i:s', $LE_conf['dateIssueRequest']) ?><br> |
<?= $l_le_dns_entry_txt ?> "<?= '_acme-challenge.'.$LE_conf['domainRequest'] ?>"<br> |
<?= $l_le_challenge ?> "<?= $LE_conf['challenge'] ?>"<br> |
<input type="submit" name="recheck" value="<?= $l_recheck ?>"> <input type="submit" name="cancel" value="<?= $l_cancel ?>"><br> |
Status : En attente de validation<br> |
Nom de domaine : <?= $LE_conf['domainRequest'] ?><br> |
Demandé le : <?= date('d-m-Y H:i:s', $LE_conf['dateIssueRequest']) ?><br> |
Entrée DNS TXT : "<?= '_acme-challenge.'.$LE_conf['domainRequest'] ?>"<br> |
Challenge : "<?= $LE_conf['challenge'] ?>"<br> |
<input type="submit" name="recheck" value="Revérifier"> <input type="submit" name="cancel" value="Annuler"><br> |
</form> |
<?php elseif ($step === 3): ?> |
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>"> |
<input type="hidden" name="choix" value="le_renewCert"> |
<?= $l_le_status ?> <?= $l_enabled ?><br> |
<?= $l_le_domain_name ?> <?= $LE_conf['domainRequest'] ?><br> |
<?= $l_le_api ?> <?= $LE_conf['dnsapi'] ?><br> |
<?= $l_le_next_renewal ?> <?= date('d-m-Y', $LE_conf['dateNextRenewal']) ?><br> |
Status : Actif<br> |
Nom de domaine : <?= $LE_conf['domainRequest'] ?><br> |
API : <?= $LE_conf['dnsapi'] ?><br> |
Prochain renouvellement : <?= date('d-m-Y', $LE_conf['dateNextRenewal']) ?><br> |
<?php if ($LE_conf['dateNextRenewal'] <= date('U')): ?> |
<input type="submit" name="recheck" value="<?= $l_renew ?>"><br> |
<input type="submit" name="recheck" value="Renouveller"><br> |
<?php else: ?> |
<input type="submit" name="recheck_force" value="<?= $l_renew_force ?>"><br> |
<input type="submit" name="recheck_force" value="Renouveller (forcer)"><br> |
<?php endif; ?> |
</form> |
<?php endif; ?> |