Beispiel #1
0
            ${$key} = $val;
        }
        while (list($key, $val) = each($form_output_suffix)) {
            $html .= '<input type="hidden" name="fs[' . $key . ']" value="' . $val . '" />';
        }
        $tpl->files['formm'] = str_replace('</form>', $html . '</form>', $tpl->files['formm']);
    }
}
// -----------------------------------------------------------------------------
/**
 * Parse the template
 */
if (isset($_POST) and !empty($_POST)) {
    $tpl->files['formm'] = $mail->register_selections($tpl->files['formm'], $_POST);
}
if ($dynamic_field = $mail->get_dynamic_field_value($configuration)) {
    $tpl->files['formm'] = str_replace('</form>', '<input type="hidden" name="' . sha1('dynamic_field') . '" value="' . $dynamic_field . '" /></form>', $tpl->files['formm']);
}
$tpl->var_values = array('message' => @$message, 'display_data' => @$display_data, 'captcha_content' => @$captcha_content, 'script_self' => @$script_self, 'display_form' => @$display_form);
$tpl->parse_loop('formm', 'message');
$tpl->parse_loop('formm', 'display_data');
$tpl->parse_if('formm', 'display_form');
$tpl->register('formm', 'script_self, captcha_content');
if (isset($txt) and is_array($txt)) {
    reset($txt);
    while (list($key, $val) = each($txt)) {
        ${$key} = $val;
        $tpl->register('formm', $key);
        $tpl->var_values[$key] = $val;
    }
}