blob: 45ed1a40b4e38bfe23f0fc28f50bfe2b0bfad642 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
function HandleRequest_Reload( Request )
local Content = ""
if( Request.PostParams:get("reload") ~= "" ) 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
|