get('/contact.php', mkiRedirect('/contact')); $router->get('/contact.html', mkiRedirect('/contact')); $router->get('/nintendo', mkiRedirect('/contact')); $router->get('/nintendo.php', mkiRedirect('/contact')); $router->get('/contact', function() use ($db) { $contacts = (new Contacts($db))->getAll(); $body = fm_component('header', [ 'title' => 'flash.moe / contact', ]); $body .= <<

Contacts

HTML; foreach($contacts as $contact) { $body .= '
'; if($contact->hasLink()) { $body .= ''; } else { $body .= ''; } $body .= <<
HTML; } $body .= ''; $body .= fm_component('footer'); return $body; });