968f41ba51
It should now be theoretically possible to upload files through WebAdmin git-svn-id: http://mc-server.googlecode.com/svn/trunk@203 0a769ca7-a7f5-676a-18bf-c427514a06d6
15 lines
648 B
Lua
15 lines
648 B
Lua
function HandleRequest_Reload( Request )
|
|
local Content = ""
|
|
|
|
if( Request.PostParams["reload"] ~= nil ) then
|
|
Content = Content .. "<head><meta http-equiv=\"refresh\" content=\"2;././\"></head>"
|
|
Content = Content .. "<p>Reloading plugins... This can take a while depending on the plugins you're using.</p>"
|
|
cRoot:Get():GetPluginManager():ReloadPlugins()
|
|
else
|
|
Content = Content .. "<form method=POST>"
|
|
Content = Content .. "<p>Click the reload button to reload all plugins!<br>"
|
|
Content = Content .. "<input type=\"submit\" name=\"reload\" value=\"Reload!\"></p>"
|
|
Content = Content .. "</form>"
|
|
end
|
|
return Content
|
|
end |