]> git.openstreetmap.org Git - nominatim.git/blob - lib/init-website.php
Remove '(named features only)' because it isn't true any more
[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');