From 7a5ba69ea88e90f11096899e96a61640cf007f3c Mon Sep 17 00:00:00 2001
From: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
Date: Tue, 18 Oct 2016 19:29:14 +0100
Subject: [PATCH] Update build.

---
 build/index.php   |  8 ++++++++
 module_index.json | 16 ++++++++--------
 2 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/build/index.php b/build/index.php
index 2264186..8f76972 100755
--- a/build/index.php
+++ b/build/index.php
@@ -1826,11 +1826,19 @@ register_module([
 				$label = "<label for='setting-$configKey'>$configKey</label>";
 				switch($configData->type)
 				{
+					case "url":
+					case "number":
 					case "text":
 						$inputControl = "<input type='$configData->type' id='$configKey' value='$settings->$configKey' />";
 						break;
 					case "textarea":
 						$inputControl = "<textarea id='$configKey'>$settings->$configKey</textarea>";
+					case "checkbox":
+						$reverse = true;
+						$inputControl = "<input type='checkbox' id='$configKey' " . ($settings->$configKey ? " checked" : "") . " />";
+					default:
+						$label = "";
+						$inputControl = "<p><em>Sorry! The <code>$configKey</code> setting isn't editable yet through the gui. Please try editing <code>peppermint.json</code> for the time being.</p>";
 				}
 				
 				$content .= !$reverse ? "$inputControl\n$label\n" : "$label\n$inputControl\n";
diff --git a/module_index.json b/module_index.json
index 796cd9d..8b8b773 100755
--- a/module_index.json
+++ b/module_index.json
@@ -41,7 +41,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "The module everyone has been waiting for! Adds a web based gui that lets mods change the wiki settings.",
         "id": "feature-guiconfig",
-        "lastupdate": 1476814114,
+        "lastupdate": 1476815055,
         "optional": false
     },
     {
@@ -59,7 +59,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds recent changes. Access through the 'recent-changes' action.",
         "id": "feature-recent-changes",
-        "lastupdate": 1476813489,
+        "lastupdate": 1476815055,
         "optional": false
     },
     {
@@ -77,7 +77,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds proper search functionality to Pepperminty Wiki using an inverted index to provide a full text search engine. If pages don't show up, then you might have hit a stop word. If not, try requesting the `invindex-rebuild` action to rebuild the inverted index from scratch.",
         "id": "feature-search",
-        "lastupdate": 1476813489,
+        "lastupdate": 1476815055,
         "optional": false
     },
     {
@@ -86,7 +86,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": 1476814007,
+        "lastupdate": 1476815055,
         "optional": false
     },
     {
@@ -122,7 +122,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Allows you to edit pages by adding the edit and save actions. You should probably include this one.",
         "id": "page-edit",
-        "lastupdate": 1476813024,
+        "lastupdate": 1476815055,
         "optional": false
     },
     {
@@ -176,7 +176,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Adds an action to allow administrators to move pages.",
         "id": "page-move",
-        "lastupdate": 1476814114,
+        "lastupdate": 1476815055,
         "optional": false
     },
     {
@@ -194,7 +194,7 @@
         "author": "Starbeamrainbowlabs",
         "description": "Allows you to view pages. You really should include this one.",
         "id": "page-view",
-        "lastupdate": 1476813955,
+        "lastupdate": 1476815055,
         "optional": false
     },
     {
@@ -212,7 +212,7 @@
         "author": "Emanuil Rusev & Starbeamrainbowlabs",
         "description": "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds some weight to your installation, and also *requires* write access to the disk on first load.",
         "id": "parser-parsedown",
-        "lastupdate": 1476814092,
+        "lastupdate": 1476815055,
         "optional": false
     }
 ]
\ No newline at end of file
