From 1bfa675977f5674d0351ef3d05ffef8e8bf25521 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 11 Dec 2014 16:04:21 +0000 Subject: [PATCH 1/2] Added and --- index.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.php b/index.php index 4293219..ecf4032 100755 --- a/index.php +++ b/index.php @@ -13,6 +13,14 @@ $start_time = time(true); //the site's name $sitename = "Pepperminty Wiki"; +//the url from which to fetch updates. Defaults to the master (development) branch If there is sufficient demand, a separate stable branch will be created. +//currently not implemented (yet). +$updateurl = "https://raw.githubusercontent.com/sbrl/pepperminty-wiki/master/index.php"; + +//the secret key used to perform 'dangerous' actions, like updating the wiki, and deleting pages. It is strongly advised that you change this! +//note that neither of these features have been added yet. +$sitesecret = "ed420502615bac9037f8f12abd4c9f02"; + //whether people can edit the site $editing = true; From 950855ca298d036422d21c81e2beb6672a4bcc9b Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 11 Dec 2014 16:09:08 +0000 Subject: [PATCH 2/2] Added page deletion stub cases --- index.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.php b/index.php index ecf4032..0ba8461 100755 --- a/index.php +++ b/index.php @@ -554,6 +554,14 @@ switch($_GET["action"]) exit(renderpage("$title - $sitename", $content)); break; + case "delete": + exit(renderpage("Deleting $pagename - $sitename", "Coming soon...")); + break; + + case "dodelete": + exit("Coming soon..."); + break; + case "help": $title = "Help - $sitename"; $content = "

$sitename Help