]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/init-website.php
take throttled ip stats from build dir
[nominatim.git] / lib / init-website.php
index eb275af290e8b15b8aa791eddbd3bc72eb859613..db03a12ce1b694381412dd8e636e19bad6f4fb3f 100644 (file)
@@ -1,10 +1,12 @@
 <?php
        require_once('init.php');
 <?php
        require_once('init.php');
+       require_once('website.php');
 
        if (CONST_NoAccessControl)
        {
                header("Access-Control-Allow-Origin: *");
                header("Access-Control-Allow-Methods: OPTIONS,GET");
 
        if (CONST_NoAccessControl)
        {
                header("Access-Control-Allow-Origin: *");
                header("Access-Control-Allow-Methods: OPTIONS,GET");
+               header("Access-Control-Max-Age: 8640000");
                if (!empty($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
                {
                        header("Access-Control-Allow-Headers: ".$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']);
                if (!empty($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
                {
                        header("Access-Control-Allow-Headers: ".$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']);
@@ -12,5 +14,4 @@
        }
        if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') exit;
 
        }
        if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') exit;
 
-
-    header('Content-type: text/html; charset=utf-8');
+       header('Content-type: text/html; charset=utf-8');