Code

Moved new_ldap_conf
[gosa.git] / gosa-core / setup / class_setup.inc
index 753751c52537d7e43e28845244038b07f8eea244..151d29fdd1fa5d8eb6d1df351c957fa9c11fa1d0 100644 (file)
@@ -49,7 +49,7 @@ class setup
 
     /* Ensure that setup is not reachable if gosa.conf (CONFIG_FILE) */
     if(file_exists(CONFIG_DIR."/".CONFIG_FILE)){
-      session_destroy();
+      session::destroy();
       header("Location: index.php")    ;
       exit();
     }
@@ -73,7 +73,7 @@ class setup
     /* display step error msgs */
     $msgs = $this->o_steps[$this->i_current]->check();
     foreach($msgs as $msg){
-      print_red($msg);
+      msg_dialog::display(_("Setup error"), $msg, ERROR_DIALOG);
     }
 
     $this->o_steps[$this->i_last]->set_active(FALSE);
@@ -198,7 +198,7 @@ class setup
         $s = "<img src='images/empty.png' alt=' ' class='center'>&nbsp;";
       }
 
-      if($_SESSION['js']){
+      if(session::get('js')){
 
         $str .="<div >";