upload.asp
上传用户:rblchem
上传日期:2022-04-27
资源大小:1941k
文件大小:1k
源码类别:

编辑器/阅读器

开发平台:

C#

  1. <!-- #include file="../INCLUDE/head.asp" -->
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta http-equiv="Content-Language" content="zh-CN" />
  7. </head>
  8. <!--#include FILE="UpLoadClass.asp"-->
  9. <%
  10. Public DBcate
  11. DBcate="admin"
  12. %>
  13. <!-- #include file="../INCLUDE/conn.asp" -->
  14. <%
  15. Call CheckRights()
  16. dim request2
  17. set request2=New UpLoadClass
  18. request2.TotalSize= 20971520
  19. request2.MaxSize  = 262144
  20. 'request2.FileType = "rar/zip"
  21. request2.open()
  22. %>
  23. <%
  24. if request2.Error=4 then
  25. response.Write("<p>too big (>250KB) failed</p>")
  26. end if
  27. if request2.form("checkbox")="1" then
  28. session(SessionStr&"fugai")=1
  29. else
  30. session(SessionStr&"fugai")=0
  31. end if
  32. response.write session(SessionStr&"fugai")
  33. if trim(request2.Form("strFile1"))<>"" then
  34. session(SessionStr&"up_sxna")=request2.Form("strFile1")
  35.     response.redirect "import_output.asp?action=importfromlocal"
  36. else
  37.    if trim(request2.Form("OPMLnet"))<>"" then
  38.        session(SessionStr&"up_sxna")=request2.Form("OPMLnet")
  39.    response.redirect "import_output.asp?action=importfromnet"
  40.    else
  41.    response.write  "wrong"
  42.    end if
  43. end iF
  44. response.write session(SessionStr&"up_sxna")
  45.     %>
  46. <%
  47. set request2=nothing
  48. %>