X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=setup%2Fclass_setupStep_Welcome.inc;h=f030f3121191817e1c4ca690e880c4f9d8fd1163;hb=68503ecbb4d310b61ef8f1f32003fc739bacb237;hp=06c3237474bcd620adf709282014bf24b8ec9c16;hpb=1d999bc19312a3748d2b99f3df3ee9c4cc5f2479;p=gosa.git diff --git a/setup/class_setupStep_Welcome.inc b/setup/class_setupStep_Welcome.inc index 06c323747..f030f3121 100644 --- a/setup/class_setupStep_Welcome.inc +++ b/setup/class_setupStep_Welcome.inc @@ -24,7 +24,7 @@ class Step_Welcome extends setup_step { var $languages = array(); var $attributes = array(); - var $header_image = "images/locale.png"; + var $header_image = "images/welcome.png"; function Step_Welcome() { @@ -36,19 +36,34 @@ class Step_Welcome extends setup_step function update_strings() { $this->s_title = _("Welcome"); - $this->s_title_long = _("Welcome to GOsa setup"); - $this->s_info = _("Welcome to GOsa setup"); + $this->s_info = _("The welcome message"); + $this->s_title_long = _("Welcome to GOsa setup wizard"); } function execute() { - $this->is_completed = true; $smarty = get_smarty(); + $smarty->assign('auth_id', session_id()); return($smarty->fetch(get_template_path("setup_welcome.tpl",TRUE,dirname(__FILE__)))); } function save_object() { + $id = ""; + + /* Get auth ID from file */ + if (file_exists('/tmp/gosa.auth') && is_readable('/tmp/gosa.auth')){ + $contents= file('/tmp/gosa.auth'); + $id= chop($contents[0]); + } + + /* Continue if we've the correct ID */ + if ($id == session_id()){ + $this->is_completed = true; + } else { + $this->is_completed = false; + } + } }