]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/init-website.php
factor out link formatting function and osm type translation
[nominatim.git] / lib / init-website.php
index a34e4c82787ae1dee4f77d5431a66376aeb077dc..04bc518ca9d3ec044dee0aa16e23ac5e064b016d 100644 (file)
@@ -1,5 +1,6 @@
 <?php
        require_once('init.php');
+       require_once('website.php');
 
        if (CONST_NoAccessControl)
        {
        }
        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)));