快讯

一个显示原代码的asp程序

2004-02-14 09:33  出处:eNet硅谷动力  作者:enet  责任编辑:zwg 

< % function line_check(strline,cgi_type) ’该子程序用于检查输入段中是否包含有"< %、% >、< script >或< /script的特殊字符 dim cgi_flag if cgi_type="php" then cgi_flag="?" else cgi_flag="%" end if ’定义的cgi_flag用于代表php和asp的不同标识符 line_check=0 itemp=0 ipos=instr(strline,"<"&cgi_flag) if rt_min(ipos,itemp)=ipos then itemp=ipos line_check=1 end if ipos=instr(strline,cgi_flag&" >") if rt_min(ipos,itemp)=ipos then itemp=ipos line_check=2 end if ipos=instr(1,strline,"<"&"script",1) if rt_min(ipos,itemp)=ipos then itemp=ipos line_check=3 end if ipos=instr(1,strline,"<"&"/script",1) if rt_min(ipos,itemp)=ipos then itemp=ipos line_check=4 end if end function % >
键盘也能翻页,试试“← →”键
IT热词搜索 来源:360新闻
软件论坛帖子排行
相关文章

相关软件:

腾讯QQ2012
大小:52.93 MB 授权:免费
腾讯QQ2012
立即下载
腾讯QQ2013
大小:49.32 MB 授权:免费
腾讯QQ2013
立即下载