<%
include("language.html")

if _SESSION["username"] ~= nil and _SESSION["currentpath"] ~= nil then
	local dirlist = _POST["dirlist"] or _GET["dirlist"] or nil
	local filelist = _POST["filelist"] or _GET["filelist"] or nil
	local nowdir = _POST["nowpath"] or _GET["nowpath"] or string.gsub(_SESSION["currentpath"],":{{","%[")
	nowdir = string.gsub(nowdir,"}}:","%]")

	if dirlist ~= nil or filelist ~= nil then
		status = c_RemoveMultipleFile(_SESSION["username"],dirlist,filelist,nowdir,_SESSION_ID)
		print(RESULT_STR[tonumber(status)])
	else
		print(LANG["error_no_dirname"])
	end
else
	print("session expired")
end

%>