function smn_draw_form($name, $action, $method = 'post', $parameters = '')
 {
     $form = '<form name="' . smn_parse_input_field_data($name, array('"' => '&quot;')) . '" action="' . smn_parse_input_field_data($action, array('"' => '&quot;')) . '" method="' . smn_parse_input_field_data($method, array('"' => '&quot;')) . '"';
     if (smn_not_null($parameters)) {
         $form .= ' ' . $parameters;
     }
     $form .= '>';
     return $form;
 }
Esempio n. 2
0
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('"' => '&quot;'));
        } else {
            return smn_parse_input_field_data($string, $translate);
        }
    }
}