]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/init.php
move data-sources/ directory in new git repos
[nominatim.git] / lib / init.php
index 67efdbfdf6edb3c8894f7d8a487adfde7d193633..0bd23e31cfe57ffb1376b8025574efd738f22a1e 100644 (file)
@@ -1,14 +1,9 @@
 <?php
 
 <?php
 
-       @define('CONST_BasePath', dirname(dirname(__FILE__)));
+require_once(CONST_BasePath.'/lib/lib.php');
+require_once(CONST_BasePath.'/lib/DB.php');
 
 
-       require_once(CONST_BasePath.'/settings/settings.php');
-       require_once(CONST_BasePath.'/lib/lib.php');
-       require_once(CONST_BasePath.'/lib/leakybucket.php');
-       require_once(CONST_BasePath.'/lib/db.php');
-
-       if (get_magic_quotes_gpc())
-       {
-               echo "Please disable magic quotes in your php.ini configuration\n";
-               exit;
-       }
+if (get_magic_quotes_gpc()) {
+    echo "Please disable magic quotes in your php.ini configuration\n";
+    exit;
+}