Commit 78407f4663c2633efb5ec46c8655d72d656a54ca
1 parent
b250db44
Uncommented line for posting the form.
Committed by: Megan Watson Reviewed by: Philip Arkcoll
Showing
1 changed file
with
10 additions
and
13 deletions
setup/wizard/steps/registration.php
| ... | ... | @@ -50,7 +50,7 @@ class registration extends Step |
| 50 | 50 | * @var array |
| 51 | 51 | */ |
| 52 | 52 | public $storeInSession = true; |
| 53 | - | |
| 53 | + | |
| 54 | 54 | /** |
| 55 | 55 | * Controller function for determining the position within the step |
| 56 | 56 | * |
| ... | ... | @@ -75,10 +75,10 @@ class registration extends Step |
| 75 | 75 | |
| 76 | 76 | return 'previous'; |
| 77 | 77 | }else if($this->confirm()) { |
| 78 | - | |
| 78 | + | |
| 79 | 79 | return 'next'; |
| 80 | 80 | } |
| 81 | - | |
| 81 | + | |
| 82 | 82 | return 'landing'; |
| 83 | 83 | } |
| 84 | 84 | |
| ... | ... | @@ -91,7 +91,7 @@ class registration extends Step |
| 91 | 91 | $this->temp_variables['sel_industry'] = $this->getPostSafe($reg['sel_industry']); |
| 92 | 92 | $this->temp_variables['sel_organization_size'] = $this->getPostSafe($reg['sel_organization_size']); |
| 93 | 93 | } |
| 94 | - | |
| 94 | + | |
| 95 | 95 | /** |
| 96 | 96 | * Safer way to return post data |
| 97 | 97 | * |
| ... | ... | @@ -104,7 +104,7 @@ class registration extends Step |
| 104 | 104 | $value = isset($key) ? $key : ""; |
| 105 | 105 | return $value; |
| 106 | 106 | } |
| 107 | - | |
| 107 | + | |
| 108 | 108 | public function setInSession() { |
| 109 | 109 | $this->temp_variables['first_name'] = $_POST['submitted']['first_name']; |
| 110 | 110 | $this->temp_variables['last_name'] = $_POST['submitted']['last_name']; |
| ... | ... | @@ -113,7 +113,7 @@ class registration extends Step |
| 113 | 113 | $this->temp_variables['sel_industry'] = $_POST['submitted']['industry']; |
| 114 | 114 | $this->temp_variables['sel_organization_size'] = $_POST['submitted']['organization_size']; |
| 115 | 115 | } |
| 116 | - | |
| 116 | + | |
| 117 | 117 | /** |
| 118 | 118 | * Execute the step action to register the user. If the user has already registered then the step will return. |
| 119 | 119 | * |
| ... | ... | @@ -127,13 +127,10 @@ class registration extends Step |
| 127 | 127 | return true; |
| 128 | 128 | } |
| 129 | 129 | $this->setInSession(); |
| 130 | -// return true; | |
| 131 | - //$this->postForm($_POST); | |
| 132 | - //$this->sendToHost($_POST); | |
| 133 | 130 | |
| 134 | 131 | // Post the form using curl |
| 135 | -// $this->curlForm($_POST); | |
| 136 | - | |
| 132 | + $this->curlForm($_POST); | |
| 133 | + | |
| 137 | 134 | // Prevent the form being reposted. |
| 138 | 135 | $_POST['registered'] = 'yes'; |
| 139 | 136 | return true; |
| ... | ... | @@ -536,10 +533,10 @@ class registration extends Step |
| 536 | 533 | $this->temp_variables['industries'] = $industries; |
| 537 | 534 | $this->temp_variables['org_size'] = $sizes; |
| 538 | 535 | } |
| 539 | - | |
| 536 | + | |
| 540 | 537 | /** |
| 541 | 538 | * Return whether or not to store a step information in session |
| 542 | - * | |
| 539 | + * | |
| 543 | 540 | * @author KnowledgeTree Team |
| 544 | 541 | * @param none |
| 545 | 542 | * @access public | ... | ... |