summaryrefslogblamecommitdiffstats
path: root/Plugins/Core/web_reload.lua
blob: f78297fcbb2eac6a743a530c805fd3b4891d1f93 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                                                                
function HandleRequest_Reload( Request )
	local Content = ""
	
	if( Request.Params: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=GET>"
		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