]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
hint blocked IPs about missing UA
[nominatim.git] / website / reverse.php
index f6925846a172c75012f80b90316147b7034e1bb5..134b5e4e84d76cdb8ba6d12243b62993d6e71027 100755 (executable)
@@ -4,18 +4,6 @@
        require_once(dirname(dirname(__FILE__)).'/lib/init-website.php');
        require_once(CONST_BasePath.'/lib/log.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');
 
                        $aPlace = $oDB->getRow($sSQL);
                        if (PEAR::IsError($aPlace))
                        {
-                               failInternalError("Could not determine closest place.", $sSQL, $iPlaceID);
+                               failInternalError("Could not determine closest place.", $sSQL, $aPlace);
                        }
                        $iPlaceID = $aPlace['place_id'];
                        $iParentPlaceID = $aPlace['parent_place_id'];