$page->ShowPage(STEP_TIMEZONE); } /* ===================================================[ ADDITIONAL INFORMATION ]=================================================== */ // If the additional information step is enabled and active, show custom form if ($steps[STEP_ADDEDINFO]['enabled']) { $hasErrors = false; $page->MainTitle($steps[STEP_ADDEDINFO]['title'], 'userinfo'); // Begin form that tells the session helper that this form should // be processed for the additional step $page->FormStart(array('step' => GetNextStep(STEP_ADDEDINFO))); $page->FormHidden('save_to_sessions', STEP_ADDEDINFO); // Here will either be Info box or Success box depending on how all the following // checks will go. So, add an empty entry, save the index and replace the index // later with either one $page->AddToQueue(''); $msgBoxIndex = $page->GetQueueIndex(); // Construct a form based on the setup in $steps foreach ($steps[STEP_ADDEDINFO]['form'] as $data) { // Determine the controls data and key $key = ''; $value = ''; if (isset($data['type'])) { $key = $data['type']; } else { $key = '?'; } // Create different controls based on the key switch ($key) { case 'checkbox': if (HasAnyAdditionalStepValueBeenPostedYet()) { $checked = GetAdditionalControlValue($data['keyword'], $data['value_off']) == $data['value_on'] ? array('checked') : array();