} $fbrp_callcount = 0; $aeform = new fbForm($this, $params, true, true); $fld = $aeform->GetFormBrowserField(); if ($fld !== false && $fld->GetOption('feu_bind', '0') == '1') { $feu = $this->GetModuleInstance('FrontEndUsers'); if ($feu == false) { debug_display("FAILED to instantiate FEU!"); return; } if ($feu->LoggedInId() === false) { echo $this->Lang('please_login'); return; } } if (!($inline || $aeform->GetAttr('inline', '0') == '1')) { $id = 'cntnt01'; } $this->smarty->assign('fb_form_has_validation_errors', 0); $this->smarty->assign('fb_show_submission_errors', 0); $this->smarty->assign('fb_form_header', $aeform->RenderFormHeader()); $this->smarty->assign('fb_form_footer', $aeform->RenderFormFooter()); $finished = false; $fieldExpandOp = false; if (isset($params['fbrp_callcount'])) { $fbrp_callcount = (int) $params['fbrp_callcount']; } foreach ($params as $pKey => $pVal) { if (substr($pKey, 0, 9) == 'fbrp_FeX_' || substr($pKey, 0, 9) == 'fbrp_FeD_') { // expanding or shrinking a field $fieldExpandOp = true;