| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 462 人关注过本帖
标题:自动生成添加,删除,修改代码(修改版)
只看楼主 加入收藏
hp3325
Rank: 2
等 级:论坛游民
帖 子:29
专家分:26
注 册:2009-6-7
结帖率:33.33%
收藏
已结贴  问题点数:20 回复次数:1 
自动生成添加,删除,修改代码(修改版)
ShowDB.rar (3.12 KB)


1,加入字段类型识别
2,加入防注代码,可以说告别注入
3,加入操作时锁定
4,其它修改...

2010.12.01
喔,还忘了一句:
P=rs.fields(i).type

'过滤函数
Function ReplaceBadWord(eword)
  eword = Replace(eword,"'","")
  eword = Replace(eword," ","")
  eword = Replace(eword,"(","")
  eword = Replace(eword,"\","")
  eword = Replace(eword,"^","")
  eword = Replace(eword,"%","%")
  eword = Replace(eword,"|","")
  eword = Replace(eword,";","")
  eword = Replace(eword," = ","")
  eword = Replace(eword,"select","")
  eword = Replace(eword,"or","")
  eword = Replace(eword,"Or","")
  eword = Replace(eword,"oR","")
  eword = Replace(eword,"And","")
  eword = Replace(eword,"aNd","")
  eword = Replace(eword,"anD","")
  eword = Replace(eword,"and","")
  eword = Replace(eword,"delete","")
  eword = Replace(eword,"where","")
  html = Replace(Body,"'","")
  html = Replace(html,Chr(34),"")
  eword = Trim(Replace(eword,")",""))  
  ReplaceBadWord = eword
End Function

[ 本帖最后由 hp3325 于 2010-12-2 11:14 编辑 ]
搜索更多相关主题的帖子: 代码 自动 删除 
2010-11-18 20:45
gupiao175
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:40
帖 子:1787
专家分:7527
注 册:2007-6-27
收藏
得分:20 
下来看看。有点意思!

Q:1428196631,百度:开发地 即可找到我,有事请留言!
2010-11-18 21:32
快速回复:自动生成添加,删除,修改代码(修改版)
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.025022 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved