标签:io ar sp on cti bs amp as sql
if (get_magic_quotes_gpc()) { $keyword = mysql_real_escape_string(stripslashes($keyword)); }else{ $keyword = mysql_real_escape_string($keyword); }
$_GET = stripslashes_array($_GET); function stripslashes_array(&$array) { while(list($key,$var) = each($array)) { if ($key != ‘argc‘ && $key != ‘argv‘ && (strtoupper($key) != $key || ‘‘.intval($key) == "$key")) { if (is_string($var)) { $array[$key] = stripslashes($var); } if (is_array($var)) { $array[$key] = stripslashes_array($var); } } } return $array; }
标签:io ar sp on cti bs amp as sql
原文地址:http://my.oschina.net/xinson/blog/342759