找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 112|回复: 3

如何修改后台中上传文件大小

[复制链接]
发表于 2009-9-15 02:26:19 | 显示全部楼层 |阅读模式 IP:江苏扬州
我的网站是租用的服务器,后台里没设置上传文件大小那一项,但每次上传大过1M的文件时都提示有限制不能上传,我刚学做网页不知道怎么改,请教高手们,有人说在UPLOAD.ASP里改,所以把代码发出来:

<%

session("admin__user")=Request.Cookies("adminuser")
session("admin__pass")=Request.Cookies("adminpass")
session("dJ")=Request.Cookies("admindj")

adminuser=Request.Cookies("adminuser")
adminpass=Request.Cookies("adminpass")
admindj=Request.Cookies("admindj")

if adminuser="" or adminpass="" then
  Response.Redirect "szwyadmin/login.asp?id=8"
end if
%>
<%
sss=LCase(request.servervariables("QUERY_STRING"))
   if instr(sss,"select")<>0 or instr(sss,"inster")<>0 or instr(sss,"delete")<>0 or instr(sss,"(")<>0 or instr(sss,"'or")<>0 then
     response.write "<BR><BR><center>你的网址不合法"
     response.end
   end if

xuasmdb="data/#fdaeg35@#gds.asp"

set conn=server.CreateObject("adodb.connection")
DBPath = Server.MapPath(xuasmdb)
conn.open "provider=microsoft.jet.oledb.4.0; data source="&DBpath



ON ERROR RESUME NEXT

userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR")

set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open "select zuziip from [config] where zuziip like '%"&zuziip&"%'",conn,1,1
if rs.recordcount<>0 then
    zuziip=rs("zuziip")&chr(13)
    zuziip=replace(zuziip," ","")
    zuziip=replace(zuziip,chr(10),"")
    'zuziip=replace(zuziip,".","")
    'userip2=replace(userip,".","")
    zzip=split(zuziip,chr(13))
    'Response.Write "ubound(zzip):"&ubound(zzip)&"<BR>"
    'Response.Write "zzip(0):"&zzip(0)&"<BR>"
    'Response.Write "zzip(1):"&trim(zzip(1))&"<BR>"
    for i=0 to ubound(zzip)
        if userip=trim(zzip(i)) then
            er=1
            'Response.Write userip&" "&zzip(i)&"<BR>"
        end if
    next

    if er=1 then
        Response.Write "<BR><BR><BR><BR><Center><font style='font-size:10.5pt'>你所在IP被系统阻止!("&userip&")</font><BR><BR></center>"
        conn.close:set conn=nothing
        Response.end
    end if
end if

%>
<%


user=trim(session("admin__user"))
pass=session("admin__pass")

sql = "select * from admin where [user]='"&adminuser&"' and [pass]='"&adminpass&"'"
Set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open sql,conn,1,1
if rs.recordcount=0 then
  Response.Redirect "login.asp?id=8"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>上传图片</title>
<style type="text/css">
<!--
a {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: #000000; text-decoration: none}
a:hover {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: #000000; text-decoration: underline}
td {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: #000000}
br {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: #000000}
.bk { font-size: 9pt; border: 1px #082D71 solid}
body {  font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none}
.an {  font-family: "宋体"; font-size: 9pt; background-color: #F6f6f6; border: 1px #082D71 solid; color: #000000}
.xzy {  border: #082D71 solid; border-width: 0px 1px 1px}
.zx {  border: #082D71 solid; border-width: 0px 0px 1px 1px}
.sxz {  border: #082D71 solid; border-width: 1px 0px 1px 1px}
.s {  border: #082D71; border-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px}
.y {  border: #082D71; border-style: solid; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; border-left-width: 0px}
.font {  font-family: "Arial Black"; font-size: 14pt; color: #000000}
.x {  border: #082D71; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
.z {  border: #082D71; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 1px}
.sx {  border: #082D71; border-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
-->
</style>
</head>

<body bgcolor="#F6f6f6" leftmargin="0" topmargin="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="saveupload.asp" enctype="multipart/form-data">
  <tr>
      <td align="center">
<input type="file" name="file1" size=10 class="an">
<input type="submit" name="Submit" value="上传" class="an">
    </td>
  </tr>
  </form>
</table>

</body>
</html>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-29 23:30 , Processed in 0.260559 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表