]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/init.php
starting PHP 5.4 get_magic_quotes_gpc() returns false, no need to check
[nominatim.git] / lib / init.php
index 17f262c339324f743bbc464a3c52cf03d5f777da..082d1bf58dedb7665eb9c62953fafa607a6cfa07 100644 (file)
@@ -1,13 +1,4 @@
 <?php
 
-       @define('CONST_BasePath', dirname(dirname(__FILE__)));
-
-       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";
-               exit;
-       }
+require_once(CONST_BasePath.'/lib/lib.php');
+require_once(CONST_BasePath.'/lib/DB.php');