flash.moe/pages/etcetera.php
2021-04-06 19:06:39 +00:00

73 lines
No EOL
2.5 KiB
PHP

<?php
if($reqPath === '/etc.php' || $reqPath === 'etc.html'
|| $reqPath === '/etcetera' || $reqPath === '/etcetera.html' || $reqPath === '/etcetera.php'
|| $reqPath === '/misc' || $reqPath === '/misc.html' || $reqPath === '/misc.php') {
if($reqMethod !== 'GET')
return FM_ERR | 405;
header('Location: /etc');
return FM_HIT | 302;
}
if($reqPath === '/etc') {
if($reqMethod !== 'GET')
return FM_ERR | 405;
if($reqHead)
return FM_HIT;
$links = [
[
'title' => 'ASCII Table',
'desc' => 'ASCII character set table with minor filtering functionality.',
'link' => '//flash.moe/ascii.php',
],
[
'title' => 'IP Address Display',
'desc' => 'Looks up both your IPv4 and IPv6 addresses and display them to you.',
'link' => '//ip.flash.moe',
],
[
'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',
],
[
'title' => 'Forum Archive',
'desc' => 'Temporary archive of the flash.moe message board.',
'link' => '//forum.flash.moe',
],
[
'title' => 'The Abyss',
'desc' => 'Accumulated collection of historical trash. Beware that the things here are unaltered products of their time.',
'link' => '//abyss.flash.moe',
],
];
fm_component('header', [
'title' => 'flash.moe / etcetera',
]);
?>
<div class="section">
<div class="section-content">
<div class="section-background"></div>
<h1>Etcetera</h1>
</div>
</div>
<?php foreach($links as $link): ?>
<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>
</div>
</div>
<?php
endforeach;
fm_component('footer');
return FM_HIT;
}