%
include("language.html")
%>
<%
if _SESSION["username"] ~= nil and _SESSION["currentpath"] ~= nil then
local plugin_dir = c_GetAppPath().."/webclient/plugins"
for isdir,plugin in c_GetFileDir(plugin_dir) do
if isdir == true and c_FileExist(plugin_dir.."/"..plugin.."/setting.html") then
include("plugins/"..plugin.."/setting.html")
end
end
local enable_changepass, changepass_firstlogon = c_CanChangePass(_SESSION["username"])
local enable_sendmessage = c_CanSendMessage()
local enable_online_edit = c_CanOnlineEdit()
local weblink_url = c_GetWeblinkURL()
local http_keepalive = c_HttpKeepAlive()
local cellwidth = {"500", "120", "150", "180"}
for i=1,4 do
local index = i - 1
if _COOKIE["cellwidth"..index] ~= nil and tonumber(_COOKIE["cellwidth"..index]) ~= "" then
cellwidth[i] = tonumber(_COOKIE["cellwidth"..index])
if cellwidth[i] < 80 then
cellwidth[i] = 80
end
if cellwidth[i] > 1920 then
cellwidth[i] = 1920
end
end
end
%>
Wing FTP Server - Web Client
<%
local nType = c_GetLicenseInfo()
if nType >= 5 then
print("(UNREGISTERED)")
end
%>
<%
for _,val in pairs(_SERVER) do
if (val.need_selectfile ~= nil and val.need_selectfile == true and val.extbutton_name ~= nil and val.extbutton_func ~= nil) or (val.singlefile ~= nil and val.singlefile == true) then
local icon_path = "images/extbutton.gif"
if val.extbutton_icon ~= nil then
icon_path = val.extbutton_icon
end
print("
"..val.extbutton_name.."
")
end
end
%>
<%=LANG["item_upload"]%>
<%=LANG["item_mkdir"]%>
<%=LANG["item_newtxt"]%>
<%=LANG["item_goto"]%>
<%=LANG["item_paste"]%>
<%
for _,val in pairs(_SERVER) do
if val.need_selectfile ~= nil and val.need_selectfile == false and val.extbutton_name ~= nil and val.extbutton_func ~= nil then
local icon_path = "images/extbutton.gif"
if val.extbutton_icon ~= nil then
icon_path = val.extbutton_icon
end
print("
"..val.extbutton_name.."
")
end
end
%>
<%=LANG["item_cut"]%>
<%=LANG["item_copy"]%>
<%=LANG["item_paste"]%>
<%=LANG["item_goto"]%>
<%=LANG["item_rename"]%>
<%=LANG["item_geturl"]%>
<%=LANG["uploadlink_title"]%>
<%=LANG["item_edit"]%>
<%=LANG["item_newtxt"]%>
<%=LANG["item_zip"]%>
<%=LANG["item_unzip"]%>
"> <%=LANG["add_bookmark"]%>
"> <%=LANG["del_bookmark"]%>
<%
for _,val in pairs(_SERVER) do
if val.extbutton_name ~= nil and val.extbutton_func ~= nil then
local icon_path = "images/extbutton.gif"
if val.extbutton_icon ~= nil then
icon_path = val.extbutton_icon
end
print("
"..val.extbutton_name.."
")
end
end
%>
<%
for _,val in pairs(_SERVER) do
if val.exthtml ~= nil then
print(val.exthtml)
end
end
%>