function Initialize(a_Plugin) a_Plugin:SetName("DumpInfo") a_Plugin:SetVersion(1) -- Check if the infodump file exists. if (not cFile:Exists("Plugins/InfoDump.lua")) then LOGWARN("[DumpInfo] InfoDump.lua was not found.") return false end -- Add the webtab. a_Plugin:AddWebTab("DumpPlugin", HandleDumpPluginRequest) return true end function HandleDumpPluginRequest(a_Request) local Content = "" -- Check if it already was requested to dump a plugin. if (a_Request.PostParams["DumpInfo"] ~= nil) then local F = loadfile("Plugins/InfoDump.lua") F("Plugins/" .. a_Request.PostParams["DumpInfo"]) end Content = Content .. [[
DumpInfo | |
---|---|
" .. a_Plugin:GetName() .. " | \n" Content = Content .. "\t\n" Content = Content .. " |