From 801369387d8276a2ad5a6054c4befc96a5a94da3 Mon Sep 17 00:00:00 2001
From: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
Date: Sat, 26 Dec 2015 12:55:19 +0000
Subject: [PATCH] Cleaned up comments and added more title texts.

---
 modules/action-hash.php      |  9 +++++++++
 modules/action-protect.php   |  8 ++++++++
 modules/action-raw.php       |  7 +++++++
 modules/feature-search.php   | 28 ++++++++++++++++++++++++++++
 modules/feature-upload.php   | 15 +++++++++++++++
 modules/page-credits.php     |  8 ++++++++
 modules/page-delete.php      |  7 +++++++
 modules/page-export.php      |  7 +++++++
 modules/page-help.php        |  7 +++++++
 modules/page-list.php        | 14 ++++++++++++++
 modules/page-logout.php      |  7 +++++++
 modules/page-move.php        |  7 +++++++
 modules/page-update.php      |  7 +++++++
 modules/page-view.php        |  7 +++++++
 modules/parser-default.php   | 12 +++++++-----
 modules/parser-parsedown.php | 26 +++++++++++++-------------
 16 files changed, 158 insertions(+), 18 deletions(-)

diff --git a/modules/action-hash.php b/modules/action-hash.php
index 4a8127b..09d4123 100644
--- a/modules/action-hash.php
+++ b/modules/action-hash.php
@@ -6,6 +6,15 @@ register_module([
 	"description" => "Adds a utility action (that anyone can use) called hash that hashes a given string. Useful when changing a user's password.",
 	"id" => "action-hash",
 	"code" => function() {
+		
+		/*
+		 * ██   ██  █████  ███████ ██   ██ 
+		 * ██   ██ ██   ██ ██      ██   ██ 
+		 * ███████ ███████ ███████ ███████ 
+		 * ██   ██ ██   ██      ██ ██   ██ 
+		 * ██   ██ ██   ██ ███████ ██   ██
+		 */
+		
 		add_action("hash", function() {
 			global $settings;
 			
diff --git a/modules/action-protect.php b/modules/action-protect.php
index 7328763..6b28259 100644
--- a/modules/action-protect.php
+++ b/modules/action-protect.php
@@ -6,6 +6,14 @@ register_module([
 	"description" => "Exposes Pepperminty Wiki's new page protection mechanism and makes the protect button in the 'More...' menu on the top bar work.",
 	"id" => "action-protect",
 	"code" => function() {
+		
+		/*
+		 * ██████  ██████   ██████  ████████ ███████  ██████ ████████ 
+		 * ██   ██ ██   ██ ██    ██    ██    ██      ██         ██    
+		 * ██████  ██████  ██    ██    ██    █████   ██         ██    
+		 * ██      ██   ██ ██    ██    ██    ██      ██         ██    
+		 * ██      ██   ██  ██████     ██    ███████  ██████    ██    
+		 */
 		add_action("protect", function() {
 			global $env, $pageindex, $paths, $settings;
 
diff --git a/modules/action-raw.php b/modules/action-raw.php
index f9fae79..be728ab 100644
--- a/modules/action-raw.php
+++ b/modules/action-raw.php
@@ -8,6 +8,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ██████   █████  ██     ██ 
+		 * ██   ██ ██   ██ ██     ██ 
+		 * ██████  ███████ ██  █  ██ 
+		 * ██   ██ ██   ██ ██ ███ ██ 
+		 * ██   ██ ██   ██  ███ ███  
+		 */
 		add_action("raw", function() {
 			global $env;
 
diff --git a/modules/feature-search.php b/modules/feature-search.php
index c5b1759..6d0d1ac 100644
--- a/modules/feature-search.php
+++ b/modules/feature-search.php
@@ -6,6 +6,14 @@ register_module([
 	"description" => "Adds proper search functionality to Pepperminty Wiki. Note that this module, at the moment, just contains test code while I figure out how best to write a search engine.",
 	"id" => "feature-search",
 	"code" => function() {
+		
+		/*
+		 * ██ ███    ██ ██████  ███████ ██   ██ 
+		 * ██ ████   ██ ██   ██ ██       ██ ██  
+		 * ██ ██ ██  ██ ██   ██ █████     ███   
+		 * ██ ██  ██ ██ ██   ██ ██       ██ ██  
+		 * ██ ██   ████ ██████  ███████ ██   ██ 
+		 */
 		add_action("index", function() {
 			global $settings, $env;
 			
@@ -23,10 +31,30 @@ register_module([
 			var_dump($index);
 		});
 		
+		/*
+		 * ██ ███    ██ ██    ██ ██ ███    ██ ██████  ███████ ██   ██          
+		 * ██ ████   ██ ██    ██ ██ ████   ██ ██   ██ ██       ██ ██           
+		 * ██ ██ ██  ██ ██    ██ ██ ██ ██  ██ ██   ██ █████     ███  █████     
+		 * ██ ██  ██ ██  ██  ██  ██ ██  ██ ██ ██   ██ ██       ██ ██           
+		 * ██ ██   ████   ████   ██ ██   ████ ██████  ███████ ██   ██          
+		 * 
+		 * ██████  ███████ ██████  ██    ██ ██ ██      ██████                  
+		 * ██   ██ ██      ██   ██ ██    ██ ██ ██      ██   ██                 
+		 * ██████  █████   ██████  ██    ██ ██ ██      ██   ██                 
+		 * ██   ██ ██      ██   ██ ██    ██ ██ ██      ██   ██                 
+		 * ██   ██ ███████ ██████   ██████  ██ ███████ ██████                  
+		 */
 		add_action("invindex-rebuild", function() {
 			search::rebuild_invindex();
 		});
 		
+		/*
+		 * ███████ ███████  █████  ██████   ██████ ██   ██ 
+		 * ██      ██      ██   ██ ██   ██ ██      ██   ██ 
+		 * ███████ █████   ███████ ██████  ██      ███████ 
+		 *      ██ ██      ██   ██ ██   ██ ██      ██   ██ 
+		 * ███████ ███████ ██   ██ ██   ██  ██████ ██   ██ 
+		 */
 		add_action("search", function() {
 			global $settings, $env, $pageindex, $paths;
 			
diff --git a/modules/feature-upload.php b/modules/feature-upload.php
index dcc545e..f0f7d54 100644
--- a/modules/feature-upload.php
+++ b/modules/feature-upload.php
@@ -8,6 +8,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ██    ██ ██████  ██       ██████   █████  ██████  
+		 * ██    ██ ██   ██ ██      ██    ██ ██   ██ ██   ██ 
+		 * ██    ██ ██████  ██      ██    ██ ███████ ██   ██ 
+		 * ██    ██ ██      ██      ██    ██ ██   ██ ██   ██ 
+		 *  ██████  ██      ███████  ██████  ██   ██ ██████  
+		 */
 		add_action("upload", function() {
 			global $settings, $env, $pageindex, $paths;
 			
@@ -140,6 +147,14 @@ register_module([
 					break;
 			}
 		});
+		
+		/*
+		 * ██████  ██████  ███████ ██    ██ ██ ███████ ██     ██ 
+		 * ██   ██ ██   ██ ██      ██    ██ ██ ██      ██     ██ 
+		 * ██████  ██████  █████   ██    ██ ██ █████   ██  █  ██ 
+		 * ██      ██   ██ ██       ██  ██  ██ ██      ██ ███ ██ 
+		 * ██      ██   ██ ███████   ████   ██ ███████  ███ ███  
+		 */
 		add_action("preview", function() {
 			global $settings, $env, $pageindex;
 			
diff --git a/modules/page-credits.php b/modules/page-credits.php
index ba1f07e..156bb48 100644
--- a/modules/page-credits.php
+++ b/modules/page-credits.php
@@ -6,6 +6,14 @@ register_module([
 	"description" => "Adds the credits page. You *must* have this module :D",
 	"id" => "page-credits",
 	"code" => function() {
+		
+		/*
+		 *  ██████ ██████  ███████ ██████  ██ ████████ ███████ 
+		 * ██      ██   ██ ██      ██   ██ ██    ██    ██      
+		 * ██      ██████  █████   ██   ██ ██    ██    ███████ 
+		 * ██      ██   ██ ██      ██   ██ ██    ██         ██ 
+		 *  ██████ ██   ██ ███████ ██████  ██    ██    ███████ 
+		 */
 		add_action("credits", function() {
 			global $settings, $version, $pageindex, $modules;
 			
diff --git a/modules/page-delete.php b/modules/page-delete.php
index 9957835..743a276 100644
--- a/modules/page-delete.php
+++ b/modules/page-delete.php
@@ -8,6 +8,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ██████  ███████ ██      ███████ ████████ ███████ 
+		 * ██   ██ ██      ██      ██         ██    ██      
+		 * ██   ██ █████   ██      █████      ██    █████   
+		 * ██   ██ ██      ██      ██         ██    ██      
+		 * ██████  ███████ ███████ ███████    ██    ███████ 
+		 */
 		add_action("delete", function() {
 			global $pageindex, $settings, $env, $paths, $modules;
 			if(!$settings->editing)
diff --git a/modules/page-export.php b/modules/page-export.php
index cb783f1..b515f21 100644
--- a/modules/page-export.php
+++ b/modules/page-export.php
@@ -8,6 +8,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ███████ ██   ██ ██████   ██████  ██████  ████████ 
+		 * ██       ██ ██  ██   ██ ██    ██ ██   ██    ██    
+		 * █████     ███   ██████  ██    ██ ██████     ██    
+		 * ██       ██ ██  ██      ██    ██ ██   ██    ██    
+		 * ███████ ██   ██ ██       ██████  ██   ██    ██    
+		 */
 		add_action("export", function() {
 			global $settings, $pageindex, $env;
 			
diff --git a/modules/page-help.php b/modules/page-help.php
index 81347c2..cbe73e8 100644
--- a/modules/page-help.php
+++ b/modules/page-help.php
@@ -8,6 +8,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ██   ██ ███████ ██      ██████  
+		 * ██   ██ ██      ██      ██   ██ 
+		 * ███████ █████   ██      ██████  
+		 * ██   ██ ██      ██      ██      
+		 * ██   ██ ███████ ███████ ██      
+		 */
 		add_action("help", function() {
 			global $settings, $version, $help_sections;
 			
diff --git a/modules/page-list.php b/modules/page-list.php
index f920919..2b359d4 100644
--- a/modules/page-list.php
+++ b/modules/page-list.php
@@ -8,6 +8,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ██      ██ ███████ ████████ 
+		 * ██      ██ ██         ██    
+		 * ██      ██ ███████    ██    
+		 * ██      ██      ██    ██    
+		 * ███████ ██ ███████    ██    
+		 */
 		add_action("list", function() {
 			global $pageindex, $settings;
 			
@@ -21,6 +28,13 @@ register_module([
 			exit(page_renderer::render_main("$title - $settings->sitename", $content));
 		});
 		
+		/*
+		 * ██      ██ ███████ ████████ ████████  █████   ██████  ███████ 
+		 * ██      ██ ██         ██       ██    ██   ██ ██       ██      
+		 * ██      ██ ███████    ██ █████ ██    ███████ ██   ███ ███████ 
+		 * ██      ██      ██    ██       ██    ██   ██ ██    ██      ██ 
+		 * ███████ ██ ███████    ██       ██    ██   ██  ██████  ███████ 
+		 */
 		add_action("list-tags", function() {
 			global $pageindex, $settings;
 			
diff --git a/modules/page-logout.php b/modules/page-logout.php
index bfda77d..03d3c88 100644
--- a/modules/page-logout.php
+++ b/modules/page-logout.php
@@ -6,6 +6,13 @@ register_module([
 	"description" => "Adds an action to let users user out. For security reasons it is wise to add this module since logging in automatically opens a session that is valid for 30 days.",
 	"id" => "page-logout",
 	"code" => function() {
+		/*
+		 * ██       ██████   ██████   ██████  ██    ██ ████████ 
+		 * ██      ██    ██ ██       ██    ██ ██    ██    ██    
+		 * ██      ██    ██ ██   ███ ██    ██ ██    ██    ██    
+		 * ██      ██    ██ ██    ██ ██    ██ ██    ██    ██    
+		 * ███████  ██████   ██████   ██████   ██████     ██    
+		 */
 		add_action("logout", function() {
 			global $env;
 			$env->is_logged_in = false;
diff --git a/modules/page-move.php b/modules/page-move.php
index 64a836b..5064e2b 100644
--- a/modules/page-move.php
+++ b/modules/page-move.php
@@ -8,6 +8,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ███    ███  ██████  ██    ██ ███████ 
+		 * ████  ████ ██    ██ ██    ██ ██      
+		 * ██ ████ ██ ██    ██ ██    ██ █████   
+		 * ██  ██  ██ ██    ██  ██  ██  ██      
+		 * ██      ██  ██████    ████   ███████ 
+		 */
 		add_action("move", function() {
 			global $pageindex, $settings, $env, $paths;
 			if(!$settings->editing)
diff --git a/modules/page-update.php b/modules/page-update.php
index 442abb8..b346398 100644
--- a/modules/page-update.php
+++ b/modules/page-update.php
@@ -6,6 +6,13 @@ register_module([
 	"description" => "Adds an update page that downloads the latest stable version of Pepperminty Wiki. This module is currently outdated as it doesn't save your module preferences.",
 	"id" => "page-update",
 	"code" => function() {
+		/*
+		 * ██    ██ ██████  ██████   █████  ████████ ███████ 
+		 * ██    ██ ██   ██ ██   ██ ██   ██    ██    ██      
+		 * ██    ██ ██████  ██   ██ ███████    ██    █████   
+		 * ██    ██ ██      ██   ██ ██   ██    ██    ██      
+		 *  ██████  ██      ██████  ██   ██    ██    ███████ 
+		 */
 		add_action("update", function() {
 			global $settings, $env;
 			
diff --git a/modules/page-view.php b/modules/page-view.php
index 568d93f..c277f43 100644
--- a/modules/page-view.php
+++ b/modules/page-view.php
@@ -6,6 +6,13 @@ register_module([
 	"description" => "Allows you to view pages. You reallyshould include this one.",
 	"id" => "page-view",
 	"code" => function() {
+		/*
+		 * ██    ██ ██ ███████ ██     ██ 
+		 * ██    ██ ██ ██      ██     ██ 
+		 * ██    ██ ██ █████   ██  █  ██ 
+		 *  ██  ██  ██ ██      ██ ███ ██ 
+		 *   ████   ██ ███████  ███ ███  
+		 */
 		add_action("view", function() {
 			global $pageindex, $settings, $env;
 			
diff --git a/modules/parser-default.php b/modules/parser-default.php
index baf81df..694a07b 100644
--- a/modules/parser-default.php
+++ b/modules/parser-default.php
@@ -49,11 +49,13 @@ register_module([
 	}
 ]);
 
-////////////////////////////////////////////////////////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////////////////////
-///////////////////////////////////////// Slimdown /////////////////////////////////////////
-////////////////////////////////////////////////////////////////////////////// %slimdown% //
-////////////////////////////////////////////////////////////////////////////////////////////
+/***********************************************************************
+ * ███████ ██      ██ ███    ███ ██████   ██████  ██     ██ ███    ██  *
+ * ██      ██      ██ ████  ████ ██   ██ ██    ██ ██     ██ ████   ██  *
+ * ███████ ██      ██ ██ ████ ██ ██   ██ ██    ██ ██  █  ██ ██ ██  ██  *
+ *      ██ ██      ██ ██  ██  ██ ██   ██ ██    ██ ██ ███ ██ ██  ██ ██  *
+ * ███████ ███████ ██ ██      ██ ██████   ██████   ███ ███  ██   ████  *
+ ***********************************************************************/
 /**
  * Slimdown - A very basic regex-based Markdown parser. Supports the
  * following elements (and can be extended via Slimdown::add_rule()):
diff --git a/modules/parser-parsedown.php b/modules/parser-parsedown.php
index ed7f548..bdb133d 100644
--- a/modules/parser-parsedown.php
+++ b/modules/parser-parsedown.php
@@ -38,16 +38,11 @@ register_module([
  * Website: https://gist.github.com/jbroadway/2836900
  * License: MIT
  */
-
 /**
- * Modified by Starbeamrainbowlabs (starbeamrainbowlabs)
- * 
- 	* Changed bold to use single asterisks
- 	* Changed italics to use single underscores
- 	* Added one to add the heading levels (no <h1> tags allowed)
- 	* Added wiki style internal link parsing
- 	* Added wiki style internal link parsing with display text
- 	* Added image support
+ * Modified by Starbeamrainbowlabs
+ *
+ *  - Stripped all existing rules
+ *  - Added a few extensions that parsedown doesn't deal with
  */
 class Parsedown_Slimdown_Extensions {
 	public static $rules = array (
@@ -79,7 +74,13 @@ class Parsedown_Slimdown_Extensions {
 }
 
 
-#
+/*
+ * ██████   █████  ██████  ███████ ███████ ██████   ██████  ██     ██ ███    ██ 
+ * ██   ██ ██   ██ ██   ██ ██      ██      ██   ██ ██    ██ ██     ██ ████   ██ 
+ * ██████  ███████ ██████  ███████ █████   ██   ██ ██    ██ ██  █  ██ ██ ██  ██ 
+ * ██      ██   ██ ██   ██      ██ ██      ██   ██ ██    ██ ██ ███ ██ ██  ██ ██ 
+ * ██      ██   ██ ██   ██ ███████ ███████ ██████   ██████   ███ ███  ██   ████ 
+ */
 #
 # Parsedown
 # http://parsedown.org
@@ -89,9 +90,8 @@ class Parsedown_Slimdown_Extensions {
 #
 # For the full license information, view the LICENSE file that was distributed
 # with this source code.
-#
-#
-
+# 
+# 
 class Parsedown
 {
     # ~
