mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Make page redirect headers mroe verbose
This commit is contained in:
parent
9519eb258a
commit
b1b763baf9
1 changed files with 3 additions and 2 deletions
|
@ -200,7 +200,8 @@ if(makepathsafe($_GET["page"]) !== $_GET["page"])
|
|||
{
|
||||
http_response_code(301);
|
||||
header("location: index.php?action=" . rawurlencode($_GET["action"]) . "&page=" . makepathsafe($_GET["page"]));
|
||||
header("x-page: " . makepathsafe($_GET["page"]) . " / " . $_GET["page"]);
|
||||
header("x-requested-page: " . $_GET["page"]);
|
||||
header("x-actual-page: " . makepathsafe($_GET["page"]));
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@ -615,7 +616,7 @@ switch($_GET["action"])
|
|||
case "credits":
|
||||
$title = "Credits - $sitename";
|
||||
$content = "<h1>$sitename credits</h1>
|
||||
<p>$sitename is powered by Pepperminty Wiki - An entire wiki packed inside a single file, which was built by <a href='//starbeamrainboowlabs.com'>Starbeamrainbowlabs</a>, and can be found <a href='//github.com/sbrl/Pepperminty-Wiki/'>on github</a>.</p>
|
||||
<p>$sitename is powered by Pepperminty Wiki - an entire wiki packed inside a single file, which was built by <a href='//starbeamrainboowlabs.com'>Starbeamrainbowlabs</a>, and can be found <a href='//github.com/sbrl/Pepperminty-Wiki/'>on github</a>.</p>
|
||||
<p>A slightly modified version of slimdown is used to parse text source into HTML. Slimdown is by <a href='https://github.com/jbroadway'>Johnny Broadway</a>, which can be found <a href='https://gist.github.com/jbroadway/2836900'>on github</a>.</p>
|
||||
<p>The default favicon is from <a href='//openclipart.org'>Open Clipart</a> by bluefrog23, and can be found <a href='https://openclipart.org/detail/19571/peppermint-candy-by-bluefrog23'>here</a>.</p>";
|
||||
exit(renderpage($title, $content));
|
||||
|
|
Loading…
Reference in a new issue