<!--#include file="base.asp"-->
<%
''' EYCMS 上传
''' ==================================================================

	islogin
	dim filetype:filetype=eycms.getint(eycms.fget("filetype",0),1)
	dim cateid:cateid=eycms.getint(eycms.fget("cateid",0),0)
	dim rootid,parents,iscut,cutsize
	iscut=0
	If CInt(cateid)>0 Then 
		parents=eycms.get_parentid(cateid)
		rootid=split(parents,"]")(0)
		rootid=replace(rootid,"[","")
		rootid=CInt(rootid)
		if eycms.get_modeid(rootid)=eycms.get_modeid(cateid) then
			iscut=eycms.get_iscut(rootid)
			cutsize=eycms.get_cutsize(rootid)
		else
			iscut=eycms.get_iscut(cateid)
			cutsize=eycms.get_cutsize(cateid)
		end if
	End If
	If cutsize="" Then cutsize="200*200"
	dim compress:compress=eycms.getint(eycms.fget("compress",0),1)
	dim limit:limit=eycms.getint(eycms.fget("limit",0),1)
	if limit>10 then limit=1
	dim up_max_width:up_max_width=1920
	dim up_max_height:up_max_height=1920
	dim uptype,cid,classid,url
	cid=eycms.getint(eycms.fget("cid",0),0)
	classid=eycms.getint(eycms.fget("classid",0),0)
	url=eycms.enhtml(eycms.fget("url",0))
	select case filetype
		case "2":uptype="doc|docx|xls|xlsx|ppt|pptx|rar|zip|7z|pdf|txt|apk"
		case "3":uptype="mp4|flv|swf"
		case "4":uptype="gif|jpg|png|doc|docx|xls|xlsx|ppt|pptx|rar|zip|7z|pdf|txt|flv|mp4|apk"
		case "5":uptype="swf"
		case else:uptype="gif|jpg|png"
	end select
	uptype=replace(uptype,"|",",")
	If iscut=0 then
		load theme_upload
	Else
		load theme_upload_cut
	End if
	eycms.db.dbclose
%>
