]> git.openstreetmap.org Git - nominatim.git/blob - lib/init-website.php
set osm2pgsql cache memory to a default based on memory in the machine
[nominatim.git] / lib / init-website.php
1 <?php
2
3         require_once('init.php');
4
5         if (CONST_ClosedForIndexing && strpos(CONST_ClosedForIndexingExceptionIPs, ','.$_SERVER["REMOTE_ADDR"].',') === false)
6         {
7                 echo "Closed for re-indexing...";
8                 exit;
9         }
10
11         if (strpos(CONST_BlockedIPs, ','.$_SERVER["REMOTE_ADDR"].',') !== false)
12         {
13                 echo "Your IP has been blocked. \n";
14                 echo "Please create a nominatim trac ticket (http://trac.openstreetmap.org/newticket?component=nominatim) to request this to be removed. \n";
15                 echo "Information on the Nominatim usage policy can be found here: http://wiki.openstreetmap.org/wiki/Nominatim#Usage_Policy \n";
16                 exit;
17         }
18
19         header('Content-type: text/html; charset=utf-8');