2015-04-09 13:50:29 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Pepperminty Wiki Download</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Pepperminty Wiki Download</h1>
|
|
|
|
|
|
|
|
<!-------------->
|
|
|
|
<h2>Module selector</h2>
|
|
|
|
<p>Choose the modules that you want to include in your installation of Pepperminty Wiki.</p>
|
|
|
|
|
2015-04-25 14:54:50 +00:00
|
|
|
<p>
|
|
|
|
<button onclick="select(true);">Select All</button>
|
|
|
|
<button onclick="select(false);">Select None</button>
|
|
|
|
</p>
|
|
|
|
|
2015-04-09 13:50:29 +00:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Author</th>
|
|
|
|
<th>Version</th>
|
2015-04-25 14:54:50 +00:00
|
|
|
<th style="width: 9rem;">Last Updated</th>
|
2015-04-09 13:50:29 +00:00
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
$module_index = json_decode(file_get_contents("module_index.json"));
|
|
|
|
foreach($module_index as $module)
|
|
|
|
{
|
|
|
|
echo("<tr>
|
2015-04-25 14:54:50 +00:00
|
|
|
<td><input type='checkbox' id='$module->id' checked /></td>
|
2015-04-09 13:50:29 +00:00
|
|
|
<td><label for='$module->id'>$module->name</label></td>
|
|
|
|
<td>$module->description</td>
|
|
|
|
<td>$module->author</td>
|
|
|
|
<td>$module->version</td>
|
2015-04-25 14:54:50 +00:00
|
|
|
<td>" . date("D jS M Y", $module->lastupdate) . "</td>
|
2015-04-09 13:50:29 +00:00
|
|
|
</tr>");
|
|
|
|
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
|
2015-04-25 14:54:50 +00:00
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<button onclick="download()" class="largebutton">Download</button>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Pepperminty Wiki was built by <a href="//starbeamrainbowlabs.com/">Starbeamrainbowlabs</a>. The code is available on <a href="//github.com/sbrl/pepperminty-wiki">GitHub</a>.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Other contributors: (none yet! Contribute and I will put your name here)
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<!------------------->
|
|
|
|
<link rel="stylesheet" href="//starbeamrainbowlabs.com/theme/basic.css" />
|
|
|
|
<style>
|
|
|
|
body { padding: 1rem; } /* syntaxtic gets confused sometimes */
|
|
|
|
.largebutton { font-size: 2rem; }
|
|
|
|
</style>
|
|
|
|
|
2015-04-09 13:50:29 +00:00
|
|
|
<script>
|
2015-04-25 14:54:50 +00:00
|
|
|
function select(state)
|
|
|
|
{
|
|
|
|
var checkboxes = document.querySelectorAll("input[type=checkbox]");
|
|
|
|
for(var i = 0; i < checkboxes.length; i++)
|
|
|
|
{
|
|
|
|
checkboxes[i].checked = state;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-08 13:30:51 +00:00
|
|
|
function download()
|
|
|
|
{
|
|
|
|
var url = "build.php?web=true&modules=",
|
|
|
|
checkboxes = document.querySelectorAll("input[type=checkbox]");
|
|
|
|
for(var i = 0; i < checkboxes.length; i++)
|
|
|
|
{
|
2015-05-08 19:03:15 +00:00
|
|
|
url += encodeURIComponent(checkboxes[i].id) + ",";
|
2015-05-08 13:30:51 +00:00
|
|
|
}
|
|
|
|
location.href = url;
|
|
|
|
}
|
2015-04-09 13:50:29 +00:00
|
|
|
</script>
|
2015-04-25 14:54:50 +00:00
|
|
|
|
2015-04-09 13:50:29 +00:00
|
|
|
</body>
|
|
|
|
</html>
|