function smn_draw_form($name, $action, $method = 'post', $parameters = '') { $form = '<form name="' . smn_parse_input_field_data($name, array('"' => '"')) . '" action="' . smn_parse_input_field_data($action, array('"' => '"')) . '" method="' . smn_parse_input_field_data($method, array('"' => '"')) . '"'; if (smn_not_null($parameters)) { $form .= ' ' . $parameters; } $form .= '>'; return $form; }
function smn_output_string($string, $translate = false, $protected = false) { if ($protected == true) { return htmlspecialchars($string); } else { if ($translate == false) { return smn_parse_input_field_data($string, array('"' => '"')); } else { return smn_parse_input_field_data($string, $translate); } } }