From 83fc88ea19ad40688b298736c5accc399d0a76f6 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 5 Nov 2010 11:14:53 +0000 Subject: [PATCH] Updated registriation process. -Added checks and awaiting regitration page. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20192 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dashBoard/Register/class_RegisterGOsa.inc | 25 ++++++++++++++++--- .../generic/dashBoard/Register/register.tpl | 5 ++++ 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc index 986a6bded..86da0d32b 100644 --- a/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc +++ b/gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc @@ -24,16 +24,30 @@ class GOsaRegistration extends plugin } + function registerNow() + { + $this->step = 200; // Awaiting verification + } + function execute() { + // Registration request. + if(isset($_POST['registerNow'])){ + $msgs = $this->check(); + if(count($msgs)){ + msg_dialog::displayChecks($msgs); + }else{ + $this->registerNow(); + } + } + + $smarty = get_smarty(); $smarty->assign("default", $this->defaultRegistrationType); $smarty->assign("step", $this->step); - - - foreach($this->attrs as $attr) $smarty->assign($attr, $this->values[$attr]); + foreach($this->attrs as $attr) $smarty->assign($attr, set_post($this->values[$attr])); return($smarty->fetch(get_template_path("Register/register.tpl", TRUE))); @@ -44,8 +58,11 @@ class GOsaRegistration extends plugin { if(isset($_POST['registrationType'])) $this->defaultRegistrationType = get_post('registrationType'); if(isset($_POST['startRegistration'])) $this->step = 1; - if(isset($_POST['stepBack'])) $this->step -= 1; + + foreach($this->attrs as $attr){ + if(isset($_POST[$attr])) $this->values[$attr] = get_post($attr); + } } diff --git a/gosa-core/plugins/generic/dashBoard/Register/register.tpl b/gosa-core/plugins/generic/dashBoard/Register/register.tpl index bf9b8306f..e1ee7723c 100644 --- a/gosa-core/plugins/generic/dashBoard/Register/register.tpl +++ b/gosa-core/plugins/generic/dashBoard/Register/register.tpl @@ -129,3 +129,8 @@ {/if} + +{if $step == 200} +

VERIFY TEXTS!!!

You have receifed a mail, bafasel, please click link and so on. + +{/if} -- 2.30.2