diff --git a/setup/class_setup.inc b/setup/class_setup.inc
index a51d922c51e4d8ab6ae2925a88208c63df96b456..700ea7761d84047d0aa46178782eedcf07b323e6 100644 (file)
--- a/setup/class_setup.inc
+++ b/setup/class_setup.inc
$this->o_steps[$i++] = new Step_Config1();
$this->o_steps[$i++] = new Step_Config2();
$this->o_steps[$i++] = new Step_Config3();
+ $this->o_steps[$i++] = new Step_Migrate();
$this->o_steps[$i++] = new Step_Finish();
+ $this->i_steps = $i-1;
/* Ensure that setup is not reachable if gosa.conf (CONFIG_FILE) */
if(file_exists(CONFIG_DIR."/".CONFIG_FILE)){
function execute()
{
+ /* display step error msgs */
+ $msgs = $this->o_steps[$this->i_current]->check();
+ foreach($msgs as $msg){
+ print_red($msg);
+ }
+
$this->o_steps[$this->i_last]->set_active(FALSE);
$this->o_steps[$this->i_current]->set_active();
$content = $this->o_steps[$this->i_current]->execute();
if($this->o_steps[$this->i_current]->dialog){
$str ="";
}else{
- $str ="";
+ $str ="<p class='seperator' style='margin-bottom:10px;'> </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='button' name='last' value='"._("Back")."' disabled>";
}
$str.= " ";
- if(isset($this->o_steps[$this->i_current + 1])){
$str .= "<input type='submit' name='next' value='"._("Continue")."'>";
- }else{
- $str .= "<input type='button' value='"._("Continue")."' disabled>";
- }
$str .="</div>";
}
return($str);