<% if _SESSION["username"] ~= nil and _SESSION["currentpath"] ~= nil then local filename = _GET["filename"] or _POST["filename"] or nil if filename ~= nil then local nowdir = string.gsub(_SESSION["currentpath"],":{{","%[") nowdir = string.gsub(nowdir,"}}:","%]") c_AddConnection(_SESSION["username"],nowdir,_REMOTE_IP,_SESSION_ID,"CREATE THUMB") c_AddWebLog("Start creating thumbnail '"..filename.."'",_SESSION_ID,DOMAIN_LOG_WEB_RESPOND) local result = c_MakeThumb(_SESSION["username"],filename,nowdir) print(result) else print("error") end end %>