X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=5b05c6883d5752fca768b7d5e36eddc70435ef12;hb=f8ae81cef2871be97c5466319efbafb23599baac;hp=8571c76d1bc89874c849e1cfc5fcef473cc81fc8;hpb=698268dca9fec84ee56bdad33209683c0c4148a9;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 8571c76..5b05c68 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -105,7 +105,7 @@ function index_wr_main(&$room, $remote_addr_full, $get, $post, $cookie) /* if the IP is banned, exit without do nothing */ if (array_search($remote_addr, $G_black_list) !== FALSE) { - sleep(5); + // TODO: find a way to add a nonblocking sleep(5) here return (FALSE); } @@ -199,6 +199,11 @@ function index_wr_main(&$room, $remote_addr_full, $get, $post, $cookie) // LACC UPDATED $user->lacc = $curtime; + if (array_search($user->ip, $G_black_list) !== FALSE) { + // TODO: find a way to add a nonblocking sleep(5) here + return (FALSE); + } + if ($argz[0] == 'ping') { log_wr("PING RECEIVED"); }