From ab33a0ce2ba7b2751fa6e360e3d7f011e9069f06 Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Fri, 26 Oct 2012 08:19:41 +0200 Subject: [PATCH] is_proxy disabled to verify performances problem --- web/Obj/proxyscan.phh | 10 +++++++++- web/spush/brisk-spush.php | 5 +++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/web/Obj/proxyscan.phh b/web/Obj/proxyscan.phh index 662ccb2..8d78a6a 100644 --- a/web/Obj/proxyscan.phh +++ b/web/Obj/proxyscan.phh @@ -54,6 +54,10 @@ class proxy_detector { ); } + /* + function exists_in_rbl($remote) + verify if an host is into a proxy black list or not + */ function exists_in_rbl($remote) { $rbls = array('http.dnsbl.sorbs.net', 'misc.dnsbl.sorbs.net'); // $remote = $_SERVER['REMOTE_ADDR']; @@ -125,7 +129,7 @@ class proxy_detector { /** - * BOOL $proxy = detect( VOID ) + * BOOL $proxy = detect( $addr ) * Start detection and return TRUE if a proxy server is detected... */ function detect($addr){ @@ -179,6 +183,10 @@ class proxy_detector { //init class function is_proxy($addr) { + /* FIXME: test to verify reasons of poor multitasking performances */ + return (FALSE); + /* FIXME: end */ + $proxy = new proxy_detector(); //start detect diff --git a/web/spush/brisk-spush.php b/web/spush/brisk-spush.php index 3a1d65f..ac4195a 100755 --- a/web/spush/brisk-spush.php +++ b/web/spush/brisk-spush.php @@ -23,8 +23,8 @@ * * TODO * - * - BUG: fast loop on stream index_rd_ifra page - * + * - DNS access + * - unneeded garbage_time.expired access * - centralize all '