3 class mw_env_inputs extends mw_env{
5 function prepare_inputs(){
7 require_once $this->path("mw_dir")."libs/inputfilter.php";
9 "p", "span", "pre", "blockquote", "address", "hr", "br",
11 "strong", "em", "u", "i", "b", "s",
14 "h1", "h2", "h3", "h4", "h5", "h6"
16 $allowed_attrs = array(
18 "src", "alt", "width", "height",
21 $input_filter = new InputFilter($allowed_tags, $allowed_attrs);
22 $_POST = $input_filter->process($_POST);
25 foreach($_FILES as $file_key => $file_infos){
26 $v_name = explode(".", $file_infos["name"]);
27 $ext = strtolower($v_name[count($v_name) - 1]);
34 unset($_FILES[$file_key]);