From 76f241621a4d6ebd69a8d9bf69e7a16c46b5e2f6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 27 Dec 2014 08:47:43 +0000 Subject: [PATCH] added ascii art to make file navigation easier --- core.php | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- index.php | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 176 insertions(+), 8 deletions(-) diff --git a/core.php b/core.php index 5f69ab2..9412e1c 100644 --- a/core.php +++ b/core.php @@ -366,6 +366,14 @@ function human_time_since($time) switch($_GET["action"]) { + /* + * _ _ _ + * ___ __| (_) |_ + * / _ \/ _` | | __| + * | __/ (_| | | |_ + * \___|\__,_|_|\__| + * %edit% + */ case "edit": if(!$editing) { @@ -416,6 +424,14 @@ switch($_GET["action"]) exit(renderpage("$title - $sitename", $content)); break; + /* + * + * ___ __ ___ _____ + * / __|/ _` \ \ / / _ \ + * \__ \ (_| |\ V / __/ + * |___/\__,_| \_/ \___| + * %save% + */ case "save": if(!$editing) { @@ -467,6 +483,14 @@ switch($_GET["action"]) } break; + /* + * _ _ _ + * | (_)___| |_ + * | | / __| __| + * | | \__ \ |_ + * |_|_|___/\__| + * %list% + */ case "list": $title = "All Pages"; $content = "

$title on $sitename

@@ -492,14 +516,26 @@ switch($_GET["action"]) exit(renderpage("$title - $sitename", $content)); break; + /* + * _ _ _ + * __| | ___| | ___| |_ ___ + * / _` |/ _ \ |/ _ \ __/ _ \ + * | (_| | __/ | __/ || __/ + * \__,_|\___|_|\___|\__\___| + * %delete% + */ case "delete": exit(renderpage("Deleting $pagename - $sitename", "Coming soon...")); break; - case "dodelete": - exit("Coming soon..."); - break; - + /* + * _ _ + * | |__ ___| |_ __ + * | '_ \ / _ \ | '_ \ + * | | | | __/ | |_) | + * |_| |_|\___|_| .__/ + * %help% |_| + */ case "help": $title = "Help - $sitename"; $content = "

$sitename Help

@@ -528,6 +564,14 @@ switch($_GET["action"]) exit(renderpage($title, $content)); break; + /* + * _ _ + * | | ___ __ _(_)_ __ + * | |/ _ \ / _` | | '_ \ + * | | (_) | (_| | | | | | + * |_|\___/ \__, |_|_| |_| + * |___/ %login% + */ case "login": $title = "Login to $sitename"; $content = "

Login to $sitename

\n"; @@ -543,6 +587,14 @@ switch($_GET["action"]) exit(renderpage($title, $content)); break; + /* + * _ _ _ _ + * ___| |__ ___ ___| | _| | ___ __ _(_)_ __ + * / __| '_ \ / _ \/ __| |/ / |/ _ \ / _` | | '_ \ + * | (__| | | | __/ (__| <| | (_) | (_| | | | | | + * \___|_| |_|\___|\___|_|\_\_|\___/ \__, |_|_| |_| + * %checklogin% |___/ + */ case "checklogin": if(isset($_POST["user"]) and isset($_POST["pass"])) { @@ -578,6 +630,14 @@ switch($_GET["action"]) } break; + /* + * _ _ + * | | ___ __ _ ___ _ _| |_ + * | |/ _ \ / _` |/ _ \| | | | __| + * | | (_) | (_| | (_) | |_| | |_ + * |_|\___/ \__, |\___/ \__,_|\__| + * |___/ %logout% + */ case "logout": $isloggedin = false; unset($user); @@ -588,6 +648,14 @@ switch($_GET["action"])

Logout Successful. You can login again here.

")); break; + /* + * _ _ _ + * ___ _ __ ___ __| (_) |_ ___ + * / __| '__/ _ \/ _` | | __/ __| + * | (__| | | __/ (_| | | |_\__ \ + * \___|_| \___|\__,_|_|\__|___/ + * %credits% + */ case "credits": $title = "Credits - $sitename"; $content = "

$sitename credits

@@ -597,6 +665,14 @@ switch($_GET["action"]) exit(renderpage($title, $content)); break; + /* + * _ _ + * | |__ __ _ ___| |__ + * | '_ \ / _` / __| '_ \ + * | | | | (_| \__ \ | | | + * |_| |_|\__,_|___/_| |_| + * %hash% + */ case "hash": if(!isset($_GET["string"])) { @@ -610,6 +686,14 @@ switch($_GET["action"]) } break; + /* + * _ + * __ _(_) _____ __ + * \ \ / / |/ _ \ \ /\ / / + * \ V /| | __/\ V V / + * \_/ |_|\___| \_/\_/ + * %view% + */ case "view": default: //check to make sure that the page exists diff --git a/index.php b/index.php index a305f3e..d99c751 100755 --- a/index.php +++ b/index.php @@ -476,6 +476,14 @@ function human_time_since($time) switch($_GET["action"]) { + /* + * _ _ _ + * ___ __| (_) |_ + * / _ \/ _` | | __| + * | __/ (_| | | |_ + * \___|\__,_|_|\__| + * %edit% + */ case "edit": if(!$editing) { @@ -526,6 +534,14 @@ switch($_GET["action"]) exit(renderpage("$title - $sitename", $content)); break; + /* + * + * ___ __ ___ _____ + * / __|/ _` \ \ / / _ \ + * \__ \ (_| |\ V / __/ + * |___/\__,_| \_/ \___| + * %save% + */ case "save": if(!$editing) { @@ -577,6 +593,14 @@ switch($_GET["action"]) } break; + /* + * _ _ _ + * | (_)___| |_ + * | | / __| __| + * | | \__ \ |_ + * |_|_|___/\__| + * %list% + */ case "list": $title = "All Pages"; $content = "

$title on $sitename

@@ -602,14 +626,26 @@ switch($_GET["action"]) exit(renderpage("$title - $sitename", $content)); break; + /* + * _ _ _ + * __| | ___| | ___| |_ ___ + * / _` |/ _ \ |/ _ \ __/ _ \ + * | (_| | __/ | __/ || __/ + * \__,_|\___|_|\___|\__\___| + * %delete% + */ case "delete": exit(renderpage("Deleting $pagename - $sitename", "Coming soon...")); break; - case "dodelete": - exit("Coming soon..."); - break; - + /* + * _ _ + * | |__ ___| |_ __ + * | '_ \ / _ \ | '_ \ + * | | | | __/ | |_) | + * |_| |_|\___|_| .__/ + * %help% |_| + */ case "help": $title = "Help - $sitename"; $content = "

$sitename Help

@@ -638,6 +674,14 @@ switch($_GET["action"]) exit(renderpage($title, $content)); break; + /* + * _ _ + * | | ___ __ _(_)_ __ + * | |/ _ \ / _` | | '_ \ + * | | (_) | (_| | | | | | + * |_|\___/ \__, |_|_| |_| + * |___/ %login% + */ case "login": $title = "Login to $sitename"; $content = "

Login to $sitename

\n"; @@ -653,6 +697,14 @@ switch($_GET["action"]) exit(renderpage($title, $content)); break; + /* + * _ _ _ _ + * ___| |__ ___ ___| | _| | ___ __ _(_)_ __ + * / __| '_ \ / _ \/ __| |/ / |/ _ \ / _` | | '_ \ + * | (__| | | | __/ (__| <| | (_) | (_| | | | | | + * \___|_| |_|\___|\___|_|\_\_|\___/ \__, |_|_| |_| + * %checklogin% |___/ + */ case "checklogin": if(isset($_POST["user"]) and isset($_POST["pass"])) { @@ -688,6 +740,14 @@ switch($_GET["action"]) } break; + /* + * _ _ + * | | ___ __ _ ___ _ _| |_ + * | |/ _ \ / _` |/ _ \| | | | __| + * | | (_) | (_| | (_) | |_| | |_ + * |_|\___/ \__, |\___/ \__,_|\__| + * |___/ %logout% + */ case "logout": $isloggedin = false; unset($user); @@ -698,6 +758,14 @@ switch($_GET["action"])

Logout Successful. You can login again here.

")); break; + /* + * _ _ _ + * ___ _ __ ___ __| (_) |_ ___ + * / __| '__/ _ \/ _` | | __/ __| + * | (__| | | __/ (_| | | |_\__ \ + * \___|_| \___|\__,_|_|\__|___/ + * %credits% + */ case "credits": $title = "Credits - $sitename"; $content = "

$sitename credits

@@ -707,6 +775,14 @@ switch($_GET["action"]) exit(renderpage($title, $content)); break; + /* + * _ _ + * | |__ __ _ ___| |__ + * | '_ \ / _` / __| '_ \ + * | | | | (_| \__ \ | | | + * |_| |_|\__,_|___/_| |_| + * %hash% + */ case "hash": if(!isset($_GET["string"])) { @@ -720,6 +796,14 @@ switch($_GET["action"]) } break; + /* + * _ + * __ _(_) _____ __ + * \ \ / / |/ _ \ \ /\ / / + * \ V /| | __/\ V V / + * \_/ |_|\___| \_/\_/ + * %view% + */ case "view": default: //check to make sure that the page exists