From: Brian Quinion Date: Sat, 8 Dec 2012 17:43:18 +0000 (+0000) Subject: remove debug X-Git-Tag: v2.2.0~170 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/a723b942915a2f59bfc2c4d2e701ad720530627e?ds=sidebyside remove debug --- diff --git a/lib/init-website.php b/lib/init-website.php index 896a7b24..40e4713e 100644 --- a/lib/init-website.php +++ b/lib/init-website.php @@ -1,8 +1,4 @@ x"; -//exit; -//phpinfo(); -//exit; require_once('init.php'); if (CONST_ClosedForIndexing && strpos(CONST_ClosedForIndexingExceptionIPs, ','.$_SERVER["REMOTE_ADDR"].',') === false) @@ -12,6 +8,7 @@ } $aBucketKeys = array(); + if (isset($_SERVER["HTTP_REFERER"])) $aBucketKeys[] = str_replace('www.','',strtolower(parse_url($_SERVER["HTTP_REFERER"], PHP_URL_HOST))); if (isset($_SERVER["REMOTE_ADDR"])) $aBucketKeys[] = $_SERVER["REMOTE_ADDR"]; if (isset($_GET["email"])) $aBucketKeys[] = $_GET["email"]; @@ -32,6 +29,5 @@ { sleep(($fBucketVal - CONST_ConnectionBucket_WaitLimit)/CONST_ConnectionBucket_LeakRate); } -var_dump($fBucketVal); -exit; + header('Content-type: text/html; charset=utf-8');