From 2ad212f83e0a32e3d4b75b8576626079701ff5c6 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sun, 20 Apr 2008 09:15:10 +0000 Subject: [PATCH] black list added --- web/index_wr.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/web/index_wr.php b/web/index_wr.php index 51fc94a..1fa59e8 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -33,18 +33,23 @@ require_once("briskin5/Obj/briskin5.phh"); // sleep(5); // exit; // } -log_load("index_rd.php"); +log_load("index_wr.php"); if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') { echo "Debugging time!"; exit; } -log_load("index_wr.php"); - /* * MAIN */ + +/* if the IP is banned, exit without do nothing */ +if (array_search($_SERVER['REMOTE_ADDR'], $G_black_list) !== FALSE) { + sleep(5); + exit; +} + $is_spawn = FALSE; log_wr('COMM: '.$mesg); -- 2.17.1