首 页WAP教程WAP源码WAP电子书客户留言龙腾电脑维修网158网络电视本站论坛繁體中文
设为首页
加入收藏
联系我们
您当前的位置:WAP开发网 -> WAP教程 -> ASP WAP开发教程 -> 文章内容 退出登录 用户管理
栏目导航
· ASP WAP开发教程 · ASP.net WAP开发教程
· PHP WAP开发教程 · WML教程
· JSP开发WAP教程 · WAP 2.0
· 综合杂谈
热门文章
· WAP 2.0教程
· WML语言基础(WAP建站...
· 用VS2005实现ASP.NE...
· [组图] php WAp开发教程
· WML语言基础(WAP建站...
· VS.NET 2003开发移动...
· [图文] ASP技术进行动态WAP...
· [图文] WML语言基础(WAP建站...
· asp.net移动控件开发...
· [图文] 创建移动Web应用程序...
相关文章
· [图文] ASP.NET移动开发之S...
· ASP.NET 2.0移动开发...
· [图文] ASP技术进行动态WAP...
· ASP.NET 移动 Web 窗...
· asp.net移动控件开发...
· ASP.NET 2.0移动开发...
· Wap页面使用asp.net...
· ASP.NET 2.0移动开发...
· ASP.NET 2.0移动开发...
· asp WAP获取手机终端...
WAP中利用截取手机号码达到自动登入的一段源码
作者:未知  来源:转载  发布时间:2006-1-18 12:50:12  发布人:admin

减小字体 增大字体


有做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
%>
[] [返回上一页] [打 印] [收 藏]
下一篇文章:WAP 2.0教程
∷相关文章评论∷    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 管理登录
Copyright © 2002-2005 wapkf.com. All Rights Reserved .
浙ICP备06013604号|站长QQ:274273595