3 class mw_env_inputs extends mw_env
6 function prepare_inputs()
8 { require_once $this->path("libs")."inputfilter.php";
10 ( "p", "span", "pre", "blockquote", "address", "hr", "br",
12 "strong", "em", "u", "i", "b", "s",
15 "h1", "h2", "h3", "h4", "h5", "h6"
17 $allowed_attrs = array
19 "src", "alt", "width", "height",
22 $input_filter = new InputFilter($allowed_tags, $allowed_attrs);
23 $_POST = $input_filter->process($_POST);
26 { foreach($_FILES as $file_key => $file_infos)
27 { $v_name = explode(".", $file_infos["name"]);
28 $ext = strtolower($v_name[count($v_name) - 1]);
34 ) unset($_FILES[$file_key]);