<% -- Plugin Name: Jupload -- Description: This plugin uses jupload applet for uploading entire folder or files. -- Author: wftpserver (http://www.wftpserver.com) -- Version: 1.3 local tab = {} tab.plugin_enabled = true local buttonname = LANG["str_app_batchupload"] or "Batch Uploader" tab.extbutton_name = buttonname tab.extbutton_func = "show_jupload()" tab.extbutton_icon = "plugins/jupload/icon.gif" tab.need_selectfile = false tab.exthtml = [[ ]] tab.extjs = [[ function show_jupload() { $("juploadDiv_mask").style.display = ""; $("juploadDiv").style.display = ""; var templeft = (getBrowerWidth()-500)/2; if(templeft < 0) templeft = 0; $("juploadDiv").style.left = templeft +"px"; var temptop = (getBrowerHeight()-300)/2 - 30; if(temptop < 0) temptop = 0; $("juploadDiv").style.top = temptop +"px"; if(isIE) { $("juploadApplet").innerHTML = ""; } else { $("juploadApplet").innerHTML = "" } } function hide_jupload() { $("juploadDiv_mask").style.display = "none"; $("juploadDiv").style.display = "none"; ajaxRequest("dir","r="+Math.random()); } ]] register_plugin(tab) %>