模型关闭上传 前台发布一样可以上传BUG修改方法
/user/swfupload.asp 打开文件。在二处地方插入红色代码
第一处
AllowFileExtStr = KS.ReturnChannelAllowUpFilesType(ChannelID,1)
If KS.C_S(ChannelID,26)=0 then KS.Die "error:" & escape("对不起,此频道不允许上传!")
If KS.C("UserName")="" And KS.C("PassWord")="" Then
If KS.C_S(ChannelID,26)=2 Then
AllowNoUserUpload=1: MustCheckSpaceSize=false
FormPath =KS.Setting(3) & KS.Setting(91)&"Temp/" & Year(Now()) & Right("0" & Month(Now()), 2) & "/"
End If
Else
第二处
Case 1,3,4,7,9 '下载,影片等
MaxFileSize = KS.ReturnChannelAllowUpFilesSize(ChannelID) '设定文件上传最大字节数
If BasicType=4 Then
AllowFileExtStr = KS.ReturnChannelAllowUpFilesType(ChannelID,2)
ElseIf BasicType=7 Then '影片
if KS.C_S(ChannelID,16) = 0 then KS.Die "error:" & escape("对不起,此频道不允许上传!")
AllowFileExtStr = KS.ReturnChannelAllowUpFilesType(ChannelID,2) &"|" & KS.ReturnChannelAllowUpFilesType(ChannelID,3) & "|"& KS.ReturnChannelAllowUpFilesType(ChannelID,4)
Else
AllowFileExtStr = KS.ReturnChannelAllowUpFilesType(ChannelID,0)
End If