2012-01-27 23:47:32 +00:00
|
|
|
function HandleRequest_Reload( Request )
|
|
|
|
|
local Content = ""
|
|
|
|
|
|
2012-01-31 00:38:18 +00:00
|
|
|
if( Request.PostParams:get("reload") ~= "" ) then
|
2012-01-27 23:47:32 +00:00
|
|
|
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
|
2012-01-31 00:38:18 +00:00
|
|
|
Content = Content .. "<form method=POST>"
|
2012-01-27 23:47:32 +00:00
|
|
|
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
|