<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[不懂戀愛魚兒]]></title> 
<description><![CDATA[海南网站建设,网页设计,旅游,酒店,机票 QQ:862550671]]></description>
<link>http://www.souab.com/</link>
<language>zh-cn</language>
<generator>www.emlog.net</generator>
<item>
	<title>asp检测是否有效的E-mail地址函数</title>
	<link>http://www.souab.com/?post=234</link>
	<description><![CDATA[<pre class="brush:vb; toolbar: true; auto-links: true;">'检测是否有效的E-mail地址    
Function IsValidEmail(Email)     
Dim names, name, i, c    
IsValidEmail = True   
Names = Split(email, "@")    
If UBound(names) &lt;&gt; 1 Then   
IsValidEmail = False   
Exit Function   
End If   
For Each name IN names    
If Len(name) &lt;= 0 Then   
IsValidEmail = False   
Exit Function   
End If   
For i = 1 to Len(name)    
c = Lcase(Mid(name, i, 1))    
If InStr("abcdefghijklmnopqrstuvwxyz_-.", c) &lt;= 0 And Not IsNumeric(c) Then   
IsValidEmail = false    
Exit Function   
End If   
Next   
If Left(name, 1) = "." or Right(name, 1) = "." Then   
IsValidEmail = false    
Exit Function   
End If   
Next   
If InStr(names(1), ".") &lt;= 0 Then   
IsValidEmail = False   
Exit Function   
End If   
i = Len(names(1)) - InStrRev(names(1), ".")    
If i &lt;&gt; 2 And i &lt;&gt; 3 Then   
IsValidEmail = False   
Exit Function   
End If   
If InStr(email, "..") &gt; 0 Then   
IsValidEmail = False   
End If   
End Function   
siteMail="abcd-3@163.com"
Response.Write(IsValidEmail(siteMail))</pre><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.souab.com/?post=36">ASP通用防注入代码　杜绝SQL注入隐患</a></p><p><a href="http://www.souab.com/?post=86">ASP生成静态页之添加新闻(３)</a></p><p><a href="http://www.souab.com/?post=119">ASP中新闻标题太长时，省略号显示过长内容</a></p><p><a href="http://www.souab.com/?post=159">ASP通过FLASH批量上传(CFUpdate)</a></p><p><a href="http://www.souab.com/?post=188">ASP中的加减乘除运算的方法</a></p></div>]]></description>
	<pubDate>Sun, 15 Apr 2012 09:08:50 +0000</pubDate>
	<author>不懂戀愛魚兒</author>
	<guid>http://www.souab.com/?post=234</guid>

</item>
<item>
	<title>美化分页样式</title>
	<link>http://www.souab.com/?post=233</link>
	<description><![CDATA[<pre class="brush:html; toolbar: true; auto-links: true;">&lt;style type="text/css"&gt;
/* 分页 */
* {font-size:12px; font-family:Arial, Helvetica, sans-serif;}
.pages {padding:5px; text-align:center; margin:10px 0; color:#000; clear:both;}
.pages select {vertical-align:baseline; +vertical-align:middle; margin:0 0 5px 0;}
.pages a{border:1px solid #ddd; text-decoration:none; padding:.2em .65em; *padding:.25em .65em;  margin-right:.5em; zoom:1; font-weight:bold; color:#000;}
.pages a:link, .pages a:visited{border:1px solid #ddd; text-decoration:none; padding:.2em .65em; *padding:.25em .65em;  margin-right:.5em; zoom:1; font-weight:bold; color:#000;}
.pages a:hover{background:#0442AB;color:#fff; border:1px solid #0442AB;}
.pages span.cpb,.pages span.cpp{border:1px solid #fff; color:#fff; background:#0442AB; text-decoration:none; padding:.2em .65em; *padding:.25em .65em; margin-right:.5em; zoom:1;}
&lt;/style&gt;
&lt;div class="pages"&gt;
  &lt;div id="MyPage"&gt;&lt;a disabled&gt;首页&lt;/a&gt; &lt;a disabled&gt;上页&lt;/a&gt; &lt;span class="cpb"&gt;1&lt;/span&gt; &lt;a href="#"&gt;2&lt;/a&gt; &lt;a href="#"&gt;3&lt;/a&gt; &lt;a disabled&gt;...&lt;/a&gt; &lt;a href="#" class="cpb"&gt;下页&lt;/a&gt; &lt;a href="#" class="cpb"&gt;尾页&lt;/a&gt; &lt;a disabled&gt;共有7页&lt;/a&gt;&lt;/div&gt;
        &lt;/div&gt;</pre><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.souab.com/?post=100">UTF-8版JS分页代码</a></p><p><a href="http://www.souab.com/?post=32">用CSS控制的横向列表菜单</a></p><p><a href="http://www.souab.com/?post=111">eWebeditor V2.8增加分页功能！已测试成功！</a></p><p><a href="http://www.souab.com/?post=29">7种JS脚本分页代码</a></p></div>]]></description>
	<pubDate>Fri, 13 Apr 2012 09:01:30 +0000</pubDate>
	<author>不懂戀愛魚兒</author>
	<guid>http://www.souab.com/?post=233</guid>

</item>
<item>
	<title>asp检测是否只包含英文和数字、是否有效的数字、用户名等函数</title>
	<link>http://www.souab.com/?post=232</link>
	<description><![CDATA[<pre class="brush:vb; toolbar: true; auto-links: true;">'检测是否只包含英文和数字   
Function IsValidChars(str)    
Dim re,chkstr    
Set re=new RegExp    
re.IgnoreCase =true    
re.Global=True   
re.Pattern="[^_\.a-zA-Z\d]"   
IsValidChars=True   
chkstr=re.Replace(str,"")    
if chkstr&lt;&gt;str then IsValidChars=False   
set re=nothing    
End Function 

'检测是否有效的数字    
Function IsInteger(Para)     
IsInteger=False   
If Not (IsNull(Para) Or Trim(Para)="" Or Not IsNumeric(Para)) Then   
IsInteger=True   
End If   
End Function 

'用户名检测    
Function IsValidUserName(byVal UserName)    
on error resume next    
Dim i,c    
Dim VUserName    
IsValidUserName = True   
For i = 1 To Len(UserName)    
c = Lcase(Mid(UserName, i, 1))    
If InStr("$!&lt;&gt;?#^%@~`&amp;*();:-_+='""　   ", c) &gt; 0 Then   
IsValidUserName = False   
Exit Function   
End IF    
Next   
For Each VUserName in Register_UserName    
If UserName = VUserName Then   
IsValidUserName = False   
Exit For   
End If   
Next   
End Function </pre><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.souab.com/?post=231">ASP 相关函数(asp防盗链相关函数)防止外部提交</a></p><p><a href="http://www.souab.com/?post=144">ASP 日期时间格式化函数(For VBScript )</a></p><p><a href="http://www.souab.com/?post=136">Asp随机生成一个密码</a></p><p><a href="http://www.souab.com/?post=177">asp获取当前网址函数</a></p><p><a href="http://www.souab.com/?post=35">ASP处理数据库被挂马的方法</a></p></div>]]></description>
	<pubDate>Wed, 11 Apr 2012 08:54:02 +0000</pubDate>
	<author>不懂戀愛魚兒</author>
	<guid>http://www.souab.com/?post=232</guid>

</item>
<item>
	<title>ASP 相关函数(asp防盗链相关函数)防止外部提交</title>
	<link>http://www.souab.com/?post=231</link>
	<description><![CDATA[<pre class="brush:vb; toolbar: true; auto-links: true;">&lt;%'*************************************    
'防止外部提交    
'*************************************
function ChkPost()
  dim server_v1,server_v2
  chkpost=false
  server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
  server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
  If Mid(server_v1,8,Len(server_v2))&lt;&gt;server_v2 then
    chkpost=False
  else
   chkpost=True
  end If
 end function%&gt;</pre><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.souab.com/?post=87">ASP生成静态页(４)</a></p><p><a href="http://www.souab.com/?post=169">asp vb 中取得 日期 和 时间 分钟</a></p><p><a href="http://www.souab.com/?post=73">Asp遍历文件夹内的内容[支持JPG,GIF,MDB等所有文件]</a></p><p><a href="http://www.souab.com/?post=147">ASP时间转换为农历代码</a></p><p><a href="http://www.souab.com/?post=220">海南网站建设，价格便宜，质量好，满意付全款</a></p></div>]]></description>
	<pubDate>Thu, 15 Mar 2012 02:49:56 +0000</pubDate>
	<author>不懂戀愛魚兒</author>
	<guid>http://www.souab.com/?post=231</guid>

</item>
<item>
	<title>Asp相关函数之(asp防盗链下载函数) 二</title>
	<link>http://www.souab.com/?post=230</link>
	<description><![CDATA[<p>ASP防盗链输出图片函数 showimg　（需要Persits.Jpeg组件支持）</p>
<p>程序代码</p>
<pre class="brush:vb; toolbar: true; auto-links: true;">Sub showimg(FileName)
    Response.Clear
    Dim Jpeg,temp_pic
    On Error Resume Next
    Set Jpeg = Server.CreateObject("Persits.Jpeg") 
    If -2147221005=Err then 
        'Response.write "没有这个组件，请安装!" '检查是否安装AspJpeg组件
        downloadFile FileName
        Exit Sub
    End If 
    Jpeg.Open (Server.MapPath(FileName)) '打开图片 
    If err.number then 
        'Response.write "打开图片失败,请检查路径！" 
        Jpeg.Open (Server.MapPath("images/logos.gif"))
        response.end
    End if 
    temp_pic=Jpeg.Binary
    Response.ContentType = "image/*"
    Response.AddHeader "Content-Disposition","filename=" &amp; arr_FileName(FileName)
    Response.BinaryWrite temp_pic
    Response.End
End Sub </pre><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.souab.com/?post=36">ASP通用防注入代码　杜绝SQL注入隐患</a></p><p><a href="http://www.souab.com/?post=73">Asp遍历文件夹内的内容[支持JPG,GIF,MDB等所有文件]</a></p><p><a href="http://www.souab.com/?post=34">ASP随机生成汉字的方法</a></p><p><a href="http://www.souab.com/?post=187">ASP时间格式转化类</a></p><p><a href="http://www.souab.com/?post=76">ASP屏蔽某个IP或IP段禁止访问网站</a></p></div>]]></description>
	<pubDate>Tue, 13 Mar 2012 02:47:11 +0000</pubDate>
	<author>不懂戀愛魚兒</author>
	<guid>http://www.souab.com/?post=230</guid>

</item>
<item>
	<title>Asp相关函数之(asp防盗链下载函数)</title>
	<link>http://www.souab.com/?post=229</link>
	<description><![CDATA[<p>动网的防盗链，加上了一个关于图片的防盗链函数，根据文件类型合起来用，应该算是完美了！</p>
<p>网站建设的防盗链正是用以下两函数的配合处理。</p>
<p>防盗链下载函数 downloadFile 需要　服务器支持ADODB.Stream </p>
<p>程序代码</p>
<pre class="brush:vb; toolbar: true; auto-links: true;">Sub downloadFile(strFile)
        On error resume next
        Server.ScriptTimeOut=999999
        Dim S,fso,f,intFilelength,strFilename,DownFileName

        strFilename = Server.MapPath(strFile)
        Response.Clear
        Set s = Server.CreateObject("ADODB.Stream") 
        s.Open
        s.Type = 1 
        Set fso = Server.CreateObject("Scripting.FileSystemObject") 
        If Not fso.FileExists(strFilename) Then
            'Response.Write("&lt;h1&gt;错误: &lt;/h1&gt;&lt;br&gt;系统找不到指定文件")
            showimg "images/logos.gif"
            Exit Sub        
        End If
        Set f = fso.GetFile(strFilename)
            intFilelength = f.size
            s.LoadFromFile(strFilename)
            If err Then
                'Response.Write("&lt;h1&gt;错误: &lt;/h1&gt;" &amp; err.Description &amp; "&lt;p&gt;")
                showimg "images/logos.gif"
                Response.End 
            End If
            Set fso=Nothing
            Dim Data
            Data=s.Read
            s.Close
            Set s=Nothing
            If Response.IsClientConnected Then 
                Response.AddHeader "Content-Disposition", "attachment; filename=" &amp; strFile
                Response.AddHeader "Content-Length", intFilelength 
                Response.CharSet = "UTF-8" 
                Response.ContentType = "application/octet-stream"
                Response.BinaryWrite Data
                Response.Flush
            End If
    End Sub</pre><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.souab.com/?post=190">ASP利用COOKIES判断多少时间内只能提交一次数据。</a></p><p><a href="http://www.souab.com/?post=159">ASP通过FLASH批量上传(CFUpdate)</a></p><p><a href="http://www.souab.com/?post=119">ASP中新闻标题太长时，省略号显示过长内容</a></p><p><a href="http://www.souab.com/?post=174">Asp实例删除Split分隔的内容其中的某一部份</a></p><p><a href="http://www.souab.com/?post=185">asp判断浏览器类型显示不同网页</a></p></div>]]></description>
	<pubDate>Fri, 09 Mar 2012 02:45:01 +0000</pubDate>
	<author>不懂戀愛魚兒</author>
	<guid>http://www.souab.com/?post=229</guid>

</item>
<item>
	<title>asp防止SQL注入</title>
	<link>http://www.souab.com/?post=228</link>
	<description><![CDATA[<p>主要是防asp的几个地方：</p>
<p>一、地址栏参数注入，就是用request.querystring取得值的这个</p>
<p>二、表单参数注入，就是用request.form取得值的这个</p>
<p>三、cookies&nbsp; </p>
<p>其实可以看成一个理儿，就是能输入值，能交互的让用户输入的地方都得做一下防。</p>
<p>做一个函数，截取这些地方提交的值，与一个数组（里面放着要过滤或检查的敏感字符）做一下对比</p>
<p>再献上我的一个过滤函数</p>
<pre class="brush:vb; toolbar: true; auto-links: true;">Function ChkStr(Str) 
    if Isnull(Str) then 
        ChkStr = "" 
        exit Function  
    End if 
    Str = Replace(Str,Chr(0),"", 1, -1, 1) 
    Str = Replace(Str, """", "&amp;quot;", 1, -1, 1) 
    Str = Replace(Str,"&lt;","&amp;lt;", 1, -1, 1) 
    Str = Replace(Str,"&gt;","&amp;gt;", 1, -1, 1)  
    Str = Replace(Str, "script", "&amp;#115;cript", 1, -1, 0) 
    Str = Replace(Str, "SCRIPT", "&amp;#083;CRIPT", 1, -1, 0) 
    Str = Replace(Str, "Script", "&amp;#083;cript", 1, -1, 0) 
    Str = Replace(Str, "script", "&amp;#083;cript", 1, -1, 1) 
    Str = Replace(Str, "object", "&amp;#111;bject", 1, -1, 0) 
    Str = Replace(Str, "OBJECT", "&amp;#079;BJECT", 1, -1, 0) 
    Str = Replace(Str, "Object", "&amp;#079;bject", 1, -1, 0) 
    Str = Replace(Str, "object", "&amp;#079;bject", 1, -1, 1) 
    Str = Replace(Str, "applet", "&amp;#097;pplet", 1, -1, 0) 
    Str = Replace(Str, "APPLET", "&amp;#065;PPLET", 1, -1, 0) 
    Str = Replace(Str, "Applet", "&amp;#065;pplet", 1, -1, 0) 
    Str = Replace(Str, "applet", "&amp;#065;pplet", 1, -1, 1) 
    Str = Replace(Str, "[", "&amp;#091;") 
    Str = Replace(Str, "]", "&amp;#093;") 
    Str = Replace(Str, "=", "&amp;#061;", 1, -1, 1) 
    Str = Replace(Str, "’", "&amp;#039;", 1, -1, 1) 
    Str = Replace(Str, "select", "&amp;#115;elect", 1, -1, 1) 
    Str = Replace(Str, "execute", "&amp;#101;xecute", 1, -1, 1) 
    Str = Replace(Str, "exec", "&amp;#101;xec", 1, -1, 1) 
    Str = Replace(Str, "join", "&amp;#106;oin", 1, -1, 1) 
    Str = Replace(Str, "union", "&amp;#117;nion", 1, -1, 1) 
    Str = Replace(Str, "where", "&amp;#119;here", 1, -1, 1) 
    Str = Replace(Str, "insert", "&amp;#105;nsert", 1, -1, 1) 
    Str = Replace(Str, "delete", "&amp;#100;elete", 1, -1, 1) 
    Str = Replace(Str, "update", "&amp;#117;pdate", 1, -1, 1) 
    Str = Replace(Str, "like", "&amp;#108;ike", 1, -1, 1) 
    Str = Replace(Str, "drop", "&amp;#100;rop", 1, -1, 1) 
    Str = Replace(Str, "create", "&amp;#099;reate", 1, -1, 1) 
    Str = Replace(Str, "rename", "&amp;#114;ename", 1, -1, 1) 
    Str = Replace(Str, "count", "&amp;#099;ount", 1, -1, 1) 
    Str = Replace(Str, "chr", "&amp;#099;hr", 1, -1, 1) 
    Str = Replace(Str, "mid", "&amp;#109;id", 1, -1, 1) 
    Str = Replace(Str, "truncate", "&amp;#116;runcate", 1, -1, 1) 
    Str = Replace(Str, "nchar", "&amp;#110;char", 1, -1, 1) 
    Str = Replace(Str, "char", "&amp;#099;har", 1, -1, 1) 
    Str = Replace(Str, "alter", "&amp;#097;lter", 1, -1, 1) 
    Str = Replace(Str, "cast", "&amp;#099;ast", 1, -1, 1) 
    Str = Replace(Str, "exists", "&amp;#101;xists", 1, -1, 1) 
    Str = Replace(Str,VbCrlf, " ", 1, -1, 1) 
    Str = Replace(Str, "  ", "", 1, -1, 1) 
    ChkStr = Str 
End Function</pre> <p>更新数据时，rs(“字段”) = ChkStr(trim(Request.Form("表单参数")))</p>]]></description>
	<pubDate>Wed, 07 Mar 2012 02:41:57 +0000</pubDate>
	<author>不懂戀愛魚兒</author>
	<guid>http://www.souab.com/?post=228</guid>

</item>
<item>
	<title>DEDECMS后台上传附件图片出现Upload filetype not allow解决方案</title>
	<link>http://www.souab.com/?post=227</link>
	<description><![CDATA[<div id="cnblogs_post_body">
<p>今天用dedecms上传图片，提示Upload filetype not allow，网上搜了有很多方法，</p>
<p>找到这个测试可用：<br />
</p>
<p>&nbsp;&nbsp;&nbsp; 修改 /include/uploadsafe.inc.php 第45行 <br />
<br />
&nbsp;&nbsp; $imtypes = array 改成 $imgtypes = array&nbsp;<br />
<br />
&nbsp;&nbsp; 再更新缓存就ok了！</p>
</div><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://www.souab.com/?post=53">DEDECMS 标签(Tag)调用技巧</a></p><p><a href="http://www.souab.com/?post=68">DEDECMS企业会员调用代码</a></p><p><a href="http://www.souab.com/?post=51">DEDECMS默认的文章来源及作者修改说明</a></p><p><a href="http://www.souab.com/?post=64">DEDECMS文章与图片的部分参数使用</a></p></div>]]></description>
	<pubDate>Mon, 05 Mar 2012 02:40:09 +0000</pubDate>
	<author>不懂戀愛魚兒</author>
	<guid>http://www.souab.com/?post=227</guid>

</item>
<item>
	<title>windows7文件夹上显示小锁解决方案</title>
	<link>http://www.souab.com/?post=226</link>
	<description><![CDATA[对着您的盘符或文件夹右键→ 属性→ 安全→ 找 组或用户名 下面的那个 编辑→ 添加→ 在 输入对象名称来选择 里面输入:Everyone → 确定→ 在 Everyone的权限 里把 完全控制 的 允许 打勾,然后点应用,确定.然后它就会自己修改对应的盘符或文件夹的的权限了]]></description>
	<pubDate>Sun, 04 Mar 2012 01:41:17 +0000</pubDate>
	<author>不懂戀愛魚兒</author>
	<guid>http://www.souab.com/?post=226</guid>

</item>
<item>
	<title>局域网内获取其他机器的mac地址</title>
	<link>http://www.souab.com/?post=225</link>
	<description><![CDATA[<p>这两天晚上上网速度特慢。很不爽。想禁用找个网络软件。有时候杀软有报毒。不用又慢。难受。想下用路由可以禁止。OK。直接找到MAC就可以了。</p>
<p>首先得知道对方机器的IP。如果不知道就用软件扫了。像p2p终结者之类的。如果知道就最好。这儿介绍的就是知道IP但不知道MAC的</p>
<p>ping &nbsp; ip <br />
然后arp &nbsp; -a</p>
<p>进入路由。这个以D-Link为例：</p>
<p>进阶设定——过滤器——MAC地址过滤——只<b>拒绝</b>下述 MAC 地址之使用者存取网络</p>
<p>执行。OK。。上网速度快多了。。</p>]]></description>
	<pubDate>Thu, 01 Mar 2012 13:34:54 +0000</pubDate>
	<author>不懂戀愛魚兒</author>
	<guid>http://www.souab.com/?post=225</guid>

</item></channel>
</rss>
