<%@ Language=VBscript %> <% if request.QueryString("action")="login" then if request.form("username")="admin" and request.form("password")="admin"then '在此修改用户名和密码 response.cookies("loginok")=true end if end if '******************************************* '过程作用:css 样式 '******************************************* Sub Css() %> <% End Sub response.expires=0 call Css() if request.cookies("loginok")="" then%> FSO在线编辑

 

 

管理登陆
用户名:
密  码:
<%else%> <% Response.Buffer=true On Error Resume Next Server.ScriptTimeOut = 1000 Response.Expires=0 Dim StartTime,IsReplace',ImageFolder IsReplace = true '是否过滤编辑时文件的标记,如不过滤遇到有
<% End If Set Fso = nothing End Sub '**************************************** '函数定义部分结束 '**************************************** %> <% Dim Fso,FsoFile,FileType,FileSize,FileTime,Path Dim Dir action=Trim(Request.QueryString("action")) Set Fso=Server.CreateObject("Scripting.FileSystemObject") IsErr If action = "Del" then Call DelAll ElseIf action = "NewFile" then Call NewFile ElseIf action = "NewFolder" then Call NewFolder ElseIf action = "Rname" then Call Rname ElseIf action = "Edit" then Call Edit ElseIf action = "Save" then Call Edit Else Dir=Trim(Request.QueryString("Dir")) Path = Server.MapPath(".") & Dir Set FsoFile = Fso.GetFolder(Server.MapPath(".")) FsoFileSize = FsoFile.size '空间大小统计 Set FsoFile = nothing Set FsoFile = Fso.GetFolder(Path) %> FSO在线编辑 <% Call Css %>
 
系统主目录:<%=Server.MapPath(".")%>   空间占用:<%=GetFileSize(FsoFileSize)%>
 >上  当前目录:<%=Server.MapPath(".") & Dir %>
     占用空间:<%=GetFileSize(FsoFile.size)%>  其中包含 <%=FsoFile.SubFolders.count%> 个文件夹; <%=FsoFile.Files.count%> 个文件
    新建文件夹:  
    新建文件:    
<% For Each DirFolder in FsoFile.SubFolders FolderName=DirFolder.name FolderSize=GetFileSize(DirFolder.size) FolderTime=DirFolder.DateLastModified %> <% Next %> <% For Each DirFiles in FsoFile.Files FileName=DirFiles.name FileType=GetFileIcon(FileName) FileSize=GetFileSize(DirFiles.size) FileTime=DirFiles.DateLastModified %> <% Next %>
   文件/文件夹名 类型 文件大小 最后修改时间
 \<%=FolderName%>><%=FolderName%> 文件夹 <%=FolderSize%> <%=FolderTime%>
  title="预览文件" target=_blank><%=FileName%> <%=FileType%>文件 <%=FileSize%> <%=FileTime%>
 
 
  程序制作:Lukin  程序运行时间:<%=FormatNumber((Timer()-StatrTime)*1000,3) %> 毫秒
 
<% End If Set FsoFile = nothing Set Fso = nothing %> <%end if%>