home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
wh
/
qim
/
opensoft.asp
< prev
next >
Wrap
Text File
|
2006-06-01
|
6KB
|
175 lines
<%
'==================================
'=╬─ ╝■ ├√ú║opensoft.asp
'=╩╩╙├░µ▒╛ú║FeitecCMS AC V1.21 Free
'=╣ª ─▄ú║╚φ╝■╧┬╘╪╓┤╨╨╥│├µ
'=╫≈ ╒▀ú║╙Ω│╟[From to FeitecStudio]
'=╚╒ ╞┌ú║2006-2-19 18:09
'=░µ ╚¿ú║http://www.feitec.com/
'=╝╝╩⌡╠╓┬█ú║6602510íó14040543ú¿╨┬╩╓╚║ú⌐
'==================================
%>
<!--#include file="Ft_config.asp"-->
<!--#include file="Ft_conn.asp"-->
<!--#include file="Ft_format.asp"-->
<!--#include file="Ft_lib.asp"-->
<!--#include file="Ft_md5.asp"-->
<%
sub_title="╛▀╠σ╚φ╝■╧┬╘╪"
dim softid,urlnum
if request.querystring("id")="" or request.querystring("url")="" then
response.redirect("showerr.asp?errmsg=╟δ╓╕╢¿▓┘╫≈╢╘╧≤")
response.end
else
softid=checksql("╚φ╝■ID",request.querystring("id"),0,8)
urlnum=checksql("╚φ╝■╧┬╘╪╒╛╡π",request.querystring("url"),0,1)
end if
if request.querystring("open")="" or request.querystring("down")="" then
softopen=""
softuser=""
else
softopen=checksql("╚φ╝■OPEN▓╬╩²",request.querystring("open"),1,40)
softuser=checksql("╚φ╝■DOWN▓╬╩²",request.querystring("down"),1,10)
end if
'=========╖└╓╣═¿╣²┴φ┤µ╬¬╖╜╩╜╧┬╘╪======
From_url = Cstr(Request.ServerVariables("HTTP_REFERER"))
Serv_url = Cstr(Request.ServerVariables("SERVER_NAME"))
if mid(From_url,8,len(Serv_url)) <> Serv_url then
response.redirect("showerr.asp?errmsg=<br><li>╖╟╖¿╡─┴┤╜╙╗≥╖╟╖¿╡─╧┬╘╪╖╜╖¿íú</li><br><br><li>╒²╚╖╡─╧┬╘╪╖╜╖¿╩╟ú║</li><br> ó┘╘┌▒╛╒╛╧┬╘╪ú╗<br> ó┌╓▒╜╙╡π╗≈┴┤╜╙╧┬╘╪ú¼▓╗┴φ┐¬IE┤░┐┌ú╗<br> ó█═╧╖┼┴┤╜╙╡╜╧┬╘╪╣ñ╛▀╡─╕í╢»┤░┐┌ú¼╕▀╦┘╧┬╘╪íú")
response.end
end if
'=========╚í│÷╚φ╝■╧α╣╪▓╬╩²
sql="select * from Ft_soft where soft_id="&softid
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
userview=rs("user_view")
moneypay=rs("moneypay")
else
response.redirect("showerr.asp?errmsg=├╗╙╨┤╦╚φ╝■╗≥┤╦╚φ╝■╥╤╔╛│²")
response.end
end if
rs.close
set rs=nothing
url="soft_url"+urlnum
sql="select "&url&" from Ft_soft where soft_id="&softid
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
downurl=rs(0)
rs.close
set rs=nothing
'╡▒╙├╗º╧╡═│╣╪▒╒╩▒
if user_system=0 or session("feitec_adminlogin")=feitec_sessionvar then
if downtools=1 or downtools=2 then '╚τ╣√╘╩╨φ╙├╣ñ╛▀╧┬╘╪
call softdcount()
response.redirect downurl
else
if request.Cookies("soft_download")<>feitec_sessiondown then
Response.Write "<script>alert('Sorry,▒╛╒╛╜√╓╣╩╣╙├╣ñ╛▀╚φ╝■╧┬╘╪ú¼╟δ┤╙▒╛╒╛╓▒╜╙╘┌IE╓╨╧┬╘╪ú¼╨╗╨╗║╧╫≈úí');location="""&weburl&"/download.asp"";</script>"
Response.end
end if
call softdcount()
response.redirect downurl
end if
end if
'╙├userview╫≈╬¬╩╫▓π┼╨╢╧
if userview=0 then '╚τ╣√┤╦╚φ╝■╩╟╞╒═¿╚φ╝■
if downtools=1 then '╚τ╣√╘╩╨φ╙├╣ñ╛▀╧┬╘╪
call softdcount()
response.redirect downurl
elseif downtools=2 then '╘╩╨φ╗ß╘▒╙├╣ñ╛▀╧┬╘╪
sql="select * from Ft_user where name='"&softuser&" '"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof or softopen<>Ft_md5(rs("user_id")+3) then
if request.Cookies("soft_download")<>feitec_sessiondown then
Response.Write "<script>alert('Sorry,▒╛╒╛╜√╓╣╖╟╗ß╘▒╩╣╙├╣ñ╛▀╚φ╝■╧┬╘╪ú¼╟δ┤╙▒╛╒╛╓▒╜╙╘┌IE╓╨╧┬╘╪ú¼╨╗╨╗║╧╫≈úí');location="""&weburl&"/download.asp"";</script>"
Response.end
end if
call softdcount()
response.redirect downurl
else
call softdcount()
response.redirect downurl
end if
elseif downtools=0 then'▓╗╘╩╨φ╙├╣ñ╛▀╧┬╘╪
if request.Cookies("soft_download")<>feitec_sessiondown then
Response.Write "<script>alert('Sorry,▒╛╒╛╜√╓╣╩╣╙├╣ñ╛▀╚φ╝■╧┬╘╪ú¼╟δ┤╙▒╛╒╛╓▒╜╙╘┌IE╓╨╧┬╘╪ú¼╨╗╨╗║╧╫≈úí');location="""&weburl&"/download.asp"";</script>"
Response.end
end if
call softdcount()
response.redirect downurl
end if
elseif userview=1 then '╞╒═¿╗ß╘▒╚φ╝■
sql="select * from Ft_user where lock=0 and name='"&softuser&"'and passed=1"
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,3
if not rs2.eof then
if rs2("user_money")<0 then
response.write"<script>alert('"&softuser&"ú¼─π╡─╜≡▒╥╩²╥╤▓╗╣╗ú¼╟δ╝░╩▒│Σ╓╡úí');history.go(-1);</script>"
response.end
else
rs2("user_money")=rs2("user_money")-moneypay
rs2.update
end if
else
response.write"<script>alert('├╗╙╨┤╦╗ß╘▒╗≥┤╦╗ß╘▒╒²╘┌╔≤║╦╗≥┤╦╗ß╘▒╥╤▒╗╦°╢¿');location.href='index.asp';</script>"
response.end
end if
rs2.close:set rs2=nothing
if downtools=1 or downtools=2 then '╚τ╣√╘╩╨φ╙├╣ñ╛▀╧┬╘╪╗≥╘╩╨φ╗ß╘▒╙├╣ñ╛▀╧┬╘╪
call softdcount()
response.redirect downurl
else '▓╗╘╩╨φ╙├╣ñ╛▀╧┬╘╪
if request.Cookies("soft_download")<>feitec_sessiondown then
Response.Write "<script>alert('Sorry,▒╛╒╛╜√╓╣╩╣╙├╣ñ╛▀╚φ╝■╧┬╘╪ú¼╟δ┤╙▒╛╒╛╓▒╜╙╘┌IE╓╨╧┬╘╪ú¼╨╗╨╗║╧╫≈úí');location="""&weburl&"/download.asp"";</script>"
Response.end
end if
call softdcount()
response.redirect downurl
end if
elseif userview=2 then 'VIP╗ß╘▒╚φ╝■
sql="select * from Ft_user where lock=0 and name='"&softuser&"'and passed=1"
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,3
if not rs2.eof then
if rs2("user_money")<0 then
response.write"<script>alert('"&softuser&"ú¼─π╡─╜≡▒╥╩²╥╤▓╗╣╗ú¼╟δ╝░╩▒│Σ╓╡úí');history.go(-1);</script>"
response.end
elseif rs2("user_type")<>2 then
response.write"<script>alert('─·▓╗╩╟VIP╗ß╘▒ú¼╬▐╚¿▓Θ┐┤┤╦╥│');history.go(-1);</script>"
response.end
else
rs2("user_money")=rs2("user_money")-moneypay
rs2.update
end if
else
response.write"<script>alert('├╗╙╨┤╦╗ß╘▒╗≥┤╦╗ß╘▒╒²╘┌╔≤║╦╗≥┤╦╗ß╘▒╥╤▒╗╦°╢¿');location.href='index.asp';</script>"
response.end
end if
rs2.close:set rs2=nothing
if downtools=1 or downtools=2 then '╚τ╣√╘╩╨φ╙├╣ñ╛▀╧┬╘╪╗≥╘╩╨φ╗ß╘▒╙├╣ñ╛▀╧┬╘╪
call softdcount()
response.redirect downurl
else '▓╗╘╩╨φ╙├╣ñ╛▀╧┬╘╪
if request.Cookies("soft_download")<>feitec_sessiondown then
Response.Write "<script>alert('Sorry,▒╛╒╛╜√╓╣╩╣╙├╣ñ╛▀╚φ╝■╧┬╘╪ú¼╟δ┤╙▒╛╒╛╓▒╜╙╘┌IE╓╨╧┬╘╪ú¼╨╗╨╗║╧╫≈úí');location="""&weburl&"/download.asp"";</script>"
Response.end
end if
call softdcount()
response.redirect downurl
end if
end if
sub softdcount()
set rs=conn.execute("select soft_id,soft_dcount from Ft_soft")
sql="UPDATE Ft_soft SET soft_dcount = soft_dcount + 1 WHERE soft_id="&softid
conn.execute (sql)
rs.close
set rs=nothing
end sub
CloseDatabase
%>