Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2608 → Rev 2609

/web/acc/admin/network.php
75,8 → 75,7
$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_ssl_title = "Chiffrer les flux réseau entre les utilisateurs et ALCASAR";
$l_cert_expiration = "Date d'expiration :";
$l_cert_commonname = "Nom commun :";
$l_cert_organization = "Organisation :";
130,8 → 129,7
$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_ssl_title = "Cypher the network flows between users and ALCASAR";
$l_cert_expiration = "Expiration date:";
$l_cert_commonname = "Common name:";
$l_cert_organization = "Organization:";
758,6 → 756,26
<br>
 
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><th><?= $l_ssl_title?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</table>
<table width="100%" cellspacing="0" cellpadding="5" border="1">
<tr><td valign="middle" align="left">
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>">
<input type="hidden" name="choix" value="https_login">
<span><?= $l_allow_unsecured_login ?></span><br>
<select name="https_login">
<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>
</form>
<br>
</td></tr>
</table>
<br>
 
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><th><?= $l_import_cert ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
</table>
764,23 → 782,6
<table width="100%" cellspacing="0" cellpadding="5" border="1">
<tr>
<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>
<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>
</select>
<input type="submit" value="<?= $l_apply ?>"><br>
<span><?= $l_unsecured_login_warning ?></span>
</form>
<br>
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>">
<input type="hidden" name="choix" value="default_cert">
<input type="submit" value="<?= $l_default_cert ?>" <?= (!file_exists('/etc/pki/tls/certs/alcasar.crt.old') || !file_exists('/etc/pki/tls/private/alcasar.key.old')) ? ' disabled' : '' ?>>
</form>
</td>
<td width="50%" valign="top">
<?php
$certificateInfos = openssl_x509_parse(file_get_contents('/etc/pki/tls/certs/alcasar.crt'));
 
798,6 → 799,12
<?= $l_cert_commonname ?> <?= $CAdomain ?><br>
<?= $l_cert_organization ?> <?= $CAorganization ?><br>
</td>
<td width="50%" valign="center">
<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>">
<input type="hidden" name="choix" value="default_cert">
<input type="submit" value="<?= $l_default_cert ?>" <?= (!file_exists('/etc/pki/tls/certs/alcasar.crt.old') || !file_exists('/etc/pki/tls/private/alcasar.key.old')) ? ' disabled' : '' ?>>
</form>
</td>
</tr>
<tr>
<td width="50%" valign="top">