savehelp.asp
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

DOS

  1. <!--#include file="conn.asp"-->
  2. <%
  3. dim cls
  4. if session("admin")="" then
  5. Response.Redirect("admin.asp")
  6. else
  7. if session("flag")<>"0" then
  8. cls = Instr(session("flag"), "othfig")
  9. if cls <= 0 then
  10. %>
  11. <script language="javascript">
  12. if (confirm("您的操作权限不够,系统拒绝你的访问,请点确定返回,或者点取消退出重新登录"))
  13.   location.href="login.asp";
  14. else
  15.   location.href="index.asp";
  16. </script>
  17. <%
  18. end if
  19. end if
  20. end if
  21. %>
  22. <%dim action,html
  23. html=request("html")
  24. action=request.QueryString("action")
  25. Content=Request.Form("Content")
  26. '将里面的链接换成本地链接
  27.  aa="http://"&Request.ServerVariables("server_name")&Request.ServerVariables("path_info")
  28.  'response.write aa&"<br>"
  29.  'bb=request.servervariables("http_referer")
  30.  'response.write aa&"<br>"
  31.  'response.write bb&"<br>"
  32.  'response.end
  33.  'aa= mid(aa,1,len(aa)-12)
  34.  aa= mid(aa,1,len(aa)-16) '16=admin/savexx.asp
  35.  'response.write aa&"<br>"
  36.  'response.write bb&"<br>"
  37.  'response.end
  38. content=replace(content,aa,"")
  39. conn.execute("update webinfo set "&action&"='"&content&"'")
  40. response.Write "<script language=javascript>alert('修改成功');window.location.href='tab.asp';</script>"
  41. response.End
  42. %>