<% auto = request.cookies("auto") username = request.cookies("username") password = request.cookies("user_pass") if auto="1" then sql="select * from photo_user Where user_name='"&username&"'" set rs=conn.execute(sql) if rs.eof then err_ "您的用户名有误!" else if rs("user_pass") = password then Session("logininfo") = true Session("userid") = rs("id") Session("username") = rs("user_name") Session("userweb") = rs("user_web") Session("usermail") = rs("user_mail") response.cookie("username")=rs("user_name") response.cookie("user_pass")=password response.cookie("auto")=auto response.Write "" End if rs.close set rs=nothing end if conn_ else action = trim(request.Form("action")) auto = trim(request.Form("auto")) rs=server.CreateObject("ADODB.RecordSet") if action="login" then username = chkstr(request.Form("username")) password = chkstr(request.Form("password")) getS = chkstr(request.Form("getS")) if username="" or password="" then err_"请确认完整的登录信息" response.Write "" conn_ response.End() end if if getS="" or getS="false" then err_"请拖动滑动条验证" response.Write "" conn_ response.End() end if sql="select * from photo_user Where user_name='"& username &"'" set rs=conn.execute(sql) if rs.eof then err_ "您的用户名有误!" else if rs("user_pass") = password then Session("logininfo") = true Session("userid") = rs("id") Session("username") = rs("user_name") Session("userweb") = rs("user_web") Session("usermail") = rs("user_mail") response.cookies("username")=rs("user_name") response.cookies("user_pass")=password response.cookies("auto")=auto response.Write "" Else err_ "您的密码有误" End if end if rs.close set rs=nothing end if conn_ end if %> 安福家园
加入相册联系QQ:956588114
天书云网络科技工作室
备案/许可证号 粤ICP备19139543号-1