]> git.sur5r.net Git - contagged/blob - inc/init.php
Merge pull request #15 from cweiske/master
[contagged] / inc / init.php
1 <?php
2   if(defined('E_DEPRECATED')){ // since php 5.3
3     error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
4   }else{
5     error_reporting(E_ALL ^ E_NOTICE);
6   }
7
8   require_once(dirname(__FILE__).'/config.php');
9   require_once(dirname(__FILE__).'/fields.php');
10   require_once(dirname(__FILE__).'/lang/en.php');
11   require_once(dirname(__FILE__).'/lang/'.$conf['lang'].'.php');
12   require_once(dirname(__FILE__).'/functions.php');
13   require_once(dirname(__FILE__).'/template.php');
14   require_once(dirname(__FILE__).'/smarty/Smarty.class.php');
15
16   define('NL',"\n");
17
18   //init session
19   @ini_set('arg_separator.output', '&amp;');
20   session_name("ldapab");
21   session_start();
22
23   //prepare SMARTY object
24   $smarty = new Smarty;
25   $smarty->compile_dir   = dirname(__FILE__).'/../cache';
26   $smarty->use_sub_dirs  = 0;
27   $smarty->template_dir  = dirname(__FILE__).'/../templates';
28   $smarty->force_compile = $conf['smartycompile'];
29
30   // select the correct google api key
31   $conf['gmapkey'] = $conf['gmaps'][$_SERVER['HTTP_HOST']];
32
33 ?>