A free, self-hostable news aggregator…
Désactive l'identification par formulaire en dessous de PHP 5.3
Alexandre Alapetite5f0594c63002
diff --git a/CHANGELOG b/CHANGELOGindex 9a0ae1f61..f72bd8ff5 100644--- a/CHANGELOG+++ b/CHANGELOG@@ -7,6 +7,7 @@* Nécessite un contrôle d’accès, soit :* par le nouveau mode de connexion par formulaire (nom d’utilisateur + mot de passe)* relativement sûr même sans HTTPS (le mot de passe n’est pas transmis en clair)+ * requiert JavaScript et PHP 5.3+* par HTTP (par exemple sous Apache en créant un fichier ./p/i/.htaccess et .htpasswd)* le nom d’utilisateur HTTP doit correspondre au nom d’utilisateur FreshRSS* par Mozilla Persona, en renseignant l’adresse courriel des utilisateursdiff --git a/README.md b/README.mdindex 4100a8638..abc40d489 100644--- a/README.md+++ b/README.md@@ -25,7 +25,7 @@ Privilégiez pour cela des demandes sur GitHub* Serveur modeste, par exemple sous Linux ou Windows* Fonctionne même sur un Raspberry Pi avec des temps de réponse < 1s (testé sur 150 flux, 22k articles, soit 32Mo de données partiellement compressées)* Serveur Web Apache2 ou Nginx (non testé sur les autres)-* PHP 5.2+ (PHP 5.3.4+ recommandé)+* PHP 5.2+ (PHP 5.3.7+ recommandé)* Requis : [PDO_MySQL](http://php.net/pdo-mysql), [cURL](http://php.net/curl), [LibXML](http://php.net/xml), [PCRE](http://php.net/pcre), [ctype](http://php.net/ctype)* Recommandés : [JSON](http://php.net/json), [zlib](http://php.net/zlib), [mbstring](http://php.net/mbstring), [iconv](http://php.net/iconv)* MySQL 5.0.3+ (ou SQLite 3.7.4+ à venir)diff --git a/app/views/configure/users.phtml b/app/views/configure/users.phtmlindex 3f352f9bf..41129333c 100644--- a/app/views/configure/users.phtml+++ b/app/views/configure/users.phtml@@ -50,7 +50,7 @@<div class="group-controls"><select id="auth_type" name="auth_type" required="required"><option value=""></option>- <option value="form"<?php echo Minz_Configuration::authType() === 'form' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t('auth_form'); ?></option>+ <option value="form"<?php echo Minz_Configuration::authType() === 'form' ? ' selected="selected"' : '', version_compare(PHP_VERSION, '5.3', '<') ? ' disabled="disabled"' : ''; ?>><?php echo Minz_Translate::t('auth_form'); ?></option><option value="persona"<?php echo Minz_Configuration::authType() === 'persona' ? ' selected="selected"' : '', $this->conf->mail_login == '' ? ' disabled="disabled"' : ''; ?>><?php echo Minz_Translate::t('auth_persona'); ?></option><option value="http_auth"<?php echo Minz_Configuration::authType() === 'http_auth' ? ' selected="selected"' : '', httpAuthUser() == '' ? ' disabled="disabled"' : ''; ?>><?php echo Minz_Translate::t('http_auth'); ?> (REMOTE_USER = '<?php echo httpAuthUser(); ?>')</option><option value="none"<?php echo Minz_Configuration::authType() === 'none' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t('auth_none'); ?></option>diff --git a/p/i/install.php b/p/i/install.phpindex 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>