if ($limit <= 0 || $limit > $last + 1) { $limit = $last + 1; } } else { $limit = $last + 1; } $end = $last - $limit; // Obtain the strips $list = array(); for ($i = $last; $i > $end; $i--) { $list[$i] = Cache::getStrip($i); } // Obtain the language if (isset($_GET['lang'])) { $lang = $_GET['lang']; } else { $lang = Config::getLanguage(); } $lang = getLang($lang); // Navigation $nav_img = Config::getUrl() . '/' . Config::getIndex() . '?id='; // If necessary, obtain the forum data $wotd = ''; if (Config::getUseFluxbb() === true) { $wotd = Forum::getWotdRss($lang); } // show the template header('Content-Type: application/rss+xml'); echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>"; include_once Config::getTemplateFolder() . '/' . Config::getTemplateRss() . '/template.rss';