2 if(defined('E_DEPRECATED')){ // since php 5.3
3 error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
5 error_reporting(E_ALL ^ E_NOTICE);
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');
19 @ini_set('arg_separator.output', '&');
20 session_name("ldapab");
23 //prepare SMARTY object
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'];
30 // select the correct google api key
31 $conf['gmapkey'] = $conf['gmaps'][$_SERVER['HTTP_HOST']];