Files
newznab-tmux/public/pages/rss-info.php
T

28 lines
765 B
PHP
Executable File

<?php
use nntmux\http\RSS;
$rss = new RSS(['Settings' => $page->settings]);
$page->title = "RSS Info";
$page->meta_title = "RSS Help Topics";
$page->meta_keywords = "view,nzb,api,details,help,json,rss,atom";
$page->meta_description = "View description of the site Nzb RSS.";
$firstShow = $rss->getFirstInstance('videos_id', 'releases', 'id');
$firstAni = $rss->getFirstInstance('anidbid', 'releases', 'id');
if (isset($firstShow['videos_id'])) {
$page->smarty->assign('show', $firstShow['videos_id']);
} else {
$page->smarty->assign('show', -1);
}
if (isset($firstAni['anidbid'])) {
$page->smarty->assign('anidb', $firstAni['anidbid']);
} else {
$page->smarty->assign('anidb', -1);
}
$page->content = $page->smarty->fetch('rssdesc.tpl');
$page->render();