<%@ LANGUAGE=VBScript codepage ="936" %>
<!--#include file="sjfunc.asp"-->
<!--#include file="../../mywp.asp"-->

<%'寻找会员金卡♀非凡国度→www.oneidc.cn♀
Response.Expires=0
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "Pragma","No-Cache"
Response.AddHeader "Cache-Control","Private"
Response.CacheControl = "No-Cache"
if zhbg_jhdj<jhdj_xunshuijing then
	Response.Write "<script language=JavaScript>{alert('寻找会员金卡，需要国度等级["&jhdj_xunshuijing&"]级的才可以操作！');}</script>"
	Response.End
end if
if Instr(LCase(Application("zhbg_useronlinename"&nowinroom)),LCase(" "&zhbg_name&" "))=0 then 
	Session("zhbg_inthechat")="0" 
	Response.Redirect "chaterr.asp?id=001" 
end if 
towho=Trim(Request.Form("towho"))
towhoway=Request.Form("towhoway")
saycolor=Request.Form("saycolor")
addwordcolor=Request.Form("addwordcolor")
addsays=Request.Form("addsays")
says=Trim(Request.Form("sy"))
call dianzan(towho)
if len(says)>150 then says=Left(says,150)
says=lcase(says)
says=Replace(says,"&amp;","&")
if zhbg_grade<9 then
	says=bdsays(says)
end if
act=1
towhoway=0
i=instr(says,"$")
fnn1=mid(says,i+1)
says="<font color=red>【寻找会员金卡】<font color=" & saycolor & ">"+xunshuijing(mid(says,i+1),towho)+"</font>"
call chatsay(act,towhoway,towho,saycolor,addwordcolor,addsays,says)
'寻找会员金卡
function xunshuijing(fn1,to1)
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
conn.open Application("zhbg_usermdb")
rs.open "select 金币,会员等级,操作时间 FROM 用户 WHERE 姓名='" & zhbg_name &"'" ,conn,2,2
fla=rs("金币")
if rs("金币")<15 then
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	Response.Write "<script language=JavaScript>{alert('提示：你的金币不够无法施展呀，至少也得15个啊！');window.close();}</script>"
	response.end
end if
hydj=rs("会员等级")
if hydj<5 then
        rs.close
        set rs=nothing
        conn.close
        set conn=nothing
	Response.Write "<script language=JavaScript>{alert('提示：会员等级为5级才可以进行寻找会员金卡！购买5级会员赠送200级（400万存点）每天可以领到100个金币！购买加QQ116722683 或打电话：13176775595');}</script>"
	Response.End
end if
if DateDiff("s",rs("操作时间"),now())<300 then
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
	Response.Write "<script language=JavaScript>{alert('为了防止在乱刷，请等5分钟操作!');history.go(-1);}</script>"
	Response.End 
end if
rs.close
conn.execute "update 用户 set 金币=金币-15,操作时间=now()  where 姓名='"&zhbg_name&"'"
randomize 
r=int(rnd*6)+1
select case r
case 1
xunshuijing=zhbg_name & "你寻遍了国度各个角落终于找到了[<b><font color=red>1</font></b>]张会员金卡<img src='img/jk.gif'>," & zhbg_name & "真是幸运呀!" 
	conn.execute "update 用户 set 会员金卡=会员金卡+1 where 姓名='" & zhbg_name &"'"
	

case 2
xunshuijing=zhbg_name & "你寻遍了国度各个角落终于找到了[<b><font color=red>2</font></b>]张会员金卡<img src='img/jk.gif'>," & zhbg_name & "真是幸运呀!" 
	conn.execute "update 用户 set 会员金卡=会员金卡+2 where 姓名='" & zhbg_name &"'"
	
case 3
xunshuijing=zhbg_name & "真幸运，你寻遍了国度各个角落找到了[<b><font color=red>5</font></b>]个金币" & zhbg_name & "增加了金币[<b><font color=red>5</font></b>]个<img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'>!" 
	conn.execute "update 用户 set 金币=金币+5 where 姓名='" & zhbg_name &"'"

case 4
xunshuijing=zhbg_name & "真幸运，你寻遍了国度各个角落找到了[<b><font color=red>5</font></b>]个金币" & zhbg_name & "增加了金币[<b><font color=red>5</font></b>]个<img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'>!" 
	conn.execute "update 用户 set 金币=金币+5 where 姓名='" & zhbg_name &"'"

case 5
xunshuijing=zhbg_name & "好可惜，你寻遍了国度各个角落找到了[<b><font color=red>5</font></b>]个金币" & zhbg_name & "增加了金币[<b><font color=red>5</font></b>]个<img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'><img src='img/jinbi.gif'>!" 
	conn.execute "update 用户 set 金币=金币+5 where 姓名='" & zhbg_name &"'"

case 6
xunshuijing=zhbg_name & "你寻遍了国度各个角落终于找到了[<b><font color=red>5</font></b>]张会员金卡<img src='img/jk.gif'>," & zhbg_name & "损耗[<b><font color=red>25</font></b>]个金币!" 
	conn.execute "update 用户 set 金币=金币-25,会员金卡=会员金卡+5 where 姓名='" & zhbg_name &"'"
	
end select
set rs=nothing	
conn.close
set conn=nothing
end function
%>
