X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Flogout.php;h=55b12943b84fa58768b128c9495d2b5bbf277537;hb=e228f3c3cda1a0093f7bf5ac3dc3b465732d23b7;hp=b75970eb62062ab48c6e59653b809e1fa359fe20;hpb=61cf7ed149664b7fbab691ecb23777ebdeb8047e;p=gosa.git diff --git a/gosa-core/html/logout.php b/gosa-core/html/logout.php index b75970eb6..55b12943b 100644 --- a/gosa-core/html/logout.php +++ b/gosa-core/html/logout.php @@ -1,21 +1,23 @@ data['MAIN']['LANG']))){ +if ((!isset($config)) || $config->get_cfg_value("lang") == ""){ $lang= get_browser_language(); } else { - $lang= $config->data['MAIN']['LANG']; + $lang= $config->get_cfg_value("lang"); } $lang.=".UTF-8"; @@ -63,12 +65,11 @@ textdomain($domain); /* Create smarty & Set template compile directory */ $smarty= new smarty(); -if (isset ($config->data['MAIN']['COMPILE'])){ - $smarty->compile_dir= $config->data['MAIN']['COMPILE']; +if (isset($config)){ + $smarty->compile_dir= $config->get_cfg_value("compile", '/var/spool/gosa/'); } else { - $smarty->compile_dir= '/var/spool/gosa/'; + $smarty->compile_dir= '/var/spool/gosa/'; } - /* If GET request is posted, the logout was forced by pressing the link */ if (isset($_GET['request'])){ @@ -77,7 +78,7 @@ if (isset($_GET['request'])){ session::destroy (); /* If we're not using htaccess authentication, just redirect... */ - if (isset($config->data['MAIN']['HTACCESS_AUTH']) && preg_match('/^(true|yes)$/i', $config->data['MAIN']['HTACCESS_AUTH'])){ + if (isset($config) && $config->get_cfg_value("htaccess_auth") == "true"){ /* Else notice that the user has to close the browser... */ $smarty->display (get_template_path('headers.tpl'));