920,6 → 920,9 |
</script> |
</head> |
<body> |
<div id="ldoverlay" class="overlay"> |
<div class="lds-spinner" id="spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div> |
</div> |
<div class="panel"> |
<div class="panel-header"><?= $l_network_title ?></div> |
<div class="panel-row"> |
1014,7 → 1017,7 |
<hr> |
<div style="text-align: center; margin: 5px"> |
<input type="hidden" name="choix" value="network_change"> |
<input type="submit" value="<?= $l_apply ?>"> |
<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" value="<?= $l_apply ?>"> |
</div> |
</form> |
</div> |
1061,7 → 1064,7 |
</table> |
<?php if ($line_exist): ?> |
<input type="hidden" name="choix" value="del_mac"> |
<input type="submit" value="<?= $l_apply ?>"> |
<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" value="<?= $l_apply ?>"> |
<?php endif; ?> |
</form> |
</td><td width="50%" valign="middle" align="center"> |
1074,7 → 1077,7 |
<td><input type="text" name="info" size="10"></td> |
<td> |
<input type="hidden" name="choix" value="new_mac"> |
<input type="submit" class="button" value="<?= $l_add_to_list ?>" onclick="return MAC_Control('new_mac');"> |
<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" class="button" value="<?= $l_add_to_list ?>" onclick="return MAC_Control('new_mac');"> |
</td> |
</tr></table> |
</form> |
1119,7 → 1122,7 |
</table> |
<?php if ($line_exist): ?> |
<input type="hidden" name="choix" value="del_host"> |
<input type="submit" value="<?= $l_apply ?>"> |
<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" value="<?= $l_apply ?>"> |
<?php endif; ?> |
</form> |
</td> |
1135,7 → 1138,7 |
<tr> |
<td><input type="text" name="add_ip" size="10"><input type="hidden" name="choix" value="new_host"></td> |
<td><input type="text" name="add_host" size="17"></td> |
<td><input type=submit class=button value="<?= $l_add_to_list ?>"></td> |
<td><input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" class="button" value="<?= $l_add_to_list ?>"></td> |
</tr> |
</table> |
</form> |
1152,7 → 1155,7 |
<option value="on"<?= (($conf['HTTPS_LOGIN'] === 'on') ? ' selected' : '') ?>><?= $l_yes ?></option> |
<option value="off"<?= (($conf['HTTPS_LOGIN'] === 'off') ? ' selected' : '') ?>><?= $l_no ?></option> |
</select> |
<input type="submit" value="<?= $l_apply ?>"><br> |
<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" value="<?= $l_apply ?>"><br> |
</form> |
</div> |
</div> |
1180,12 → 1183,12 |
if (file_exists('/etc/pki/tls/certs/alcasar.crt.old') && file_exists('/etc/pki/tls/private/alcasar.key.old')){ // An old default certificate exist ? |
echo "<form method=\"post\" action=\"".htmlspecialchars($_SERVER['PHP_SELF'])."\">\n"; |
echo "\t\t\t\t<input type=\"hidden\" name=\"choix\" value=\"set_default_cert\">\n"; |
echo "\t\t\t\t<input type=\"submit\" value=\"$l_default_cert\"> (alcasar.localdomain)<br>\n"; |
echo "\t\t\t\t<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" value=\"$l_default_cert\"> (alcasar.localdomain)<br>\n"; |
echo "\t\t\t</form>\n";} |
if (!empty($LE_conf['domainRequest']) && ($domain != $LE_conf['domainRequest'])) { // A Let's encrypt certificate exist & it's not the active one ? |
echo "\t\t\t<form method=\"post\" action=\"".htmlspecialchars($_SERVER['PHP_SELF'])."\">\n"; |
echo "\t\t\t\t<input type=\"hidden\" name=\"choix\" value=\"set_last_LE_cert\">\n"; |
echo "\t\t\t\t<input type=\"submit\" value=\"".$l_previous_LE_cert."\"> (".$LE_conf['domainRequest'].")\n"; |
echo "\t\t\t\t<input type=\"submit\" onClick=\"document.getElementById('ldoverlay').style.display='block';\" value=\"".$l_previous_LE_cert."\"> (".$LE_conf['domainRequest'].")\n"; |
echo "\t\t\t</form>\n";} |
?> |
</div> |
1198,7 → 1201,7 |
<?= $l_certificate;?> <input type="file" name="crt"><br> |
<?= $l_server_chain;?> <input type="file" name="sc"><br> |
<input type="hidden" name="choix" value="import_cert"> |
<input type="submit" value="<?= $l_import ?>"> |
<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" value="<?= $l_import ?>"> |
</form> |
</div> |
<div class="panel-cell"> |
1221,7 → 1224,7 |
<?= $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> |
<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" name="issue" value="<?= $l_send ?>"><br> |
</form> |
<?php elseif ($step === 2): ?> |
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>"> |
1231,7 → 1234,7 |
<?= $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> |
<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" name="recheck" value="<?= $l_recheck ?>"> <input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" name="cancel" value="<?= $l_cancel ?>"><br> |
</form> |
<?php elseif ($step === 3): ?> |
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>"> |
1241,9 → 1244,9 |
<?= $l_le_api ?> <?= $LE_conf['dnsapi'] ?><br> |
<?= $l_le_next_renewal ?> <?= 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" onClick="document.getElementById('ldoverlay').style.display='block';" name="recheck" value="<?= $l_renew ?>"><br> |
<?php else: ?> |
<input type="submit" name="recheck_force" value="<?= $l_renew_force ?>"><br> |
<input type="submit" onClick="document.getElementById('ldoverlay').style.display='block';" name="recheck_force" value="<?= $l_renew_force ?>"><br> |
<?php endif; ?> |
</form> |
<?php endif; ?> |