<% include("language.html") if _SESSION["username"] ~= nil and _SESSION["currentpath"] ~= nil then local newdir = _POST["dir"] or _GET["dir"] or nil if newdir ~= nil then local nowdir = _POST["nowpath"] or _GET["nowpath"] or string.gsub(_SESSION["currentpath"],":{{","%[") nowdir = string.gsub(nowdir,"}}:","%]") local status = c_MakeDirectory(_SESSION["username"],newdir,nowdir,_SESSION_ID) if status == 1 then c_AddWebLog("Directory '"..newdir.."' created",_SESSION_ID,DOMAIN_LOG_WEB_RESPOND) c_DoWebEvent(WEB_DIR_CREATE_EVENT,_SESSION_ID) end print(RESULT_STR[tonumber(status)]) else print(LANG["error_no_dirname"]) end else print("session expired") end %>