From 24a81c2f113b113048054accedabe57d82ba90b1 Mon Sep 17 00:00:00 2001
From: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
Date: Sat, 26 Dec 2015 12:55:56 +0000
Subject: [PATCH] Update build

---
 build/index.php   | 150 ++++++++++++++++++++++++++++++++++++++++++++--
 module_index.json |  32 +++++-----
 2 files changed, 161 insertions(+), 21 deletions(-)

diff --git a/build/index.php b/build/index.php
index 768e9fa..924cffd 100644
--- a/build/index.php
+++ b/build/index.php
@@ -1291,6 +1291,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;
 			
@@ -1318,6 +1327,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;
 
@@ -1367,6 +1384,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ██████   █████  ██     ██ 
+		 * ██   ██ ██   ██ ██     ██ 
+		 * ██████  ███████ ██  █  ██ 
+		 * ██   ██ ██   ██ ██ ███ ██ 
+		 * ██   ██ ██   ██  ███ ███  
+		 */
 		add_action("raw", function() {
 			global $env;
 
@@ -1549,6 +1573,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;
 			
@@ -1566,10 +1598,30 @@ register_module([
 			var_dump($index);
 		});
 		
+		/*
+		 * ██ ███    ██ ██    ██ ██ ███    ██ ██████  ███████ ██   ██          
+		 * ██ ████   ██ ██    ██ ██ ████   ██ ██   ██ ██       ██ ██           
+		 * ██ ██ ██  ██ ██    ██ ██ ██ ██  ██ ██   ██ █████     ███  █████     
+		 * ██ ██  ██ ██  ██  ██  ██ ██  ██ ██ ██   ██ ██       ██ ██           
+		 * ██ ██   ████   ████   ██ ██   ████ ██████  ███████ ██   ██          
+		 * 
+		 * ██████  ███████ ██████  ██    ██ ██ ██      ██████                  
+		 * ██   ██ ██      ██   ██ ██    ██ ██ ██      ██   ██                 
+		 * ██████  █████   ██████  ██    ██ ██ ██      ██   ██                 
+		 * ██   ██ ██      ██   ██ ██    ██ ██ ██      ██   ██                 
+		 * ██   ██ ███████ ██████   ██████  ██ ███████ ██████                  
+		 */
 		add_action("invindex-rebuild", function() {
 			search::rebuild_invindex();
 		});
 		
+		/*
+		 * ███████ ███████  █████  ██████   ██████ ██   ██ 
+		 * ██      ██      ██   ██ ██   ██ ██      ██   ██ 
+		 * ███████ █████   ███████ ██████  ██      ███████ 
+		 *      ██ ██      ██   ██ ██   ██ ██      ██   ██ 
+		 * ███████ ███████ ██   ██ ██   ██  ██████ ██   ██ 
+		 */
 		add_action("search", function() {
 			global $settings, $env, $pageindex, $paths;
 			
@@ -2039,6 +2091,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ██    ██ ██████  ██       ██████   █████  ██████  
+		 * ██    ██ ██   ██ ██      ██    ██ ██   ██ ██   ██ 
+		 * ██    ██ ██████  ██      ██    ██ ███████ ██   ██ 
+		 * ██    ██ ██      ██      ██    ██ ██   ██ ██   ██ 
+		 *  ██████  ██      ███████  ██████  ██   ██ ██████  
+		 */
 		add_action("upload", function() {
 			global $settings, $env, $pageindex, $paths;
 			
@@ -2171,6 +2230,14 @@ register_module([
 					break;
 			}
 		});
+		
+		/*
+		 * ██████  ██████  ███████ ██    ██ ██ ███████ ██     ██ 
+		 * ██   ██ ██   ██ ██      ██    ██ ██ ██      ██     ██ 
+		 * ██████  ██████  █████   ██    ██ ██ █████   ██  █  ██ 
+		 * ██      ██   ██ ██       ██  ██  ██ ██      ██ ███ ██ 
+		 * ██      ██   ██ ███████   ████   ██ ███████  ███ ███  
+		 */
 		add_action("preview", function() {
 			global $settings, $env, $pageindex;
 			
@@ -2377,6 +2444,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;
 			
@@ -2466,6 +2541,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ██████  ███████ ██      ███████ ████████ ███████ 
+		 * ██   ██ ██      ██      ██         ██    ██      
+		 * ██   ██ █████   ██      █████      ██    █████   
+		 * ██   ██ ██      ██      ██         ██    ██      
+		 * ██████  ███████ ███████ ███████    ██    ███████ 
+		 */
 		add_action("delete", function() {
 			global $pageindex, $settings, $env, $paths, $modules;
 			if(!$settings->editing)
@@ -2757,6 +2839,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ███████ ██   ██ ██████   ██████  ██████  ████████ 
+		 * ██       ██ ██  ██   ██ ██    ██ ██   ██    ██    
+		 * █████     ███   ██████  ██    ██ ██████     ██    
+		 * ██       ██ ██  ██      ██    ██ ██   ██    ██    
+		 * ███████ ██   ██ ██       ██████  ██   ██    ██    
+		 */
 		add_action("export", function() {
 			global $settings, $pageindex, $env;
 			
@@ -2815,6 +2904,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ██   ██ ███████ ██      ██████  
+		 * ██   ██ ██      ██      ██   ██ 
+		 * ███████ █████   ██      ██████  
+		 * ██   ██ ██      ██      ██      
+		 * ██   ██ ███████ ███████ ██      
+		 */
 		add_action("help", function() {
 			global $settings, $version, $help_sections;
 			
@@ -2878,6 +2974,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ██      ██ ███████ ████████ 
+		 * ██      ██ ██         ██    
+		 * ██      ██ ███████    ██    
+		 * ██      ██      ██    ██    
+		 * ███████ ██ ███████    ██    
+		 */
 		add_action("list", function() {
 			global $pageindex, $settings;
 			
@@ -2891,6 +2994,13 @@ register_module([
 			exit(page_renderer::render_main("$title - $settings->sitename", $content));
 		});
 		
+		/*
+		 * ██      ██ ███████ ████████ ████████  █████   ██████  ███████ 
+		 * ██      ██ ██         ██       ██    ██   ██ ██       ██      
+		 * ██      ██ ███████    ██ █████ ██    ███████ ██   ███ ███████ 
+		 * ██      ██      ██    ██       ██    ██   ██ ██    ██      ██ 
+		 * ███████ ██ ███████    ██       ██    ██   ██  ██████  ███████ 
+		 */
 		add_action("list-tags", function() {
 			global $pageindex, $settings;
 			
@@ -3106,6 +3216,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;
@@ -3133,6 +3250,13 @@ register_module([
 	"code" => function() {
 		global $settings;
 		
+		/*
+		 * ███    ███  ██████  ██    ██ ███████ 
+		 * ████  ████ ██    ██ ██    ██ ██      
+		 * ██ ████ ██ ██    ██ ██    ██ █████   
+		 * ██  ██  ██ ██    ██  ██  ██  ██      
+		 * ██      ██  ██████    ████   ███████ 
+		 */
 		add_action("move", function() {
 			global $pageindex, $settings, $env, $paths;
 			if(!$settings->editing)
@@ -3218,6 +3342,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;
 			
@@ -3285,6 +3416,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;
 			
@@ -3435,11 +3573,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/module_index.json b/module_index.json
index 54fa982..3082f4d 100644
--- a/module_index.json
+++ b/module_index.json
@@ -5,7 +5,7 @@
         "author": "Starbeamrainbowlabs",
         "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",
-        "lastupdate": 1445170746,
+        "lastupdate": 1451133514,
         "optional": false
     },
     {
@@ -14,7 +14,7 @@
         "author": "Starbeamrainbowlabs",
         "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",
-        "lastupdate": 1447322382,
+        "lastupdate": 1451133581,
         "optional": false
     },
     {
@@ -23,7 +23,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds a 'raw' action that shows you the raw source of a page.",
         "id": "action-raw",
-        "lastupdate": 1450706567,
+        "lastupdate": 1451133673,
         "optional": false
     },
     {
@@ -50,7 +50,7 @@
         "author": "Starbeamrainbowlabs",
         "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",
-        "lastupdate": 1449335838,
+        "lastupdate": 1451133815,
         "optional": false
     },
     {
@@ -59,7 +59,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File:' prefix.",
         "id": "feature-upload",
-        "lastupdate": 1450706993,
+        "lastupdate": 1451133883,
         "optional": false
     },
     {
@@ -68,7 +68,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds the credits page. You *must* have this module :D",
         "id": "page-credits",
-        "lastupdate": 1445170746,
+        "lastupdate": 1451133924,
         "optional": false
     },
     {
@@ -77,7 +77,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds an action to allow administrators to delete pages.",
         "id": "page-delete",
-        "lastupdate": 1450687269,
+        "lastupdate": 1451133966,
         "optional": false
     },
     {
@@ -95,7 +95,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds a page that you can use to export your wiki as a .zip file. Uses $settings->export_only_allow_admins, which controls whether only admins are allowed to export the wiki.",
         "id": "page-export",
-        "lastupdate": 1450686594,
+        "lastupdate": 1451134003,
         "optional": false
     },
     {
@@ -104,7 +104,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds the help action. You really want this one.",
         "id": "page-help",
-        "lastupdate": 1450708748,
+        "lastupdate": 1451134026,
         "optional": false
     },
     {
@@ -113,7 +113,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds a page that lists all the pages in the index along with their metadata.",
         "id": "page-list",
-        "lastupdate": 1450687245,
+        "lastupdate": 1451134069,
         "optional": false
     },
     {
@@ -131,7 +131,7 @@
         "author": "Starbeamrainbowlabs",
         "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",
-        "lastupdate": 1445170746,
+        "lastupdate": 1451134134,
         "optional": false
     },
     {
@@ -140,7 +140,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds an action to allow administrators to move pages.",
         "id": "page-move",
-        "lastupdate": 1450687315,
+        "lastupdate": 1451134153,
         "optional": false
     },
     {
@@ -149,7 +149,7 @@
         "author": "Starbeamrainbowlabs",
         "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",
-        "lastupdate": 1445170746,
+        "lastupdate": 1451134180,
         "optional": false
     },
     {
@@ -158,7 +158,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Allows you to view pages. You reallyshould include this one.",
         "id": "page-view",
-        "lastupdate": 1447052018,
+        "lastupdate": 1451134217,
         "optional": false
     },
     {
@@ -167,7 +167,7 @@
         "author": "Johnny Broadway & Starbeamrainbowlabs",
         "description": "The default parser for Pepperminty Wiki. Based on Johnny Broadway's Slimdown (with more than a few modifications). This parser's features are documented in the help page.",
         "id": "parser-default",
-        "lastupdate": 1450708466,
+        "lastupdate": 1451134309,
         "optional": false
     },
     {
@@ -176,7 +176,7 @@
         "author": "Johnny Broadway, Emanuil Rusev & Starbeamrainbowlabs",
         "description": "An upgraded parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Also uses a modified Slimdown engine by Johnny Broadway in order to add support for internal links etc. Please be careful, as this module adds a _ton_ of weight to your installation.",
         "id": "parser-parsedown",
-        "lastupdate": 1445170746,
+        "lastupdate": 1451134485,
         "optional": true
     }
 ]
\ No newline at end of file
