⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fsoupload.asp

📁 九酷网络个人主页系统破解版
💻 ASP
字号:
<!--#include file="../conn.asp"-->
<!--#include file="../chkuser.asp"-->
<!--#include file="../inc/user.asp"-->
<!--#include file="inc/randomString.asp" -->
<%
Response.Buffer = True 
Response.ExpiresAbsolute = Now() - 1 
Response.Expires = 0 
Response.CacheControl = "no-cache" 
ProgressID = gen_key(10)
username=Request.Cookies("9cool_username")
path=request("path")
if rshost("ifupload")=false then
ErrMsg("系统已经暂停此类型空间用户上传功能!")
end if
If path = "" or Instr(path,"..")>0 then
ErrMsg("处理URL时出错,请与系统管理员联系!")
End if
checkpath="/"&Request.Cookies("9cool_username")
if lcase(checkpath)<>lcase(left(path,len("/"&Request.Cookies("9cool_username")))) then
ErrMsg("处理URL时出错,请与系统管理员联系!")
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>上传</title>
<link href="../css/upload.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function check(){
 i=1;
 issel=0;
 obj=document.form1;
 while(eval('obj.file'+i))
 {
  obj1=eval('obj.file'+i);
  if(obj1.value!="")
   {issel=1;break;}
  i++;
 }
 if(!issel)
 {alert('请先选择要上传的文件。');
 obj.file1.focus();
 return false;}
Loading=true;
document.form1.button.value='正在上传文件...'
document.form1.button.disabled=true;
myOpen(form1);
return true;
}
function stopup(){
	window.opener.focus();
	window.close();
}
function window::onbeforeunload(){
if (Loading)
	if (event.clientY<0 && event.clientX>document.body.clientWidth-20
		|| event.clientY<0 && event.clientX<20
		|| event.altKey 
		|| event.clientY>document.body.clientHeight)
			event.returnValue="正在上传文件,如果强行退出,将终止文件上传!";
}
  function   document.onkeydown(){   
  if(event.keyCode==122||event.keyCode==112){   
  window.opener=null   
  window.close();   
  }   
  } 
</script>
</head>
<body oncontextmenu="return false";return true" onkeydown=return(!(event.ctrlKey||event.shiftKey||event.keyCode==122))>
<div id="Context">
  <div id="Content">
    <li>上传到:<%=path%><br />
    </li>
</div>
	<form action="uploadsave.asp" enctype="multipart/form-data" name="form1" method="post" onSubmit="return check()">
	<input name="filepath" type="hidden" value="<%=path%>">
      <table width="100%" border="0" cellpadding="4" cellspacing="1" style=position:relative>
        <tr>
          <th width="180">文件列表</th>
          <th>选择文件</th>
        </tr>
<%for i=1 to rshost("filecount")%>        
        <tr>
          <td width="180" valign="top" bgcolor="#FFFFFF" style="font-family:Arial;font-weight: bold"><%=i%></td>
          <td bgcolor="#FFFFFF" id="objFiles"><input name="file<%=i%>" type="file" id="file<%=i%>"></td>
        </tr>
		<%next%>
        <tr>
          <td colspan="2" align="center" bgcolor="#FFFFFF"><input name="button" type="submit" id="button" value=" 提 交 " />
            <input name="reset" type="reset" id="reset" value=" 重 置 " />
            <input type="button" onClick="window.close();" value=" 关 闭 "></td>
        </tr>
      </table>
	</form>
<div id="Content">
    <li>禁用的文件类型:<%=filetype%><br />
    </li>
    <li>单个文件限制大小:≤<%=uploadsize%>K<br />
    </li>
</div>
  <div id="Copyright">  Powered by <a href="http://www.9cool.net" target="_blank">9cool.net</a></div>
</div>
<script language="javascript">
function myOpen(form){
	window.open("inc/fileUpProgress.asp?progressID=<%=ProgressID%>","","width=370,height=115,toolbar=no");
	var url=form.action;
	if (url.indexOf("?",0)==-1) {
		form.action = url+"?progressID=<%=ProgressID%>";
	}else{	
		form.action = url+"&progressID=<%=ProgressID%>";
	}
}
</script>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -