is_enabled = TRUE; $this->is_active = TRUE; $this->update_strings(); } function update_strings() { $this->s_title = _("Welcome"); $this->s_info = _("The welcome message"); $this->s_title_long = _("Welcome to GOsa setup wizard"); } function execute() { $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; } } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>