人的头脑太复杂,时间过得久,有时候连自己也被自己骗了,记下来才是最真实的..
2007年2月13日 10:37

function strip_magic_quotes($arr)
{
       foreach ($arr as $k => $v)
       {
               if (is_array($v))
                       { $arr[$k] = strip_magic_quotes($v); }
               else
                       { $arr[$k] = stripslashes($v); }
       }

       return $arr;
}

if (get_magic_quotes_gpc())
{
       if (!empty($_GET))    { $_GET    = strip_magic_quotes($_GET);    }
       if (!empty($_POST))   { $_POST   = strip_magic_quotes($_POST);   }
       if (!empty($_COOKIE)) { $_COOKIE = strip_magic_quotes($_COOKIE); }
}
我要 [保存此页] [收藏此页] [复制此链接QQ/Msn发送]
收藏到 [天天] [和讯] [我摘] [天极] [新浪] [博采] [Del.icio.us]
我们推荐您 快去试试吧!
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]