1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 05:22:59 +00:00

Corrected build

This commit is contained in:
Starbeamrainbowlabs 2014-12-25 20:48:14 +00:00
parent e86358a85a
commit 3d054a965b

View file

@ -13,6 +13,14 @@ $start_time = time(true);
//the site's name //the site's name
$sitename = "Pepperminty Wiki"; $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 //whether people can edit the site
$editing = true; $editing = true;
@ -219,10 +227,16 @@ function renderpage($title, $content, $minimal = false)
<html><head> <html><head>
<meta charset='utf-8' /> <meta charset='utf-8' />
<title>$title</title> <title>$title</title>
<link rel='shortcut icon' href='$favicon' /> <link rel='shortcut icon' href='$favicon' />";
<style>$css</style> if(preg_match("/^[^\/]*\/\/|^\//", $cs))
</head><body> {
"; $html .= "\n\t\t<link rel='stylesheet' href='$css' />\n";
}
else
{
$html .= "\n\t\t<style>$css</style>\n";
}
$html .= "</head><body>\n";
////////// //////////
@ -546,6 +560,14 @@ switch($_GET["action"])
exit(renderpage("$title - $sitename", $content)); exit(renderpage("$title - $sitename", $content));
break; break;
case "delete":
exit(renderpage("Deleting $pagename - $sitename", "Coming soon..."));
break;
case "dodelete":
exit("Coming soon...");
break;
case "help": case "help":
$title = "Help - $sitename"; $title = "Help - $sitename";
$content = " <h1>$sitename Help</h1> $content = " <h1>$sitename Help</h1>