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')); $router->get('/etc', function() { $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', ], ]; $body = fm_component('header', [ 'title' => 'flash.moe / etcetera', ]); $body .= <<

Etcetera

HTML; foreach($links as $link) { $body .= <<

{$link['title']}

{$link['desc']}

HTML; } $body .= fm_component('footer'); return $body; });