$CNT_TMP .= '#jumpForm' . $crow["acontent_id"]; } $CNT_TMP .= '" '; if ($cnt_form['is_enctype']) { $CNT_TMP .= 'enctype="multipart/form-data" '; } $CNT_TMP .= 'method="post">'; if ($cnt_form['labelpos'] == 2) { if (isset($POST_ERR) && count($POST_ERR)) { $form_cnt = preg_replace('/\\[IF_ERROR\\](.*?)\\[\\/IF_ERROR\\]/s', '$1', $form_cnt); $form_cnt = preg_replace('/\\[ELSE_ERROR\\].*?\\[\\/ELSE_ERROR\\]/s', '', $form_cnt); } else { $form_cnt = preg_replace('/\\[IF_ERROR\\].*?\\[\\/IF_ERROR\\]/s', '', $form_cnt); $form_cnt = preg_replace('/\\[ELSE_ERROR\\](.*?)\\[\\/ELSE_ERROR\\]/s', '$1', $form_cnt); } $CNT_TMP .= "\n" . $form_cnt . "\n"; } elseif ($cnt_form['labelpos'] == 3) { $CNT_TMP .= LF . $form_cnt; } else { $CNT_TMP .= '<table cellspacing="0" cellpadding="0" border="0">'; $CNT_TMP .= "\n" . $form_cnt . '</table>'; } $CNT_TMP .= LF . '<div><input type="hidden" name="cpID' . $crow["acontent_id"] . '" value="' . $crow["acontent_id"] . '" />'; $CNT_TMP .= $form_field_hidden; $CNT_TMP .= getFormTrackingValue(); //hidden form tracking field $CNT_TMP .= '</div>' . LF . '</form>' . LF . $cnt_form["class_close"]; } unset($form, $form_cnt, $form_cnt_2, $form_field, $form_field_hidden, $form_counter, $form_error_text, $POST_ERR); // reset form tracking status to default value $phpwcms['form_tracking'] = $default_formtracking_value;
case 1: $guestbook['GBSHOW_1'] = ' checked="checked"'; break; case 2: $guestbook['GBSHOW_2'] = ' checked="checked"'; break; } $guestbook['form'] = str_replace('{GBSHOW_0}', $guestbook['GBSHOW_0'], $guestbook['form']); $guestbook['form'] = str_replace('{GBSHOW_1}', $guestbook['GBSHOW_1'], $guestbook['form']); $guestbook['form'] = str_replace('{GBSHOW_2}', $guestbook['GBSHOW_2'], $guestbook['form']); // build sign guestbook form $guestbook['form'] = '<form name="sign_guestbook" action="' . rel_url() . '" method="post"' . (empty($guestbook["image_upload"]) ? '' : ' enctype="multipart/form-data"') . '>' . $guestbook['form']; if (!empty($guestbook['hidden'])) { $guestbook['form'] .= $guestbook['hidden']; } $guestbook['form'] .= getFormTrackingValue() . '</form>'; } else { if (!$guestbook['flooding']) { // if successfully signed show signed info $guestbook['signed'] = render_cnt_template($guestbook['signed'], 'EMAIL', html_specialchars($guestbook['post']['email'])); $guestbook['signed'] = render_cnt_template($guestbook['signed'], 'NAME', html_specialchars($guestbook['post']['name'])); $guestbook['signed'] = render_cnt_template($guestbook['signed'], 'URL', html_specialchars($guestbook['post']['url'])); $guestbook['signed'] = render_cnt_template($guestbook['signed'], 'MSG', html_specialchars($guestbook['post']['msg'])); $guestbook['form'] = $guestbook['signed']; } else { $guestbook['form'] = $guestbook['spamalert']; } } } // end guestbook form // start guestbook listing