2018-10-31 16:44:34 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Pepperminty Wiki Download</title>
|
2020-01-16 19:19:06 +00:00
|
|
|
|
|
|
|
<link rel="shortcut icon" href="logo.png" />
|
2018-10-31 16:44:34 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2020-01-16 19:19:06 +00:00
|
|
|
<h1><img src="https://starbeamrainbowlabs.com/images/logos/peppermint.png" class="logo" aria-hidden="true" /> Pepperminty Wiki Downloader</h1>
|
2018-10-31 16:44:34 +00:00
|
|
|
|
|
|
|
<!-------------->
|
|
|
|
<h2>Module selector</h2>
|
|
|
|
<p>Choose the modules that you want to include in your installation of Pepperminty Wiki <?php echo(trim(file_get_contents("version"))); ?>.</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<button onclick="select(true);">Select All</button>
|
|
|
|
<button onclick="select(false);">Select None</button>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
2020-01-16 19:22:16 +00:00
|
|
|
<th>#</th>
|
2018-10-31 16:44:34 +00:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Author</th>
|
|
|
|
<th>Version</th>
|
|
|
|
<th style="width: 9rem;">Last Updated</th>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
$module_index = json_decode(file_get_contents("module_index.json"));
|
|
|
|
foreach($module_index as $module)
|
|
|
|
{
|
|
|
|
$checkedText = (isset($module->optional) && $module->optional === true) ? "" : " checked";
|
|
|
|
echo("<tr>
|
|
|
|
<td><input type='checkbox' id='$module->id'$checkedText /></td>
|
|
|
|
<td><label for='$module->id'>$module->name</label></td>
|
|
|
|
<td>$module->description</td>
|
|
|
|
<td>$module->author</td>
|
|
|
|
<td>$module->version</td>
|
|
|
|
<td>" . date("D jS M Y", $module->lastupdate) . "</td>
|
|
|
|
</tr>");
|
|
|
|
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<button onclick="download()" class="largebutton">Download</button>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<p>
|
2020-01-16 19:22:16 +00:00
|
|
|
Pepperminty Wiki was built by <a href="https://starbeamrainbowlabs.com/"><img src="https://starbeamrainbowlabs.com/images/sbrl/SBRL-Small-64.png" class="logo" aria-hidden="true" /> Starbeamrainbowlabs</a>. The code is available on <a href="//github.com/sbrl/pepperminty-wiki">GitHub</a>.
|
2018-10-31 16:44:34 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2020-01-16 19:22:16 +00:00
|
|
|
Other contributors: <a href="https://github.com/ikisler"><img src="https://avatars2.githubusercontent.com/u/12506147?v=3&s=32" class="logo" aria-hidden="true" /> @ikisler</a>
|
2018-10-31 16:44:34 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<!------------------->
|
|
|
|
<link rel="stylesheet" href="//starbeamrainbowlabs.com/theme/basic.css" />
|
|
|
|
<style>
|
2020-01-16 19:17:54 +00:00
|
|
|
:root {
|
|
|
|
--bg-colour: #eee8f2;
|
|
|
|
--text-colour: #442772;
|
|
|
|
--link-colour: #9e7eb4;
|
|
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
--bg-colour: hsl(273, 15%, 16%);
|
|
|
|
/* --bg-colour: hsl(270, 29%, 28%); */
|
|
|
|
--text-colour: hsl(274, 75%, 81%);
|
2020-01-16 19:22:16 +00:00
|
|
|
--link-colour: #b598c9;
|
2020-01-16 19:17:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
body { padding: 1rem; color: var(--text-colour); background-color: var(--bg-colour); } /* syntaxtic gets confused sometimes */
|
|
|
|
a { color: var(--link-colour); }
|
2018-10-31 16:44:34 +00:00
|
|
|
.largebutton { font-size: 2rem; }
|
|
|
|
|
|
|
|
.logo { max-width: 1.25em; vertical-align: middle; }
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script>
|
2020-01-16 19:22:16 +00:00
|
|
|
function select(state) {
|
2018-10-31 16:44:34 +00:00
|
|
|
var checkboxes = document.querySelectorAll("input[type=checkbox]");
|
|
|
|
for(var i = 0; i < checkboxes.length; i++)
|
|
|
|
{
|
|
|
|
checkboxes[i].checked = state;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-16 19:22:16 +00:00
|
|
|
function download() {
|
2018-10-31 16:44:34 +00:00
|
|
|
var url = "pack.php?web=true&modules=",
|
|
|
|
checkboxes = document.querySelectorAll("input[type=checkbox]");
|
|
|
|
for(var i = 0; i < checkboxes.length; i++) {
|
|
|
|
if(!checkboxes[i].checked) continue;
|
|
|
|
url += encodeURIComponent(checkboxes[i].id) + ",";
|
|
|
|
}
|
|
|
|
location.href = url;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|