]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove 'closed for indexing' feature
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 30 Mar 2016 20:53:19 +0000 (22:53 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 30 Mar 2016 20:53:19 +0000 (22:53 +0200)
Simultanous updates are fine these days.

lib/init-website.php
settings/settings.php

index a34e4c82787ae1dee4f77d5431a66376aeb077dc..fff33936dc6d688b4ce4d54cfe62bd585221661c 100644 (file)
        }
        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)));
index 0c8d76bdb3e3e2094c916dc3e40888ae2901b51d..8f2fb1d9f62a29e9f8a701ba08818b0831e98252 100644 (file)
@@ -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