Code

Guide for gosa-all.
[gosa.git] / gosa-core / setup / class_setup.inc
index 753751c52537d7e43e28845244038b07f8eea244..e4a7ef52623560a2b1d7cdf47dd751d24dddebfc 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 >";
     
@@ -258,9 +258,9 @@ class setup
       $str ="<p class='seperator' style='margin-bottom:10px;'>&nbsp;</p>";
       $str.="   <div style='text-align:right;float:top;'>";
       if(isset($this->o_steps[$this->i_current -1]) && $this->o_steps[$this->i_current -1]->is_enabled()){
-        $str .= "<input type='submit' name='last' value='"._("Back")."'>";
+        $str .= "<input type='submit' name='last' value='".msgPool::backButton()."'>";
       }else{
-        $str .= "<input type='button' name='last' value='"._("Back")."' disabled>";
+        $str .= "<input type='button' name='last' value='".msgPool::backButton()."' disabled>";
       }
       $str.= "&nbsp;";
         $str .= "<input type='submit' name='next' value='"._("Continue")."'>";