function tep_draw_form($name, $action, $method = 'post', $parameters = '') { $form = '<form name="' . tep_parse_input_field_data($name, array('"' => '"')) . '" action="' . tep_parse_input_field_data($action, array('"' => '"')) . '" method="' . tep_parse_input_field_data($method, array('"' => '"')) . '"'; if (tep_not_null($parameters)) { $form .= ' ' . $parameters; } $form .= '>'; return $form; }
function tep_output_string($string, $translate = false, $protected = false) { if ($protected == true) { return htmlspecialchars($string); } else { if ($translate == false) { return tep_parse_input_field_data($string, array('"' => '"')); } else { return tep_parse_input_field_data($string, $translate); } } }
function tep_output_string($string, $translate = false, $protected = false) { if ($protected == true) { return str_replace("'", ''', htmlspecialchars(stripslashes($string))); } else { if ($translate == false) { return tep_parse_input_field_data($string, array('"' => '"')); } else { return tep_parse_input_field_data($string, $translate); } } }