diff --git a/core.php b/core.php
index 55bbcd1..b429da5 100644
--- a/core.php
+++ b/core.php
@@ -5,7 +5,7 @@ $start_time = time(true);
* ================
* Inspired by Minty Wiki by am2064:
* Link: https://github.com/am2064/Minty-Wiki
- *
+ *
* Credits:
* Slimdown - by Johnny Broadway from https://gist.github.com/jbroadway/2836900
*/
@@ -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;
@@ -151,14 +159,14 @@ else
}
/*
* @summary makes a path safe
- *
+ *
* @details paths may only contain alphanumeric characters, spaces, underscores, and dashes
*/
function makepathsafe($string) { return preg_replace("/[^0-9a-zA-Z\_\-\ ]/i", "", $string); }
/*
* @summary Hides an email address from bots by adding random html entities.
- *
+ *
* @returns The mangled email address.
*/
function hide_email($str)
@@ -176,7 +184,7 @@ function hide_email($str)
else
$hidden_email .= "" . ord($str[$i]) . ";";
}
-
+
return $hidden_email;
}
@@ -214,18 +222,24 @@ if(makepathsafe($_GET["page"]) !== $_GET["page"])
function renderpage($title, $content, $minimal = false)
{
global $sitename, $css, $favicon, $user, $isloggedin, $navlinks, $admindetails, $start_time, $pageindex;
-
+
$html = "