deaths.php

main 19 lines · 420 bytes Raw
Alex Alex Commit Initial commit 01/10/2026 09:20
1<?php require_once 'engine/init.php'; theme_open();
2$cache = new Cache('engine/cache/deaths');
3if ($cache->hasExpired()) {
4
5 if (in_array(znote_server_adapter()->normalizedEngine(), array('TFS_02', 'TFS_10'), true)) {
6 $deaths = fetchLatestDeaths();
7 } else {
8 $deaths = fetchLatestDeaths_03(30);
9 }
10 $cache->setContent($deaths);
11 $cache->save();
12} else {
13 $deaths = $cache->load();
14}
15
16view('deaths');
17
18theme_close();
19
Top