好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

discuz的php防止sql注入函数 - 网站安全 - 自学php

$magic_quotes_gpc = get_magic_quotes_gpc(); @extract(daddslashes($_COOKIE)); @extract(daddslashes($_POST)); @extract(daddslashes($_GET)); if(!$magic_quotes_gpc) { $_FILES = daddslashes($_FILES); }     HdhCmsTest2cto测试数据 function daddslashes($string, $force = 0) { if(!$GLOBALS['magic_quotes_gpc'] || $force) { if(is_array($string)) { foreach($string as $key => $val) { $string[$key] = daddslashes($val, $force); } } else { $string = addslashes($string); } } return $string; }

查看更多关于discuz的php防止sql注入函数 - 网站安全 - 自学php的详细内容...

  阅读:48次