diff --git a/fonctions.php b/fonctions.php index adc128b..b7cc066 100644 --- a/fonctions.php +++ b/fonctions.php @@ -111,7 +111,7 @@ function is_error($cerr) function is_user() { - return isset($_SERVER['REMOTE_USER']) || (isset($_SESSION['nom'])); + return ( USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']) ) || (isset($_SESSION['nom'])); } @@ -216,4 +216,4 @@ define('NO_POLL_ID', 0x0001000000); define('INVALID_EMAIL', 0x0010000000); define('TITLE_EMPTY', 0x0100000000); define('INVALID_DATE', 0x1000000000); -$err = 0; \ No newline at end of file +$err = 0; diff --git a/infos_sondage.php b/infos_sondage.php index 9c56dea..1384d1a 100644 --- a/infos_sondage.php +++ b/infos_sondage.php @@ -192,7 +192,7 @@ if ($erreur_injection_commentaires) { echo ''."\n"; echo '