From 3982ec92ea3276b6c19e70c8cc3b95fea9dd1662 Mon Sep 17 00:00:00 2001
From: hickert
Date: Fri, 5 Nov 2010 09:37:39 +0000
Subject: [PATCH] Updated the registration process.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20189 594d385d-05f5-0310-b6e9-bd551577e9d8
---
.../dashBoard/Register/class_RegisterGOsa.inc | 7 +++++++
.../generic/dashBoard/Register/register.tpl | 19 +++++++++++++------
2 files changed, 20 insertions(+), 6 deletions(-)
diff --git a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc
index a0eebe39c..4dfc17f65 100644
--- a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc
+++ b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc
@@ -27,6 +27,13 @@ class GOsaRegistration extends plugin
}
+ function save_object()
+ {
+ if(isset($_POST['registrationType'])) $this->defaultRegistrationType = get_post('registrationType');
+ }
+
+
+
static function registerGOsa($config, $uuid, $type, $userData = array())
{
echo "
Register GOsa.";
diff --git a/gosa-core/plugins/generic/dashBoard/Register/register.tpl b/gosa-core/plugins/generic/dashBoard/Register/register.tpl
index 5d67160fe..87b4c35ff 100644
--- a/gosa-core/plugins/generic/dashBoard/Register/register.tpl
+++ b/gosa-core/plugins/generic/dashBoard/Register/register.tpl
@@ -3,14 +3,14 @@
{t}Do you want to register GOsa and benefit from the features it brings?{/t}
- {t}I do not want to register{/t}
+
- {t}Annonym access{/t}
+
- {t}Access to the 'Open-Channels' to easily install or remove plugins within the GOsa user interface{/t}
@@ -27,8 +27,8 @@
- {t}Register{/t}
+
{t}Additionally to the 'Annonomous' account you can:{/t}