]> git.sur5r.net Git - contagged/blobdiff - inc/init.php
readme and languages fixed
[contagged] / inc / init.php
index ad5c90014d7ecb18f1bd869d478c3a0a1d65b872..c6097b2358219d33dfa471a6ca34567b0bfd5780 100644 (file)
@@ -1,6 +1,7 @@
 <?
   require_once(dirname(__FILE__).'/config.php');
   require_once(dirname(__FILE__).'/fields.php');
+  require_once(dirname(__FILE__).'/lang/en.php');
   require_once(dirname(__FILE__).'/lang/'.$conf['lang'].'.php');
   require_once(dirname(__FILE__).'/functions.php');
   require_once(dirname(__FILE__).'/template.php');
@@ -9,6 +10,7 @@
   define('NL',"\n");
 
   //init session
+  @ini_set('arg_separator.output', '&amp;');
   session_name("ldapab");
   session_start();
 
@@ -39,4 +41,8 @@
   $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']];
+
 ?>