Smarty(); $this->template_dir = "templates"; $this->compile_dir = "smarty/tmp/templates_c"; $this->config_dir = "etc"; $this->plugins_dir = array("plugins"); $this->caching = 0; $this->cache_dir = "smatry/tmp/cache"; $this->cache_lifetime = -1; $this->cache_modified_check = true; $this->php_handling = SMARTY_PHP_ALLOW; $this->compile_id = "fr"; #$this->_smarty_debug_id = 'dbg'; // compile_check & force_compile // = false au passage en prod $this->compile_check = true; $this->force_compile = true; // debugging = false au passage en prod $this->debugging = true; $this->debug_tpl = ""; $this->debugging_ctrl = true; $this->assign('app_name','LuDAP'); $this->assign('site',$conf['global']['site']); } } $S = new Smarty_ludap; include 'conf.lib.php'; $S->config_load('ludap'); $config = $S->get_config_vars(); include 'ludap.lib.php'; $ludap = new ludap('etc/ludap.conf'); $ludap->check_ldap_ability(); $conf = $ludap->conf; $logdir = $conf['global']['logdir']; $S->assign_by_ref('baseattr',$conf['ludap']['baseattr']); $S->assign_by_ref('basedn',$conf['ludap']['baseattr']); ?>