Code

Added feedback step.
[gosa.git] / setup / class_setupStep_Feedback.inc
1 <?php
3 /*
4    This code is part of GOsa (https://gosa.gonicus.de)
5    Copyright (C) 2007 Fabian Hickert
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 */
23 class Step_Feedback  extends setup_step
24 {
25   var $languages      = array();
26   var $attributes     = array();
27   var $header_image   = "images/welcome.png";
29   function Step_Feedback()
30   {
31     $this->is_enabled     = TRUE;
32     $this->is_active      = TRUE;
33     $this->update_strings(); 
34   }
36   function update_strings()
37   {
38     $this->s_title      = _("Feedback");
39     $this->s_info       = _("In order to keep you up to date, you can simply check some of the options below.");
40     $this->s_title_long = _("Notification and registration");
41   }
42   
43   function execute()
44   {
45     $this->is_completed=TRUE;
46     $smarty = get_smarty();
47     $smarty->assign ("must", "<font class=\"must\">*</font>");
48     $smarty->assign('auth_id', session_id());
49     return($smarty->fetch(get_template_path("setup_feedback.tpl",TRUE,dirname(__FILE__))));
50   }
52   function save_object()
53   {
55   }
56 }
58 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
59 ?>