X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4429121341de7727be26d56b9a1d7ada84359ea6..d5af98b63b3c812974dda6a554e0bf0aa59b96c0:/website/reverse.php?ds=sidebyside diff --git a/website/reverse.php b/website/reverse.php index ee6a6100..3f062f46 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -6,18 +6,6 @@ require_once(CONST_BasePath.'/lib/PlaceLookup.php'); require_once(CONST_BasePath.'/lib/ReverseGeocode.php'); - if (strpos(CONST_BulkUserIPs, ','.$_SERVER["REMOTE_ADDR"].',') !== false) - { - $fLoadAvg = getLoadAverage(); - if ($fLoadAvg > 2) sleep(60); - if ($fLoadAvg > 4) sleep(120); - if ($fLoadAvg > 6) - { - echo "Bulk User: Temporary block due to high server load\n"; - exit; - } - } - $oDB =& getDB(); ini_set('memory_limit', '200M'); @@ -60,6 +48,8 @@ $aPlace = $oReverseGeocode->lookup(); } + logEnd($oDB, $hLog, sizeof($aPlace)?1:0); + if (CONST_Debug) exit; include(CONST_BasePath.'/lib/template/address-'.$sOutputFormat.'.php');