]> git.sur5r.net Git - contagged/blobdiff - inc/init.php
Use leafletjs + OpenStreetMap instead of google maps
[contagged] / inc / init.php
index cc04d7a5b0599865f235a19a8f1d54219271bfa6..51f44be773233ad88a21738feda122c8aa520771 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+  if(defined('E_DEPRECATED')){ // since php 5.3
+    error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
+  }else{
+    error_reporting(E_ALL ^ E_NOTICE);
+  }
+
   require_once(dirname(__FILE__).'/config.php');
   require_once(dirname(__FILE__).'/fields.php');
   require_once(dirname(__FILE__).'/lang/en.php');
@@ -23,7 +29,7 @@
     if (!empty($_SESSION)) remove_magic_quotes($_SESSION);
     ini_set('magic_quotes_gpc', 0);
   }
-  set_magic_quotes_runtime(0);
+  @set_magic_quotes_runtime(0);
 
   function remove_magic_quotes(&$array) {
     foreach (array_keys($array) as $key) {
@@ -41,8 +47,4 @@
   $smarty->use_sub_dirs  = 0;
   $smarty->template_dir  = dirname(__FILE__).'/../templates';
   $smarty->force_compile = $conf['smartycompile'];
-
-  // select the correct google api key
-  $conf['gmapkey'] = $conf['gmaps'][$_SERVER['HTTP_HOST']];
-
 ?>