Skip to content
Extraits de code Groupes Projets
Valider 598a315c rédigé par Fil's avatar Fil
Parcourir les fichiers

bug a l'install si on a un auth-http (Alaiing & Constant Depièreux)

parent eb981875
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -181,11 +181,12 @@ function zap_sessions ($id_auteur, $zap) { ...@@ -181,11 +181,12 @@ function zap_sessions ($id_auteur, $zap) {
// reconnaitre un utilisateur authentifie en php_auth // reconnaitre un utilisateur authentifie en php_auth
// //
function verifier_php_auth() { function verifier_php_auth() {
global $_SERVER, $ignore_auth_http;
if ($_SERVER['PHP_AUTH_USER'] && $_SERVER['PHP_AUTH_PW'] if ($_SERVER['PHP_AUTH_USER'] && $_SERVER['PHP_AUTH_PW']
&& !$ignore_auth_http) { && !$GLOBALS['ignore_auth_http']) {
$login = addslashes($_SERVER['PHP_AUTH_USER']); $login = addslashes($_SERVER['PHP_AUTH_USER']);
$result = spip_query("SELECT * FROM spip_auteurs WHERE login='$login'"); $result = spip_query("SELECT * FROM spip_auteurs WHERE login='$login'");
if (!$GLOBALS['db_ok'])
return false;
$row = spip_fetch_array($result); $row = spip_fetch_array($result);
$auth_mdpass = md5($row['alea_actuel'] . $_SERVER['PHP_AUTH_PW']); $auth_mdpass = md5($row['alea_actuel'] . $_SERVER['PHP_AUTH_PW']);
if ($auth_mdpass != $row['pass']) { if ($auth_mdpass != $row['pass']) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter