mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 02:08:57 +00:00
25 lines
535 B
PHP
25 lines
535 B
PHP
<?php
|
|
|
|
use nntmux\ReleaseFiles;
|
|
|
|
if (! $page->users->isLoggedIn()) {
|
|
$page->show403();
|
|
}
|
|
|
|
if (! isset($_REQUEST['id'])) {
|
|
$page->show404();
|
|
}
|
|
|
|
$rf = new ReleaseFiles();
|
|
$files = $rf->getByGuid($_REQUEST['id']);
|
|
|
|
if (count($files) === 0) {
|
|
echo 'No files';
|
|
} else {
|
|
echo "<ul>\n";
|
|
foreach ($files as $f) {
|
|
echo '<li>'.htmlentities($f['name'], ENT_QUOTES).' '.($f['passworded'] === 1 ? '<img width="12" src="'.WWW_TOP.'/themes/shared/images/icons/lock.gif" />' : '')."</li>\n";
|
|
}
|
|
echo '</ul>';
|
|
}
|