Code

Updated registriation process.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 5 Nov 2010 11:14:53 +0000 (11:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 5 Nov 2010 11:14:53 +0000 (11:14 +0000)
-Added checks and awaiting regitration page.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20192 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/dashBoard/Register/class_RegisterGOsa.inc
gosa-core/plugins/generic/dashBoard/Register/register.tpl

index 986a6bdedc44e6bd99473906c12c0aeeed0e0bb4..86da0d32be02368343e8310da4ca015e42f49ad9 100644 (file)
@@ -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);
+        }
     }
     
 
index bf9b8306fcb9544ed2b3bc9b901a16f49c088f0e..e1ee7723cc77ae0b6bd6adb1a168fbcaa0d67fb0 100644 (file)
         <button name='stepBack'>{msgPool type=backButton}</button>
     </div>
 {/if}
+
+{if $step == 200}
+   <h3>VERIFY TEXTS!!!</h3> You have receifed a mail, bafasel, please click link and so on.
+
+{/if}