exit(page_renderer::render_main($title,"<p>Page protection for $env->page has been $state.</p><p><a href='?action=$env->defaultaction&page=$env->page'>Go back</a>."));
@ -1208,18 +1216,18 @@ register_module([
register_module([
"name"=>"Raw page source",
"version"=>"0.3",
"version"=>"0.4",
"author"=>"Starbeamrainbowlabs",
"description"=>"Adds a 'raw' action that shows you the raw source of a page.",
"description"=>"Adds proper search functionality to Pepperminty Wiki. Note that this module, at the moment, just contains test code while I figure out how best to write a search engine.",
exit(page_renderer::render("Upload Error - $settings->sitename","<p>The file you uploaded was valid, but $settings->sitename couldn't verify that it was tampered with during the upload process. This probably means that $settings->sitename has been attacked. Please contact ".$settings->admindetails.", your $settings->sitename Administrator.</p>"));
unset($pageindex->$page);//delete the page from the page index
file_put_contents("./pageindex.json",json_encode($pageindex,JSON_PRETTY_PRINT));//save the new page index
unlink("./$env->page.md");//delete the page from the disk
file_put_contents($paths->pageindex,json_encode($pageindex,JSON_PRETTY_PRINT));//save the new page index
unlink("$env->storage_prefix$env->page.md");//delete the page from the disk
exit(page_renderer::render_main("Deleting $env->page - $settings->sitename","<p>$env->page has been deleted. <a href='index.php'>Go back to the main page</a>.</p>"));
});
@ -2286,7 +2311,7 @@ register_module([
register_module([
"name"=>"Page editor",
"version"=>"0.11",
"version"=>"0.12",
"author"=>"Starbeamrainbowlabs",
"description"=>"Allows you to edit pages by adding the edit and save actions. You should probably include this one.",
"description"=>"Adds a page that you can use to export your wiki as a .zip file. Uses \$settings->export_only_allow_admins, which controls whether only admins are allowed to export the wiki.",
exit(page_renderer::render_main("Moving $env->page","<p><a href='index.php?page=$env->page'>$env->page</a> has been moved to <a href='index.php?page=$new_name'>$new_name</a> successfully.</p>"));
"description":"Exposes Pepperminty Wiki's new page protection mechanism and makes the protect button in the 'More...' menu on the top bar work.",
"id":"action-protect",
"lastupdate":1445170746,
"lastupdate":1446975126,
"optional":false
},
{
"name":"Raw page source",
"version":"0.3",
"version":"0.4",
"author":"Starbeamrainbowlabs",
"description":"Adds a 'raw' action that shows you the raw source of a page.",
"id":"action-raw",
"lastupdate":1445170746,
"lastupdate":1446975142,
"optional":false
},
{
@ -46,20 +46,20 @@
},
{
"name":"Search",
"version":"0.1",
"version":"0.2",
"author":"Starbeamrainbowlabs",
"description":"Adds proper search functionality to Pepperminty Wiki. Note that this module, at the moment, just contains test code while I figure out how best to write a search engine.",
"id":"feature-search",
"lastupdate":1446717614,
"lastupdate":1446975588,
"optional":false
},
{
"name":"Uploader",
"version":"0.1",
"version":"0.2",
"author":"Starbeamrainbowlabs",
"description":"Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File:' prefix.",
"id":"feature-upload",
"lastupdate":1445716955,
"lastupdate":1447002760,
"optional":false
},
{
@ -73,29 +73,29 @@
},
{
"name":"Page deleter",
"version":"0.7",
"version":"0.8",
"author":"Starbeamrainbowlabs",
"description":"Adds an action to allow administrators to delete pages.",
"id":"page-delete",
"lastupdate":1445771075,
"lastupdate":1447002847,
"optional":false
},
{
"name":"Page editor",
"version":"0.11",
"version":"0.12",
"author":"Starbeamrainbowlabs",
"description":"Allows you to edit pages by adding the edit and save actions. You should probably include this one.",
"id":"page-edit",
"lastupdate":1446388267,
"lastupdate":1447002999,
"optional":false
},
{
"name":"Export",
"version":"0.2",
"version":"0.3",
"author":"Starbeamrainbowlabs",
"description":"Adds a page that you can use to export your wiki as a .zip file. Uses $settings->export_only_allow_admins, which controls whether only admins are allowed to export the wiki.",
"id":"page-export",
"lastupdate":1445170746,
"lastupdate":1447003197,
"optional":false
},
{
@ -140,7 +140,7 @@
"author":"Starbeamrainbowlabs",
"description":"Adds an action to allow administrators to move pages.",
"id":"page-move",
"lastupdate":1445771483,
"lastupdate":1447017276,
"optional":false
},
{
@ -158,7 +158,7 @@
"author":"Starbeamrainbowlabs",
"description":"Allows you to view pages. You reallyshould include this one.",