当前位置: 首页 > 图文教程 > 网络编程 > PHP > 哪位知道DISCUZ处理防SQL注入的代码是哪部分 - PHPchina

PHP
URL Rewrite的设置方法
php和js交互一例-PHP教程,PHP应用
推荐个功能齐全的发送PHP邮件类
推荐php模板技术[转]
菜鸟学PHP之Smarty入门
Smarty模板快速入门
笑谈配置,使用Smarty技术
SMARTY学习手记
如何隐藏你的.php文件
phpfans留言版用到的数据操作类和分页类
phpfans留言版用到的install.php
用php实现像JSP,ASP里Application那样的全局变量
自动分页的不完整解决方案
FCKeditor的安装(PHP)
mysql5详细安装教程
isset和empty的区别
php5.2时间相差8小时
安装APACHE
PHP has encountered an Access Violation
MYSQL环境变量

哪位知道DISCUZ处理防SQL注入的代码是哪部分 - PHPchina


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 223 ::
收藏到网摘: n/a

哪位知道DISCUZ处理防SQL注入的代码是哪部分

非常感谢【论坛浏览】 

 相关评论
作者: namelessxp 发布日期: 2006-10-07
common.[inc.]php
作者: ahshuguang 发布日期: 2006-10-07
谢谢楼上的的朋友

是不是这几句起了作用?
$magic_quotes_gpc = get_magic_quotes_gpc();
@extract(daddslashes($_COOKIE));
@extract(daddslashes($_POST));
@extract(daddslashes($_GET));
if(!$magic_quotes_gpc) {
$_FILES = daddslashes($_FILES);
}


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;
}

[ 本帖最后由 ahshuguang 于 2006-10-7 05:20 PM 编辑 ]
作者: LuckLrj 发布日期: 2006-10-07
啥年代了,还在学黑客。没出息
作者: phphp 发布日期: 2006-10-07
在整个代码中
作者: ahshuguang 发布日期: 2006-10-07