index 753751c52537d7e43e28845244038b07f8eea244..e4a7ef52623560a2b1d7cdf47dd751d24dddebfc 100644 (file)
/* 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();
}
/* 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);
$s = "<img src='images/empty.png' alt=' ' class='center'> ";
}
- if($_SESSION['js']){
+ if(session::get('js')){
$str .="<div >";
$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='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.= " ";
$str .= "<input type='submit' name='next' value='"._("Continue")."'>";