Don't send the unsage-IP connection warning more than once...
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Wed, 22 Aug 2007 14:57:16 +0000 (14:57 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Wed, 22 Aug 2007 14:57:16 +0000 (14:57 +0000)
 session.inc.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1927 839d8a87-29fc-0310-9880-83ba4fa771e5

include/xorg/session.inc.php

index d98f08e..3a251f9 100644 (file)
@@ -277,8 +277,8 @@ function start_connexion ($uid, $identified)
             $mail_subject .= ' - ';
         }
         $mail_subject .= "Une IP surveillee a tente de se connecter";
-        send_warning_mail($mail_subject);
         if (check_ip('ban')) {
+            send_warning_mail($mail_subject);
             $_SESSION = array();
             global $page;
             $page->trig("Une erreur est survenue lors de la procédure d'authentification. "