]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/init.php
Merge pull request #803 from lonvia/update-postcodes
[nominatim.git] / lib / init.php
index 15e38a5b17fcf7862e71bacda260db87e7b03d60..d21880715abcbe8f91429c2effb973d603de768e 100644 (file)
@@ -1,13 +1,9 @@
 <?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/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;
+}