• hasExpired()) { $cat = 4; // Category ID for feedback section $threads = db()->fetchAll("SELECT `id`, `player_id` FROM `znote_forum_threads` WHERE `forum_id` = ? AND `closed` = 0;", [$cat]); if ($threads !== false) { $staffs = db()->fetchAll("SELECT `id` FROM `players` WHERE `group_id` > 1;"); foreach($threads as $thread) { $response = false; $posts = db()->fetchAll("SELECT `id`, `player_id` FROM `znote_forum_posts` WHERE `thread_id` = ?;", [$thread['id']]); if ($posts !== false) { foreach($posts as $post) { foreach ($staffs as $staff) { if ($post['player_id'] == $staff['id']) $response = true; } } } if (!$response) $new++; } } $cache->setContent($new); $cache->save(); } else { $new = $cache->load(); } ?>
  • $new]) ?>