<%
include("language.html")

if _SESSION["username"] ~= nil and _SESSION["currentpath"] ~= nil then

	local nowdir = _POST["nowpath"] or _GET["nowpath"] or string.gsub(_SESSION["currentpath"],":{{","%[")
	nowdir = string.gsub(nowdir,"}}:","%]")

	local result = c_CheckUploadFile(_SESSION["username"],nowdir)
	if result == false then
		print(LANG["no_upload_permission"])
	else
		print("")
	end
else
	print("session expired")
end
%>