Files
newznab-tmux/public/pages/rss-info.php
T
2018-02-14 23:08:17 +01:00

29 lines
782 B
PHP
Executable File

<?php
use Blacklight\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();