3 if(get_magic_quotes_gpc())
4 { $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
5 while(list($key, $val) = each($process))
6 { foreach($val as $k => $v)
7 { unset($process[$key][$k]);
9 { $process[$key][stripslashes($k)] = $v;
10 $process[] = &$process[$key][stripslashes($k)];
12 else $process[$key][stripslashes($k)] = stripslashes($v);
22 * decommentez la fin du fichier pour activer le filtrage
23 * des inputs (ici POST et FILES)
27 { require $this->path("libs")."inputfilter.php";
29 ( "p", "span", "pre", "blockquote", "address", "hr", "br",
31 "strong", "em", "u", "i", "b", "s",
34 "h1", "h2", "h3", "h4", "h5", "h6"
36 $allowed_attrs = array
38 "src", "alt", "width", "height",
41 $input_filter = new InputFilter($allowed_tags, $allowed_attrs);
42 $_POST = $input_filter->process($_POST);
46 { foreach($_FILES as $file_key => $file_infos)
47 { $v_name = explode(".", $file_infos["name"]);
48 $ext = strtolower($v_name[count($v_name) - 1]);
54 ) unset($_FILES[$file_key]);