代码如下 | 复制代码 |
function uc_addslashes($string, $force = 0, $strip = false) { !defined('magic_quotes_gpc') && define('magic_quotes_gpc', get_magic_quotes_gpc()); if(!magic_quotes_gpc || $force) { if(is_array($string)) { foreach($string as $key => $val) { $string[$key] = uc_addslashes($val, $force, $strip); } } else { $string = addslashes($strip ? strips教程lashes($string) : $string); } } return $string; } if(!function_exists('daddslashes')) { //php 过滤函数应用实例111cn.net $get = $_get; //过滤post提交数据 $post = $_post; |
时间: 2025-01-07 16:20:45