diff options
| author | 2014-01-18 21:26:33 +0100 | |
|---|---|---|
| committer | 2014-01-18 21:26:33 +0100 | |
| commit | 5f0594c630028b8612b57da15bcdf00a932930bc (patch) | |
| tree | 25b74fac7f6bf2a3d9d84324b8ebaf7f852e2b06 /p/i | |
| parent | fdd179d344dbe8734480b83bb7a0fba189275d5a (diff) | |
Désactive l'identification par formulaire en dessous de PHP 5.3
PHP 5.3 est sorti en juin 2009.
https://github.com/ircmaxell/password_compat
Pour plus de tranquillité (compatibilité et sécurité), il faudrait même
désactiver en dessous de PHP 5.3.7 (août 2011)
Diffstat (limited to 'p/i')
| -rw-r--r-- | p/i/install.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/p/i/install.php b/p/i/install.php index 18dfc1449..7ce4a5ccc 100644 --- a/p/i/install.php +++ b/p/i/install.php @@ -806,7 +806,7 @@ function printStep2 () { <div class="group-controls"> <select id="auth_type" name="auth_type" required="required"> <option value=""></option> - <option value="form"<?php echo $_SESSION['auth_type'] === 'form' ? ' selected="selected"' : ''; ?>><?php echo _t('auth_form'); ?></option> + <option value="form"<?php echo $_SESSION['auth_type'] === 'form' ? ' selected="selected"' : '', version_compare(PHP_VERSION, '5.3', '<') ? ' disabled="disabled"' : ''; ?>><?php echo _t('auth_form'); ?></option> <option value="persona"<?php echo $_SESSION['auth_type'] === 'persona' ? ' selected="selected"' : ''; ?>><?php echo _t('auth_persona'); ?></option> <option value="http_auth"<?php echo $_SESSION['auth_type'] === 'http_auth' ? ' selected="selected"' : '', httpAuthUser() == '' ? ' disabled="disabled"' : ''; ?>><?php echo _t('http_auth'); ?> (REMOTE_USER = '<?php echo httpAuthUser(); ?>')</option> <option value="none"<?php echo $_SESSION['auth_type'] === 'none' ? ' selected="selected"' : ''; ?>><?php echo _t('auth_none'); ?></option> |
