'flash.moe / now listening', 'do_fullscreen_header' => true, 'is_now_playing' => true, 'offset' => $offset, ]); fm_component('footer', [ 'hide' => true, 'onload' => [ ['fm.initIndex', 10], ], ]); 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, 'skip_analytics' => true, 'onload' => [ ['fm.initClock'], ['fm.initIndex', 10], ], ]); 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' => 'contact@flash.moe', 'link' => 'mailto: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, 'onload' => [ ['fm.initIndex'], ], ]); return FM_HIT; }