X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fpassword.php;h=459512228ef18b6574e2257483c79b57d07ca091;hb=ffe58e4f178b70bed0553e1bd009859293665937;hp=0c395960eb4dc4c921bb030ffd830ef86cea9951;hpb=7a90dd94e41ca1812e63761058e6e3e5bf54b867;p=gosa.git diff --git a/gosa-core/html/password.php b/gosa-core/html/password.php index 0c395960e..459512228 100644 --- a/gosa-core/html/password.php +++ b/gosa-core/html/password.php @@ -48,7 +48,7 @@ if(is_array(session::get_all()) && count(session::get_all())){ } /* Reset errors */ -session::set('js',true); +session::global_set('js',true); session::set('errors',""); session::set('errorsAlreadyPosted',array()); session::set('LastError',""); @@ -61,13 +61,13 @@ if (!is_readable(CONFIG_DIR."/".CONFIG_FILE)){ /* Parse configuration file */ $config= new config(CONFIG_DIR."/".CONFIG_FILE, $BASE_DIR); -session::set('DEBUGLEVEL', $config->get_cfg_value("debuglevel")); +session::global_set('DEBUGLEVEL', $config->get_cfg_value("debuglevel")); if ($_SERVER["REQUEST_METHOD"] != "POST"){ @DEBUG (DEBUG_CONFIG, __LINE__, __FUNCTION__, __FILE__, $config->data, "config"); } /* Set template compile directory */ -$smarty->compile_dir= $config->get_cfg_value("compile", '/var/spool/gosa'); +$smarty->compile_dir= $config->get_cfg_value("templateCompileDirectory", '/var/spool/gosa'); /* Check for compile directory */ if (!(is_dir($smarty->compile_dir) && is_writable($smarty->compile_dir))){ @@ -80,10 +80,10 @@ if (!(is_dir($smarty->compile_dir) && is_writable($smarty->compile_dir))){ clean_smarty_compile_dir($smarty->compile_dir); /* Language setup */ -if ($config->get_cfg_value("lang") == ""){ +if ($config->get_cfg_value("language") == ""){ $lang= get_browser_language(); } else { - $lang= $config->get_cfg_value("lang"); + $lang= $config->get_cfg_value("language"); } $lang.=".UTF-8"; putenv("LANGUAGE="); @@ -122,7 +122,7 @@ if (isset($_GET['directory']) && isset($servers[$_GET['directory']])){ /* Set config to selected one */ $config->set_current($directory); -session::set('config',$config); +session::global_set('config',$config); if ($_SERVER["REQUEST_METHOD"] != "POST"){ @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $lang, "Setting language to"); @@ -180,8 +180,8 @@ $smarty->assign("changed", false); if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['apply'])){ /* Destroy old sessions, they cause a successfull login to relog again ...*/ - if(session::is_set('_LAST_PAGE_REQUEST')){ - session::set('_LAST_PAGE_REQUEST',time()); + if(session::global_is_set('_LAST_PAGE_REQUEST')){ + session::global_set('_LAST_PAGE_REQUEST',time()); } $message= array(); @@ -283,7 +283,7 @@ if ($ssl != "" && $config->get_cfg_value("warnssl") == 'true'){ } /* show login screen */ -$smarty->assign("JS",session::get('js')); +$smarty->assign("JS",session::global_get('js')); $smarty->assign ("PHPSESSID", session_id()); if (session::is_set('errors')){ $smarty->assign("errors", session::get('errors'));;