'flash.moe / now listening', 'do_fullscreen_header' => true, 'offset' => $offset, ]); ?> true, ]); return FM_HIT; } if($reqPath === '/home') { if($reqMethod !== 'GET') return FM_ERR | 405; if($reqHead) return FM_HIT; fm_component('header', [ 'title' => 'flash.moe / homepage', 'do_fullscreen_header' => true, ]); ?>
--
:
--
Week --  —  -----------
true, ]); return FM_HIT; } if($reqPath === '/test') { if($reqMethod !== 'GET') return FM_ERR | 405; if($reqHead) return FM_HIT; header('Content-Type: text/plain'); var_dump(FmProject::byFeatured()); return FM_HIT; } if($reqPath === '/') { if($reqMethod !== 'GET') return FM_ERR | 405; if($reqHead) return FM_HIT; $legacyPage = filter_input(INPUT_GET, 'p', FILTER_SANITIZE_STRING); if(!empty($legacyPage)) { $legacyPages = [ 'projects' => '/projects', 'contact' => '/contact', 'about' => '/', 'etc' => '/etc', 'hosted' => '/etc', 'friends' => '/related', ]; if(isset($legacyPages[$legacyPage])) { header('Location: ' . $legacyPages[$legacyPage]); return FM_HIT | 302; } } $blogInfo = cache_output('blog', 600, function() { return json_decode(file_get_contents('https://flash.moe/2020/?blog_dump')); }); $projInfo = cache_output('projects-featured', 300, function() { return json_decode(file_get_contents('https://flash.moe/2020/projects.php?dump_that_shit&rf')); }); shuffle($projInfo); $contact = [ [ 'id' => 'email', 'name' => 'E-mail', 'icon' => 'fmi fmi-email', 'display' => 'me@flash.moe', 'link' => 'mailto:me+contact@flash.moe', ], [ 'id' => 'flashii', 'name' => 'Flashii', 'icon' => 'fmi fmi-flashii', 'display' => 'flash', 'link' => '//flashii.net/profile.php?u=1', ], [ 'id' => 'twitter', 'name' => 'Twitter', 'icon' => 'fmi fmi-twitter', 'display' => '@smugwave', 'link' => '//twitter.com/smugwave', ], [ 'id' => 'github', 'name' => 'Github', 'icon' => 'fmi fmi-github', 'display' => 'flashwave', 'link' => '//github.com/flashwave', ], ]; fm_component('header', [ 'title' => 'flash.moe', 'is_index' => true, ]); ?>
true, ]); return FM_HIT; }