Foxtable(狐表)用户栏目专家坐堂 → [求助]


  共有1789人关注过本帖树形打印复制链接

主题:[求助]

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/11/8 15:19:00 [显示全部帖子]

参考红色代码

 

Dim fl As String = "d:\Web\" & e.path
Dim wb As New weui
If filesys.FileExists(fl)
    Dim idx As Integer = fl.LastIndexOf(".")
    Dim ext As String  = fl.SubString(idx)
    Select Case ext
        Case ".jpg",".gif",".png",".bmp",".wmf",".js",".css" ,".html",".htm",".zip",".rar",".mp4",".mp3",".txt"
            e.WriteFile(fl)
            Return '这里必须返回
    End Select
End If
 
Select Case e.Path
    Case "AllCurricularTaxonomy.htm",""
        Functions.Execute("AllCurricularTaxonomy",e)  
e.WriteString(wb.Build)
return
    Case "CurricularTaxonomy.htm"
        Functions.Execute("CurricularTaxonomy",e)  
e.WriteString(wb.Build)
return

End Select

 
'身份验证
Dim Verified As Boolean '用于标记用户是否通过了身份验证
Dim UserName As String = e.Cookies("username") '从cookie中获取用户名
Dim Password As String = e.Cookies("password") '从cookie中获取用户密码
If e.Path = "UserLogin.htm" '如果是通过登录页面访问,从PostValues即可中提取用户名和密码

 回到顶部