X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fsecurity.inc.php;h=d978e5df2c9de97fbb1706f59cc71ea4b5a4607e;hb=d82359a556779137f8a90d0312b3098a2db6f482;hp=2f77f826b99c4f81a96a9d03f822b0035cb6fac6;hpb=cecdf74795e71ed038411915dad5e0dff6ea51fa;p=platal.git diff --git a/include/security.inc.php b/include/security.inc.php index 2f77f82..d978e5d 100644 --- a/include/security.inc.php +++ b/include/security.inc.php @@ -1,6 +1,6 @@ numRows()) { + $res = XDB::fetchOneCell('SELECT COUNT(*) + FROM email_watch + WHERE state != \'safe\' AND email = {?}', + $email); + if ($res) { send_warning_mail($message); return true; }