index d604d994b0992c797cd7e5462107d08e6e9289ea..33da6744814e1b0fbb3be9d18e4481188afb2a7d 100644 (file)
--- a/gosa-core/html/main.php
+++ b/gosa-core/html/main.php
textdomain($domain);
/* Remember everything we did after the last click */
-restore_error_handler();
session::start();
session::set('limit_exceeded',FALSE);
* kill session
*/
if($request_time > $max_life){
- session_unset();
+ session::destroy();
new log("security","login","",array(),"main.php called without session - logging out") ;
header ("Location: logout.php");
exit;
session::set('Last_init_lang',$lang);
/* Preset current main base */
-if(session::is_set('CurrentMainBase')){
+if(!session::is_set('CurrentMainBase')){
session::set('CurrentMainBase',get_base_from_people($ui->dn));
}
if (isset($global_check) && $config->data['MAIN']['FORCEGLOBALS'] == 'true'){
echo _("FATAL: Register globals is on. GOsa will refuse to login unless this is fixed by an administrator.");
new log("security","login","",array(),"Register globals is on. For security reasons, this should be turned off.") ;
- session_destroy ();
+ session::destroy ();
exit ();
}
$_POST[$name] = $value;
}
}
- sess_del ('dn');
+ session::un_set ('dn');
}