foreach(array('_GET','_POST') as $_request) {
foreach($$_request as $_key => $_value) {
if ($_key{0} != '_') {
如果 (IS_GPC) {
$_value = s_array($_value);
}
$$_key = $_value;
}
}
函数 s_array(&$array) {
if (is_array($array)) {
foreach ($array as $k => $v) {
$array[$k] = s_array($v);
}
} else if (is_string($array)) {
$array = stripslashes($array);
}
返回 $array;
// 清除HTML代码
函数 html_clean($content) {
$content = htmlspecialchars($content);
$content = str_replace("n", "
", $content);
$content = str_replace(" ", " ", $content);
$content = str_replace("t", " ", $content);
返回$内容;