Files
newznab-tmux/public/pages/rss-info.php
T
DariusIII 24fa162413 Apply fixes from StyleCI
[ci skip] [skip ci]
2017-08-31 09:31:28 +00:00

29 lines
778 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();