flash.moe/pages/etcetera.php

76 lines
2.4 KiB
PHP
Raw Normal View History

2020-07-30 00:55:37 +00:00
<?php
2022-02-04 20:30:52 +00:00
namespace Makai;
2022-02-05 03:35:42 +00:00
$router->get('/etc.php', mkiRedirect('/etc'));
$router->get('/etc.html', mkiRedirect('/etc'));
$router->get('/etcetera', mkiRedirect('/etc'));
$router->get('/etcetera.html', mkiRedirect('/etc'));
$router->get('/etcetera.php', mkiRedirect('/etc'));
$router->get('/misc', mkiRedirect('/etc'));
$router->get('/misc.html', mkiRedirect('/etc'));
$router->get('/misc.php', mkiRedirect('/etc'));
2020-07-30 00:55:37 +00:00
2022-02-05 03:35:42 +00:00
$router->get('/etc', function() {
2020-07-30 00:55:37 +00:00
$links = [
[
'title' => 'ASCII Table',
'desc' => 'ASCII character set table with minor filtering functionality.',
'link' => '//flash.moe/ascii.php',
],
2020-08-17 01:35:10 +00:00
[
'title' => 'IP Address Display',
'desc' => 'Looks up both your IPv4 and IPv6 addresses and display them to you.',
'link' => '//ip.flash.moe',
],
2020-07-30 00:55:37 +00:00
[
'title' => 'MIDI Collection',
'desc' => 'My collection of MIDI and SF2 files.',
'link' => '//flash.moe/midis',
],
[
'title' => 'Randomised Keys',
'desc' => 'Generates a number of random keys at various lengths using a secure random number generator.',
'link' => '//flash.moe/key.php',
],
2021-04-06 19:06:39 +00:00
[
'title' => 'Forum Archive',
'desc' => 'Temporary archive of the flash.moe message board.',
'link' => '//forum.flash.moe',
],
2020-07-30 00:55:37 +00:00
[
'title' => 'The Abyss',
'desc' => 'Accumulated collection of historical trash. Beware that the things here are unaltered products of their time.',
'link' => '//abyss.flash.moe',
],
];
2022-02-05 03:35:42 +00:00
$body = fm_component('header', [
2020-07-30 00:55:37 +00:00
'title' => 'flash.moe / etcetera',
]);
2022-02-05 03:35:42 +00:00
$body .= <<<HTML
<div class="section">
<div class="section-content">
<div class="section-background"></div>
<h1>Etcetera</h1>
</div>
</div>
HTML;
foreach($links as $link) {
$body .= <<<HTML
<div class="etcetera-item">
<div class="etcetera-item-content">
<a href="{$link['link']}" class="etcetera-item-link" rel="noopener" target="_blank"></a>
<h2>{$link['title']}</h2>
<p>{$link['desc']}</p>
2020-07-30 00:55:37 +00:00
</div>
2022-02-05 03:35:42 +00:00
</div>
HTML;
}
2020-07-30 00:55:37 +00:00
2022-02-05 03:35:42 +00:00
$body .= fm_component('footer');
2020-07-30 00:55:37 +00:00
2022-02-05 03:35:42 +00:00
return $body;
});