// expanding or shrinking a field $fieldExpandOp = true; } } if (!$fieldExpandOp && ($aeform->GetPageCount() > 1 && $aeform->GetPageNumber() > 0 || isset($params['fbrp_done']) && $params['fbrp_done'] == 1)) { $ok = true; // Validate form $res = $aeform->Validate(); if ($res[0] === false) { $ok = false; $this->smarty->assign('fb_form_validation_errors', $res[1]); $this->smarty->assign('fb_form_has_validation_errors', 1); $aeform->PageBack(); } // Manage fileuploads $res = $aeform->manageFileUploads(); if ($res[0] === false) { $ok = false; $this->smarty->assign('fb_form_validation_errors', $res[1]); $this->smarty->assign('fb_form_has_validation_errors', 1); $aeform->PageBack(); } if ($ok && isset($params['fbrp_done']) && $params['fbrp_done'] == 1) { // Check captcha, if installed $captcha = $this->getModuleInstance('Captcha'); if ($aeform->GetAttr('use_captcha', '0') == '1' && $captcha != null && !$captcha->CheckCaptcha($params['fbrp_captcha_phrase'])) { $this->smarty->assign('captcha_error', $aeform->GetAttr('captcha_wrong', $this->Lang('wrong_captcha'))); $aeform->PageBack(); } else { $finished = true; $results = $aeform->Dispose($returnid);