From b420cb7108c920ec63c25492d6c8b3012c29bf3f Mon Sep 17 00:00:00 2001 From: jbousquie Date: Wed, 7 Dec 2016 14:45:31 +0100 Subject: [PATCH] =?UTF-8?q?fix=20Connexions=5Fblacklist=20:=20renvoie=20ma?= =?UTF-8?q?intenant=20tous=20les=20acc=C3=A8s=20BL,=20m=C3=AAme=20sans=20c?= =?UTF-8?q?onnexion=20ouverte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/connexions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/connexions.php b/admin/connexions.php index 64ee186..8f98f4c 100644 --- a/admin/connexions.php +++ b/admin/connexions.php @@ -267,7 +267,7 @@ function Connexions_blacklist_live($delay, &$machines) { $connexions_bl_live = array(); $db = db_connect(); - $req = 'select proxy.ip, proxy.username, target, hote from proxy left join connexions ON proxy.ip = connexions.ip where timestampdiff(SECOND, timestamp(logts), timestamp(now())) < '.$delay.' and connexions.close = 0'; // on récupère les logs non checkés datant moins de 15s + $req = 'select proxy.ip, proxy.username, target, hote from proxy left join connexions ON proxy.ip = connexions.ip where timestampdiff(SECOND, timestamp(logts), timestamp(now())) < '.($delay); // on récupère les logs non checkés datant moins de $delay $res = db_query($db, $req); $i = 0; while ($log = db_fetch_row($res)) {