X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fsecurity.inc.php;h=d978e5df2c9de97fbb1706f59cc71ea4b5a4607e;hb=bd5dad646a43b336ede8c679389a3448b5d7f2a3;hp=2f77f826b99c4f81a96a9d03f822b0035cb6fac6;hpb=12ddbc2037b16496dfb9d91c4f7091850146fcde;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; }