mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 09:48:55 +00:00
24fa162413
[ci skip] [skip ci]
33 lines
805 B
PHP
33 lines
805 B
PHP
<?php
|
|
|
|
use nntmux\Videos;
|
|
use nntmux\Releases;
|
|
|
|
if (! $page->users->isLoggedIn()) {
|
|
$page->show403();
|
|
}
|
|
|
|
if (! isset($_REQUEST['id'])) {
|
|
$page->show404();
|
|
}
|
|
|
|
$r = new Releases();
|
|
$rel = $r->getByGuid($_REQUEST['id']);
|
|
|
|
if (! $rel) {
|
|
echo 'No tv info';
|
|
} else {
|
|
echo "<ul class=\"ui-tooltip-nntmux\">\n";
|
|
echo '<li>'.htmlentities($rel['title'], ENT_QUOTES)."</li>\n";
|
|
echo '<li>Aired on '.date('F j, Y', strtotime($rel['firstaired']))."</li>\n";
|
|
echo '</ul>';
|
|
|
|
if (isset($rel['videos_id']) && $rel['videos_id'] > 0) {
|
|
$t = new Videos();
|
|
$show = $t->getByVideoID($rel['videos_id']);
|
|
if (count($show) > 0 && (int) $show['image'] !== 0) {
|
|
echo '<img class="shadow" src="/covers/tvshows/'.$show['id'].'.jpg" width="180"/>';
|
|
}
|
|
}
|
|
}
|