
                        <%if request.cookies("snsn")("username")="" then%>
<%if login=0 then%>
<font color="#FF0000">亲爱的用户您好，网站目前正在维护中，目前暂时禁止用户登录!</font> 
<%else%>
<font color="#333333">亲爱的顾客您好，购买商品前请先<a href="login.asp"><font color="#333333">登录</font></a>，如未注册请先<a href="reg.asp"><font color="#333333">注册成为会员</font></a>! 
<%end if%>
</font> 
<%else
                        set rs=server.createobject("adodb.recordset")
                        rs.open "select * from [shop_user] where username='"&request.cookies("snsn")("username")&"'",conn,1,3
                       if rs("vipdate")<>"" then 
                          '看是不是过期VIP
                         if rs("vipdate")<date and rs("reglx")=2 then
                        rs("reglx")=1
                       rs.update
                         end if
                       end if
                       Response.Cookies("snsn")("yucun")=rs("yucun")
                        Response.Cookies("snsn")("jifen")=rs("jifen")
                      Response.Cookies("snsn")("reglx=")=rs("reglx")
                        rs.close
                        set rs=nothing
				if Request.Cookies("snsn")("reglx")=2 then
				response.write "<font color=#333333>亲爱的"&Request.Cookies("snsn")("username")&" 贵宾您好，您目前为本站VIP会员，共有"&Request.Cookies("snsn")("jifen")&"积分，预存款"&Request.Cookies("snsn")("yucun")&"元!</font>"
				else
				response.write "<font color=3333330>亲爱的"&Request.Cookies("snsn")("username")&"您好，您目前为本站普通会员，共有"&Request.Cookies("snsn")("jifen")&"积分，预存款"&Request.Cookies("snsn")("yucun")&"元!</font>"
				end if
                        end if%>
&nbsp;&nbsp; <font color="#333333"> </font> 
