From: hickert Date: Thu, 19 Apr 2007 06:18:03 +0000 (+0000) Subject: Added a new step, the welcome step X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1d999bc19312a3748d2b99f3df3ee9c4cc5f2479;p=gosa.git Added a new step, the welcome step git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6104 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/setup.php b/html/setup.php index 7e1e86ef8..52f528b38 100644 --- a/html/setup.php +++ b/html/setup.php @@ -27,6 +27,7 @@ require_once ("functions.inc"); require_once("../setup/class_setup.inc"); require_once("../setup/class_setupStep.inc"); +require_once("../setup/class_setupStep_Welcome.inc"); require_once("../setup/class_setupStep_Language.inc"); require_once("../setup/class_setupStep_Checks.inc"); require_once("../setup/class_setupStep_License.inc"); diff --git a/setup/class_setup.inc b/setup/class_setup.inc index 0b45f4231..a51d922c5 100644 --- a/setup/class_setup.inc +++ b/setup/class_setup.inc @@ -30,16 +30,17 @@ class setup function setup() { - - $this->o_steps[1] = new Step_Language(); - $this->o_steps[2] = new Step_Checks(); - $this->o_steps[3] = new Step_License(); - $this->o_steps[4] = new Step_Ldap(); - $this->o_steps[5] = new Step_Schema(); - $this->o_steps[6] = new Step_Config1(); - $this->o_steps[7] = new Step_Config2(); - $this->o_steps[8] = new Step_Config3(); - $this->o_steps[9] = new Step_Finish(); + $i = 1; + $this->o_steps[$i++] = new Step_Welcome(); + $this->o_steps[$i++] = new Step_Language(); + $this->o_steps[$i++] = new Step_Checks(); + $this->o_steps[$i++] = new Step_License(); + $this->o_steps[$i++] = new Step_Ldap(); + $this->o_steps[$i++] = new Step_Schema(); + $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_Finish(); /* Ensure that setup is not reachable if gosa.conf (CONFIG_FILE) */ if(file_exists(CONFIG_DIR."/".CONFIG_FILE)){ diff --git a/setup/class_setupStep_Language.inc b/setup/class_setupStep_Language.inc index a549ca6aa..5f2e98588 100644 --- a/setup/class_setupStep_Language.inc +++ b/setup/class_setupStep_Language.inc @@ -32,8 +32,6 @@ class Step_Language extends setup_step { $this->lang = get_browser_language(); $this->lang_selected = ""; - $this->is_enabled = TRUE; - $this->is_active = TRUE; $this->update_strings(); } diff --git a/setup/class_setupStep_Welcome.inc b/setup/class_setupStep_Welcome.inc new file mode 100644 index 000000000..06c323747 --- /dev/null +++ b/setup/class_setupStep_Welcome.inc @@ -0,0 +1,56 @@ +is_enabled = TRUE; + $this->is_active = TRUE; + $this->update_strings(); + } + + function update_strings() + { + $this->s_title = _("Welcome"); + $this->s_title_long = _("Welcome to GOsa setup"); + $this->s_info = _("Welcome to GOsa setup"); + } + + function execute() + { + $this->is_completed = true; + $smarty = get_smarty(); + return($smarty->fetch(get_template_path("setup_welcome.tpl",TRUE,dirname(__FILE__)))); + } + + function save_object() + { + } +} + +// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: +?> diff --git a/setup/setup_welcome.tpl b/setup/setup_welcome.tpl new file mode 100644 index 000000000..90a4d4c41 --- /dev/null +++ b/setup/setup_welcome.tpl @@ -0,0 +1,6 @@ +
+
+

{t}Welcome to the GOsa setup routine{/t}

+ Nothing yet +
+