directives', '/(?:^\\(|(\\()):input(.*?):\\)/ei', 'InputMakeHtml(PSS(\'$1\'), PSS(\'$2\'))' ); function InputWarning($msg) { return '[PmWiki Warning: ' . htmlentities($msg, ENT_QUOTES) . ']'; } # Helper functions for constructing entries in $InputFmt. function InputOptionBoolean($option) { return " $option=\"$option\""; } function InputOptionString($option) { return '/^.*$/e/\' ' . $option . '="\' . htmlentities(\'$0\') . \'"\''; } SDVA($InputMethods, array( 'get' => ' method="get" enctype="application/x-www-form-urlencoded"', 'post/urlencoded' => ' method="post" enctype="application/x-www-form-urlencoded"', 'post/binary' => ' method="post" enctype="multipart/form-data"', 'post/text' => ' method="post" enctype="text/plain"' )); SDV($InputMethods['post'], $InputMethods['post/binary']); SDVA($InputFmt, array( # All (:input...:) markup is of the form: # (:input :) # For each , this array has the following entries: # .fmt # The HTML to emit, with $xxx placeholders # (xxx is the name of the placeheld position). # .required # A space-separated list of parameter names. # These will be filled from the required (positional) # parameters of the markup. # .