"description"=>"Adds an update page that downloads the latest stable version of Pepperminty Wiki. This module is currently outdated as it doesn't save your module preferences.",
"id"=>"page-update",
"code"=>function(){
add_action("update",function(){
global$settings,$isadmin;
if(!$isadmin)
{
http_response_code(401);
exit(page_renderer::render_main("Update - Error","<p>You must be an administrator to do that.</p>"));
}
if(!isset($_GET["do"])or$_GET["do"]!=="true")
{
exit(page_renderer::render_main("Update $settings->sitename","<p>This page allows you to update $settings->sitename.</p>
exit(page_renderer::render_main("Update $settings->sitename - Error","<p>You forgot to enter $settings->sitename's secret code or entered it incorrectly. $settings->sitename's secret can be found in the settings portion of <code>index.php</code>.</p>"));
}
$settings_separator="/////////////// Do not edit below this line unless you know what you are doing! ///////////////";