当前位置:编程学习 > wap >>

WAP中利用截取手机号码达到自动登入的一段源码

答案:有做WAP网站的可以学习下.
<%
t1=timer()
usephones=Request.ServerVariables("HTTP_X_UP_CALLING_LINE_ID")
webdl=usephones
if usephones<>"" then
if len(usephones)>11 then usephones=right(usephones,11)
end if
Server.ScriptTimeout=999
If usephones=13800138000 or usephones=113800138000 or usephones=13800138000 or usephones=13800138000 or usephones=13800138000 or usephones=13800138000 then
Session("Counter")="pass_numbers_56431290"
End if
if Session("ltfsid")="ksjrh_jae56_hge654dgdd" then
response.redirect "/index.asp"
response.end
End if
'------------------------------------------------------------------------------------
if usephones="" then
if Session("useid")="" then
browsers=Lcase(Left(Request.ServerVariables("HTTP_USER_AGENT"),4))
if browsers="oper" or browsers="winw" or browsers="wapi" or browsers="mc21" or browsers="up.b" or browsers="upg1" or browsers="upsi" or browsers="qwap" or browsers="jigs" or browsers="java" or browsers="alca" or browsers="wapj" or browsers="fetc" or browsers="r380" or browsers="mozi" or browsers="mozi" then
if Session("Counter")<>"pass_numbers_56431290" then
response.redirect "/index.asp"
response.end
End if
end if
response.redirect "/lt/reg/ltdl.asp"
response.end
end if
end if
'----------------------------------------------------------------------------------
if Session("Counter")="pass_numbers_56431290" and usephones<>"" and Session("useid")="" then
sql="select * from usereg where CStr(usephone)='" & usephones & "'"
set rs=conn.execute(sql)
if Not rs.eof then
Session("ltname")=rs("usename")
Session("useid")=rs("id")
Session("showjd")=rs("jdshow")
if CStr(rs("ftsdbz"))="t" then
Session("ltfsbz")="sdfghdfg_dfg45fg45_6554"
else
Session("ltfsbz")=""
End if
if CStr(rs("lysdbz"))="t" then
Session("ltlybz")="dfg34fdf_dfg554ghy_3452"
else
Session("ltlybz")=""
End if
if CStr(rs("ftsdbz"))="x" then
Session("ltfsid")="ksjrh_jae56_hge654dgdd"
response.redirect "/index.asp"
else
Session("ltfsid")=""
End if
if CStr(rs("bzbz"))<>"0" then
Session("ltglzdl")=rs("bzbz")
else
Session("ltglzdl")=""
End if
Session.Timeout=10
set rs=nothing
end if
end if
'----------------------------------------------------------------------------------
if Session("Counter")<>"pass_numbers_56431290" and usephones<>"" then
'----------------------------------------------------------------------------------
sql="select * from usereg where CStr(usephone)='" & usephones & "'"
set rs=conn.execute(sql)
if Not rs.eof then
Session("ltname")=rs("usename")
Session("useid")=rs("id")
Session("showjd")=rs("jdshow")
if CStr(rs("ftsdbz"))="t" and Session("Counter")<>"pass_numbers_56431290" then
Session("ltfsbz")="sdfghdfg_dfg45fg45_6554"
else
Session("ltfsbz")=""
End if
if CStr(rs("lysdbz"))="t" and Session("Counter")<>"pass_numbers_56431290" then
Session("ltlybz")="dfg34fdf_dfg554ghy_3452"
else
Session("ltlybz")=""
End if
if CStr(rs("ftsdbz"))="x" and Session("Counter")<>"pass_numbers_56431290" then
Session("ltfsid")="ksjrh_jae56_hge654dgdd"
response.redirect "/index.asp"
else
Session("ltfsid")=""
End if
if CStr(rs("bzbz"))<>"0" then
Session("ltglzdl")=rs("bzbz")
else
Session("ltglzdl")=""
End if
Session.Timeout=10
set rs=nothing
else
sql="insert into usereg(usephone) values (" & usephones &")"
conn.execute(sql)
set rs=nothing
sql="select * from usereg where CStr(usephone)='" & usephones & "'"
set rs=conn.execute(sql)
Session("ltname")=rs("usename")
Session("useid")=rs("id")
Session("showjd")=rs("jdshow")
if CStr(rs("ftsdbz"))="t" and Session("Counter")<>"pass_numbers_56431290" then
Session("ltfsbz")="sdfghdfg_dfg45fg45_6554"
End if
if CStr(rs("lysdbz"))="t" and Session("Counter")<>"pass_numbers_56431290" then
Session("ltlybz")="dfg34fdf_dfg554ghy_3452"
else
Session("ltlybz")=""
End if
if CStr(rs("ftsdbz"))="x" and Session("Counter")<>"pass_numbers_56431290" then
Session("ltfsid")="ksjrh_jae56_hge654dgdd"
response.redirect "/index.asp"
else
Session("ltfsid")=""
End if
if CStr(rs("bzbz"))<>"0" then
Session("ltglzdl")=rs("bzbz")
else
Session("ltglzdl")=""
End if
Session.Timeout=10
response.redirect "/lt/reg/new.asp"
set rs=nothing
End if
End if
%>

上一个:设计面向IE for Pocket PC的Web站点(一)
下一个:ASPX+WML开发WAP(VB版,不用MMIT)

更多图片编程知识:
更多wap疑问解答:
新人求助QPainter
为什么程序都退出了还可以收到推送?如果大多设备都可以推送那运营商怎么办?
qt 4.7 sqlserver2000 存储过程调用
关于ANDROID4.0.1编译问题!
Android FrameBuffer读屏幕30秒后mmap失败
联通粗定位用java程序如何来请求和接受数据
为什么QT运行Android平台的程序时,mouseMoveEvent事件响应的间隔时间很长??????????
android与PC蓝牙通讯
指定大小的label 内容可变,如果内容超出label的宽度,将未能显示的部分显示在另一个label上
Android调试
android如何通过wifi连接无线打印机
运行程序,release目录下产生一个乱码文件夹
分享个某机构最新安卓资料,自己验证了
service启动不起来,掉不了service connection
求助:QT5.0 没有QPrinter吗
asp
php
Delphi
Matlab
JSP
Foxpro
JS
C/C++
C#/ASP.NET
VC++
JAVA
VB
汇编语言
html/css
CGI
XML/UML
wap
网站相关
网页素材
python
微信小程序
thinkphp
如果你遇到编程学习难题:
访问www.zzzyk.com 试试
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,