From: Sarah Hoffmann Date: Wed, 30 Mar 2016 20:53:19 +0000 (+0200) Subject: remove 'closed for indexing' feature X-Git-Tag: v3.0.0~182^2~3 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f9a488cd5a420ce63010c2b3293d0e91750e4994 remove 'closed for indexing' feature Simultanous updates are fine these days. --- diff --git a/lib/init-website.php b/lib/init-website.php index a34e4c82..fff33936 100644 --- a/lib/init-website.php +++ b/lib/init-website.php @@ -12,12 +12,6 @@ } if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') exit; - if (CONST_ClosedForIndexing && strpos(CONST_ClosedForIndexingExceptionIPs, ','.$_SERVER["REMOTE_ADDR"].',') === false) - { - echo "Closed for re-indexing..."; - exit; - } - $aBucketKeys = array(); if (isset($_SERVER["HTTP_REFERER"])) $aBucketKeys[] = str_replace('www.','',strtolower(parse_url($_SERVER["HTTP_REFERER"], PHP_URL_HOST))); diff --git a/settings/settings.php b/settings/settings.php index 0c8d76bd..8f2fb1d9 100644 --- a/settings/settings.php +++ b/settings/settings.php @@ -75,8 +75,6 @@ // Website settings @define('CONST_NoAccessControl', true); - @define('CONST_ClosedForIndexing', false); - @define('CONST_ClosedForIndexingExceptionIPs', ''); @define('CONST_BlockedIPs', ''); @define('CONST_BulkUserIPs', ''); @define('CONST_BlockMessage', ''); // additional info to show for blocked IPs