getTopMenus(); } public function getLeftMenus() { $authMenu = new AuthMenu(); return $authMenu->getLeftMenus(); } public function getAppInfo() { return new AppInfo(); } public function getServerInfo() { return [ 'cpu' => ServerInfo::cpu(), 'memory' => ServerInfo::memory(), 'disk' => ServerInfo::disk(), ]; } public function getGlobalStat() { $cache = new SiteGlobalStat(); return $cache->get(); } public function getTodayStat() { $cache = new SiteTodayStat(); return $cache->get(); } public function getModerationStat() { $cache = new ModerationStat(); return $cache->get(); } public function getReleases() { $url = 'https://koogua.com/api-releases.json'; $client = new Client(); $response = $client->get($url); $content = json_decode($response->getBody(), true); return $content['releases'] ?? []; } }