Code

Added Migration step
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Apr 2007 06:26:21 +0000 (06:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 19 Apr 2007 06:26:21 +0000 (06:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6106 594d385d-05f5-0310-b6e9-bd551577e9d8

html/setup.php
setup/class_setup.inc
setup/class_setupStep_Migrate.inc [new file with mode: 0644]
setup/setup_migrate.tpl [new file with mode: 0644]

index 52f528b38b1fc285dbc4855a89959338f119c36e..dfc4c8e56ff5f26cb5ad12005a7561e4925203cf 100644 (file)
@@ -36,6 +36,7 @@ require_once("../setup/class_setupStep_Config1.inc");
 require_once("../setup/class_setupStep_Config2.inc");
 require_once("../setup/class_setupStep_Config3.inc");
 require_once("../setup/class_setupStep_Schema.inc");
+require_once("../setup/class_setupStep_Migrate.inc");
 require_once("../setup/class_setupStep_Finish.inc");
 
 
index a51d922c51e4d8ab6ae2925a88208c63df96b456..39b13b2693eff98724b573a57ca79bfc8a6065c4 100644 (file)
@@ -40,7 +40,9 @@ class setup
     $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_Migrate();
     $this->o_steps[$i++] = new Step_Finish();
+    $this->i_steps = $i-1;
 
     /* Ensure that setup is not reachable if gosa.conf (CONFIG_FILE) */
     if(file_exists(CONFIG_DIR."/".CONFIG_FILE)){
diff --git a/setup/class_setupStep_Migrate.inc b/setup/class_setupStep_Migrate.inc
new file mode 100644 (file)
index 0000000..d04e8bc
--- /dev/null
@@ -0,0 +1,54 @@
+<?php
+
+/*
+   This code is part of GOsa (https://gosa.gonicus.de)
+   Copyright (C) 2007 Fabian Hickert
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+
+class Step_Migrate extends setup_step
+{
+  var $languages      = array();
+  var $attributes     = array();
+  var $header_image   = "images/locale.png";
+
+  function Step_Migrate()
+  {
+    $this->update_strings(); 
+  }
+
+  function update_strings()
+  {
+    $this->s_title      = _("Ldap migration assistent");
+    $this->s_title_long = _("Ldap migration assistent");
+    $this->s_info       = _("This step allows you to migrate your ldap database");
+  }
+  
+  function execute()
+  {
+    $smarty = get_smarty();
+    return($smarty->fetch(get_template_path("setup_migrate.tpl",TRUE,dirname(__FILE__))));
+  }
+
+  function save_object()
+  {
+    $this->is_completed = TRUE;
+  }
+}
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>
diff --git a/setup/setup_migrate.tpl b/setup/setup_migrate.tpl
new file mode 100644 (file)
index 0000000..9032bdc
--- /dev/null
@@ -0,0 +1,6 @@
+<div>
+    <div class='default'>
+        <p><b>{t}Migration dialog{/t}</b></p>
+               Nothing yet
+       </div>
+</div>