BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user.php 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. <?php
  2. #declare(strict_types = 1);
  3. $Orders = ['Time', 'Name', 'Seeders', 'Leechers', 'Snatched', 'Size'];
  4. $Ways = ['DESC' => 'Descending', 'ASC' => 'Ascending'];
  5. // The "order by x" links on columns headers
  6. function header_link($SortKey, $DefaultWay = 'DESC')
  7. {
  8. global $Order, $Way;
  9. if ($SortKey === $Order) {
  10. if ($Way === 'DESC') {
  11. $NewWay = 'ASC';
  12. } else {
  13. $NewWay = 'DESC';
  14. }
  15. } else {
  16. $NewWay = $DefaultWay;
  17. }
  18. return "torrents.php?way=$NewWay&amp;order=$SortKey&amp;" . Format::get_url(array('way','order'));
  19. }
  20. $UserID = $_GET['userid'];
  21. if (!is_number($UserID)) {
  22. error(0);
  23. }
  24. if (!empty($_GET['page']) && is_number($_GET['page']) && $_GET['page'] > 0) {
  25. $Page = $_GET['page'];
  26. $Limit = ($Page - 1) * TORRENTS_PER_PAGE.', '.TORRENTS_PER_PAGE;
  27. } else {
  28. $Page = 1;
  29. $Limit = TORRENTS_PER_PAGE;
  30. }
  31. if (!empty($_GET['order']) && in_array($_GET['order'], $Orders)) {
  32. $Order = $_GET['order'];
  33. } else {
  34. $Order = 'Time';
  35. }
  36. if (!empty($_GET['way']) && array_key_exists($_GET['way'], $Ways)) {
  37. $Way = $_GET['way'];
  38. } else {
  39. $Way = 'DESC';
  40. }
  41. $SearchWhere = [];
  42. if (!empty($_GET['format'])) {
  43. if (in_array($_GET['format'], $Formats)) {
  44. $SearchWhere[] = "t.Format = '".db_string($_GET['format'])."'";
  45. }
  46. }
  47. # Get release specifics
  48. if (isset($_GET['container'])
  49. && in_array($_GET['container'], array_unique(array_merge($SeqFormats, $ProtFormats, $GraphXmlFormats, $GraphTxtFormats, $ImgFormats, $MapVectorFormats, $MapRasterFormats, $BinDocFormats, $CpuGenFormats, $PlainFormats)))) {
  50. $SearchWhere[] = "t.Container = '".db_string($_GET['container'])."'";
  51. }
  52. if (isset($_GET['bitrate'])
  53. && in_array($_GET['bitrate'], $Bitrates)) {
  54. $SearchWhere[] = "t.Encoding = '".db_string($_GET['bitrate'])."'";
  55. }
  56. if (isset($_GET['media'])
  57. && in_array($_GET['media'], array_unique(array_merge($SeqPlatforms, $GraphPlatforms, $ImgPlatforms, $DocPlatforms, $RawPlatforms)))) {
  58. $SearchWhere[] = "t.Media = '".db_string($_GET['media'])."'";
  59. }
  60. if (isset($_GET['codec'])
  61. && in_array($_GET['codec'], $Codecs)) {
  62. $SearchWhere[] = "t.Codec = '".db_string($_GET['codec'])."'";
  63. }
  64. if (isset($_GET['version']) {
  65. $SearchWhere[] = "t.Version = '".db_string($_GET['version'])."'";
  66. }
  67. if (isset($_GET['resolution'])
  68. && in_array($_GET['resolution'], $Resolutions)) {
  69. $SearchWhere[] = "t.Resolution = '".db_string($_GET['resolution'])."'";
  70. }
  71. if (isset($_GET['censored'])
  72. && in_array($_GET['censored'], array(1, 0))) {
  73. $SearchWhere[] = "t.Censored = '".db_string($_GET['censored'])."'";
  74. }
  75. if (!empty($_GET['categories'])) {
  76. $Cats = [];
  77. foreach (array_keys($_GET['categories']) as $Cat) {
  78. if (!is_number($Cat)) {
  79. error(0);
  80. }
  81. $Cats[] = "tg.CategoryID = '".db_string($Cat)."'";
  82. }
  83. $SearchWhere[] = '('.implode(' OR ', $Cats).')';
  84. }
  85. if (!isset($_GET['tags_type'])) {
  86. $_GET['tags_type'] = '1';
  87. }
  88. if (!empty($_GET['tags'])) {
  89. $Tags = explode(',', $_GET['tags']);
  90. $TagList = [];
  91. foreach ($Tags as $Tag) {
  92. $Tag = trim(str_replace('.', '_', $Tag));
  93. if (empty($Tag)) {
  94. continue;
  95. }
  96. if ($Tag[0] === '!') {
  97. $Tag = ltrim(substr($Tag, 1));
  98. if (empty($Tag)) {
  99. continue;
  100. }
  101. $TagList[] = "tg.TagList NOT RLIKE '[[:<:]]".db_string($Tag)."(:[^ ]+)?[[:>:]]'";
  102. } else {
  103. $TagList[] = "tg.TagList RLIKE '[[:<:]]".db_string($Tag)."(:[^ ]+)?[[:>:]]'";
  104. }
  105. }
  106. if (!empty($TagList)) {
  107. if (isset($_GET['tags_type']) && $_GET['tags_type'] !== '1') {
  108. $_GET['tags_type'] = '0';
  109. $SearchWhere[] = '('.implode(' OR ', $TagList).')';
  110. } else {
  111. $_GET['tags_type'] = '1';
  112. $SearchWhere[] = '('.implode(' AND ', $TagList).')';
  113. }
  114. }
  115. }
  116. $SearchWhere = implode(' AND ', $SearchWhere);
  117. if (!empty($SearchWhere)) {
  118. $SearchWhere = " AND $SearchWhere";
  119. }
  120. $User = Users::user_info($UserID);
  121. $Perms = Permissions::get_permissions($User['PermissionID']);
  122. $UserClass = $Perms['Class'];
  123. switch ($_GET['type']) {
  124. case 'snatched':
  125. if (!check_paranoia('snatched', $User['Paranoia'], $UserClass, $UserID)) {
  126. error(403);
  127. }
  128. $Time = 'xs.tstamp';
  129. $UserField = 'xs.uid';
  130. $ExtraWhere = '';
  131. $From = "
  132. xbt_snatched AS xs
  133. JOIN torrents AS t ON t.ID = xs.fid";
  134. break;
  135. case 'seeding':
  136. if (!check_paranoia('seeding', $User['Paranoia'], $UserClass, $UserID)) {
  137. error(403);
  138. }
  139. $Time = '(xfu.mtime - xfu.timespent)';
  140. $UserField = 'xfu.uid';
  141. $ExtraWhere = '
  142. AND xfu.active = 1
  143. AND xfu.Remaining = 0';
  144. $From = "
  145. xbt_files_users AS xfu
  146. JOIN torrents AS t ON t.ID = xfu.fid";
  147. break;
  148. case 'contest':
  149. $Time = 'unix_timestamp(t.Time)';
  150. $UserField = 't.UserID';
  151. $ExtraWhere = "
  152. AND t.ID IN (
  153. SELECT TorrentID
  154. FROM library_contest
  155. WHERE UserID = $UserID
  156. )";
  157. $From = 'torrents AS t';
  158. break;
  159. case 'leeching':
  160. if (!check_paranoia('leeching', $User['Paranoia'], $UserClass, $UserID)) {
  161. error(403);
  162. }
  163. $Time = '(xfu.mtime - xfu.timespent)';
  164. $UserField = 'xfu.uid';
  165. $ExtraWhere = '
  166. AND xfu.active = 1
  167. AND xfu.Remaining > 0';
  168. $From = "
  169. xbt_files_users AS xfu
  170. JOIN torrents AS t ON t.ID = xfu.fid";
  171. break;
  172. case 'uploaded':
  173. if ((empty($_GET['filter']) || $_GET['filter'] !== 'perfectflac') && !check_paranoia('uploads', $User['Paranoia'], $UserClass, $UserID)) {
  174. error(403);
  175. }
  176. $Time = 'unix_timestamp(t.Time)';
  177. $UserField = 't.UserID';
  178. $ExtraWhere = '';
  179. $From = "torrents AS t";
  180. break;
  181. case 'downloaded':
  182. if (!check_perms('site_view_torrent_snatchlist')) {
  183. error(403);
  184. }
  185. $Time = 'unix_timestamp(ud.Time)';
  186. $UserField = 'ud.UserID';
  187. $ExtraWhere = '';
  188. $From = "
  189. users_downloads AS ud
  190. JOIN torrents AS t ON t.ID = ud.TorrentID";
  191. break;
  192. default:
  193. error(404);
  194. }
  195. if (empty($GroupBy)) {
  196. $GroupBy = 't.ID';
  197. }
  198. if ((empty($_GET['search'])
  199. || trim($_GET['search']) === '')) { // && $Order !== 'Name') {
  200. $SQL = "
  201. SELECT
  202. SQL_CALC_FOUND_ROWS
  203. t.GroupID,
  204. t.ID AS TorrentID,
  205. $Time AS Time,
  206. COALESCE(NULLIF(tg.Name, ''), NULLIF(tg.Title2, ''), tg.NameJP) AS Name,
  207. tg.CategoryID
  208. FROM $From
  209. JOIN torrents_group AS tg ON tg.ID = t.GroupID
  210. WHERE $UserField = '$UserID'
  211. $ExtraWhere
  212. $SearchWhere
  213. GROUP BY $GroupBy
  214. ORDER BY $Order $Way
  215. LIMIT $Limit";
  216. } else {
  217. $DB->query("
  218. CREATE TEMPORARY TABLE temp_sections_torrents_user (
  219. GroupID int(10) unsigned not null,
  220. TorrentID int(10) unsigned not null,
  221. Time int(12) unsigned not null,
  222. CategoryID int(3) unsigned,
  223. Seeders int(6) unsigned,
  224. Leechers int(6) unsigned,
  225. Snatched int(10) unsigned,
  226. Name mediumtext,
  227. Size bigint(12) unsigned,
  228. PRIMARY KEY (TorrentID)) CHARSET=utf8");
  229. $DB->query("
  230. INSERT IGNORE INTO temp_sections_torrents_user
  231. SELECT
  232. t.GroupID,
  233. t.ID AS TorrentID,
  234. $Time AS Time,
  235. tg.CategoryID,
  236. t.Seeders,
  237. t.Leechers,
  238. t.Snatched,
  239. CONCAT_WS(' ', GROUP_CONCAT(ag.Name SEPARATOR ' '), ' ', COALESCE(NULLIF(tg.Name,''), NULLIF(tg.Title2,''), tg.NameJP), ' ', tg.Year, ' ') AS Name,
  240. t.Size
  241. FROM $From
  242. JOIN torrents_group AS tg ON tg.ID = t.GroupID
  243. LEFT JOIN torrents_artists AS ta ON ta.GroupID = tg.ID
  244. LEFT JOIN artists_group AS ag ON ag.ArtistID = ta.ArtistID
  245. WHERE $UserField = '$UserID'
  246. $ExtraWhere
  247. $SearchWhere
  248. GROUP BY TorrentID, Time");
  249. if (!empty($_GET['search']) && trim($_GET['search']) !== '') {
  250. $Words = array_unique(explode(' ', db_string($_GET['search'])));
  251. }
  252. $SQL = "
  253. SELECT
  254. SQL_CALC_FOUND_ROWS
  255. GroupID,
  256. TorrentID,
  257. Time,
  258. CategoryID
  259. FROM temp_sections_torrents_user";
  260. if (!empty($Words)) {
  261. $SQL .= "
  262. WHERE Name LIKE '%".implode("%' AND Name LIKE '%", $Words)."%'";
  263. }
  264. $SQL .= "
  265. ORDER BY $Order $Way
  266. LIMIT $Limit";
  267. }
  268. $DB->query($SQL);
  269. $GroupIDs = $DB->collect('GroupID');
  270. $TorrentsInfo = $DB->to_array('TorrentID', MYSQLI_ASSOC);
  271. $DB->query('SELECT FOUND_ROWS()');
  272. list($TorrentCount) = $DB->next_record();
  273. $Results = Torrents::get_groups($GroupIDs);
  274. $Action = display_str($_GET['type']);
  275. $User = Users::user_info($UserID);
  276. View::show_header($User['Username']."'s $Action torrents", 'browse');
  277. $Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
  278. ?>
  279. <div>
  280. <div class="header">
  281. <h2>
  282. <a href="user.php?id=<?= $UserID ?>"><?= $User['Username'] ?></a>
  283. <?= "'s $Action torrents" ?>
  284. </h2>
  285. </div>
  286. <div class="box pad">
  287. <form class="search_form" name="torrents" action="" method="get">
  288. <table class="layout">
  289. <!-- Terms -->
  290. <tr>
  291. <td class="label"><strong>Search Terms</strong></td>
  292. <td>
  293. <input type="hidden" name="type"
  294. value="<?= $_GET['type'] ?>" />
  295. <input type="hidden" name="userid"
  296. value="<?= $UserID ?>" />
  297. <input type="search" name="search" size="60"
  298. value="<?php Format::form('search') ?>" />
  299. </td>
  300. </tr>
  301. <!--
  302. Specifics
  303. todo: Make like the Seq/Img Format fields in browse.php
  304. -->
  305. <tr>
  306. <td class="label"><strong>Specifics</strong></td>
  307. <td class="nobr" colspan="3">
  308. <select id="container" name="container" class="ft_container">
  309. <option value="">Format</option>
  310. <?php foreach ($Containers as $Key => $ContainerName) { ?>
  311. <option value="<?= display_str($Key); ?>" <?php Format::selected('container', $Key) ?>><?= display_str($Key); ?>
  312. </option>
  313. <?php } ?>
  314. </select>
  315. <select id="codec" name="codec" class="ft_codec">
  316. <option value="">License</option>
  317. <?php foreach ($Codecs as $CodecName) { ?>
  318. <option value="<?= display_str($CodecName); ?>" <?php Format::selected('codec', $CodecName) ?>><?= display_str($CodecName); ?>
  319. </option>
  320. <?php } ?>
  321. </select>
  322. <select id="resolution" name="resolution" class="ft_resolution">
  323. <option value="">Scope</option>
  324. <?php foreach ($Resolutions as $ResolutionName) { ?>
  325. <option value="<?= display_str($ResolutionName); ?>"
  326. <?php Format::selected('resolution', $ResolutionName) ?>><?= display_str($ResolutionName); ?>
  327. </option>
  328. <?php } ?>
  329. </select>
  330. <select name="media" class="ft_media">
  331. <option value="">Platform</option>
  332. <?php foreach ($Media as $MediaName) { ?>
  333. <option value="<?= display_str($MediaName); ?>" <?php Format::selected('media', $MediaName) ?>><?= display_str($MediaName); ?>
  334. </option>
  335. <?php } ?>
  336. </select>
  337. </td>
  338. </tr>
  339. <!-- Misc -->
  340. <tr>
  341. <td class="label"><strong>Misc</strong></td>
  342. <td class="nobr" colspan="3">
  343. <select name="censored" class="ft_censored">
  344. <option value="3">Alignment</option>
  345. <option value="1" <?Format::selected('censored', 1)?>>
  346. Aligned
  347. </option>
  348. <option value="0" <?Format::selected('censored', 0)?>>
  349. Not Aligned
  350. </option>
  351. </select>
  352. </td>
  353. </tr>
  354. <!-- Tags -->
  355. <tr>
  356. <td class="label"><strong>Tags</strong></td>
  357. <td>
  358. <input type="search" name="tags" size="60"
  359. value="<?php Format::form('tags') ?>" />&nbsp;
  360. <input type="radio" name="tags_type" id="tags_type0" value="0" <?php Format::selected('tags_type', 0, 'checked') ?>
  361. /><label for="tags_type0"> Any</label>&nbsp;&nbsp;
  362. <input type="radio" name="tags_type" id="tags_type1" value="1" <?php Format::selected('tags_type', 1, 'checked') ?>
  363. /><label for="tags_type1"> All</label><br />
  364. Use !tag to exclude tags
  365. </td>
  366. </tr>
  367. <!-- Order By -->
  368. <tr>
  369. <td class="label"><strong>Order By</strong></td>
  370. <td>
  371. <select name="order" class="ft_order_by">
  372. <?php foreach ($Orders as $OrderText) { ?>
  373. <option value="<?= $OrderText ?>" <?php Format::selected('order', $OrderText) ?>><?= $OrderText ?>
  374. </option>
  375. <?php } ?>
  376. </select>
  377. <select name="way" class="ft_order_way">
  378. <?php foreach ($Ways as $WayKey=>$WayText) { ?>
  379. <option value="<?= $WayKey ?>" <?php Format::selected('way', $WayKey) ?>><?= $WayText ?>
  380. </option>
  381. <?php } ?>
  382. </select>
  383. </td>
  384. </tr>
  385. </table>
  386. <!-- Categories -->
  387. <table class="layout cat_list">
  388. <?php
  389. $x = 0;
  390. reset($Categories);
  391. foreach ($Categories as $CatKey => $CatName) {
  392. if ($x % 7 === 0) {
  393. if ($x > 0) { ?>
  394. </tr>
  395. <?php } ?>
  396. <tr>
  397. <?php
  398. }
  399. $x++; ?>
  400. <td>
  401. <input type="checkbox"
  402. name="categories[<?= ($CatKey+1) ?>]"
  403. id="cat_<?= ($CatKey+1) ?>" value="1" <?php if (isset($_GET['categories'][$CatKey + 1])) { ?>
  404. checked="checked"<?php } ?> />
  405. <label for="cat_<?= ($CatKey + 1) ?>"><?= $CatName ?></label>
  406. </td>
  407. <?php
  408. } ?>
  409. </tr>
  410. </table>
  411. <!-- Submit -->
  412. <div class="submit">
  413. <span class="float_left">
  414. <?= number_format($TorrentCount) ?>
  415. Results
  416. </span>
  417. <input type="submit" value="Search" />
  418. </div>
  419. </form>
  420. </div>
  421. <!-- Results table -->
  422. <?php if (count($GroupIDs) === 0) { ?>
  423. <div class="center">
  424. Nothing found!
  425. </div>
  426. <?php } else { ?>
  427. <div class="linkbox">
  428. <?=$Pages?>
  429. </div>
  430. <div class="box">
  431. <table class="torrent_table cats" width="100%">
  432. <tr class="colhead">
  433. <td class="cats_col"></td>
  434. <td>
  435. <a
  436. href="<?= header_link('Name', 'ASC') ?>">Torrent</a>
  437. </td>
  438. <td>
  439. <a
  440. href="<?= header_link('Time') ?>">Time</a>
  441. </td>
  442. <td>
  443. <a
  444. href="<?= header_link('Size') ?>">Size</a>
  445. </td>
  446. <td class="sign snatches">
  447. <a
  448. href="<?= header_link('Snatched') ?>">↻</a>
  449. </td>
  450. <td class="sign seeders">
  451. <a
  452. href="<?= header_link('Seeders') ?>">&uarr;</a>
  453. </td>
  454. <td class="sign leechers">
  455. <a
  456. href="<?= header_link('Leechers') ?>">&darr;</a>
  457. </td>
  458. </tr>
  459. <!-- Results list -->
  460. <?php
  461. $PageSize = 0;
  462. foreach ($TorrentsInfo as $TorrentID => $Info) {
  463. list($GroupID, , $Time) = array_values($Info);
  464. extract(Torrents::array_group($Results[$GroupID]));
  465. $Torrent = $Torrents[$TorrentID];
  466. $TorrentTags = new Tags($TagList);
  467. # This is the torrent list formatting!
  468. $DisplayName = '';
  469. $DisplayName .= '<a class="torrent_title" href="torrents.php?id='.$GroupID.'&amp;torrentid='.$TorrentID.'" ';
  470. # No cover art
  471. if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
  472. $DisplayName .= 'data-cover="'.ImageTools::process($WikiImage, 'thumb').'" ';
  473. }
  474. # Old concatenated title: EN, JP, RJ
  475. #$GroupName = empty($GroupName) ? (empty($GroupTitle2) ? $GroupNameJP : $GroupTitle2) : $GroupName;
  476. $DisplayName .= 'dir="ltr">'.$GroupName.'</a>';
  477. # Year
  478. if ($GroupYear) {
  479. $Label = '<br />📅&nbsp;';
  480. $DisplayName .= $Label."<a href='torrents.php?action=search&year=$GroupYear'>$GroupYear</a>";
  481. }
  482. # Studio
  483. if ($GroupStudio) {
  484. $Label = '&ensp;📍&nbsp;';
  485. $DisplayName .= $Label."<a href='torrents.php?action=search&location=$GroupStudio'>$GroupStudio</a>";
  486. }
  487. # Catalogue Number
  488. if ($GroupCatalogueNumber) {
  489. $Label = '&ensp;🔑&nbsp;';
  490. $DisplayName .= $Label."<a href='torrents.php?action=search&numbers=$GroupCatalogueNumber'>$GroupCatalogueNumber</a>";
  491. }
  492. # Organism
  493. if ($GroupTitle2) {
  494. $Label = '&ensp;🦠&nbsp;';
  495. $DisplayName .= $Label."<a href='torrents.php?action=search&advgroupname=$GroupTitle2'><em>$GroupTitle2</em></a>";
  496. }
  497. # Strain/Variety
  498. if ($GroupNameJP) {
  499. $Label = '&nbsp;';
  500. $DisplayName .= $Label."<a href='torrents.php?action=search&advgroupname=$GroupNameJP'>$GroupNameJP</a>";
  501. }
  502. # Authors
  503. if (isset($Artists)) {
  504. # Emoji in classes/astists.class.php
  505. $Label = '&ensp;';
  506. $DisplayName .= $Label.'<div class="torrent_artists">'.Artists::display_artists($Artists).'</div>';
  507. }
  508. ?>
  509. <tr
  510. class="torrent torrent_row<?= ($Torrent['IsSnatched'] ? ' snatched_torrent' : '') . ($GroupFlags['IsSnatched'] ? ' snatched_group' : '') ?>">
  511. <td class="center cats_col">
  512. <div
  513. title="<?= Format::pretty_category($GroupCategoryID) ?>"
  514. class="tooltip <?= Format::css_category($GroupCategoryID) ?>">
  515. </div>
  516. </td>
  517. <td class="big_info">
  518. <div class="group_info clear">
  519. <span class="torrent_links_block">
  520. [ <a
  521. href="torrents.php?action=download&amp;id=<?= $TorrentID ?>&amp;authkey=<?= $LoggedUser['AuthKey'] ?>&amp;torrent_pass=<?= $LoggedUser['torrent_pass'] ?>"
  522. class="tooltip" title="Download">DL</a>
  523. | <a
  524. href="reportsv2.php?action=report&amp;id=<?= $TorrentID ?>"
  525. class="tooltip" title="Report">RP</a> ]
  526. </span>
  527. <?= "$DisplayName\n"; ?>
  528. <?php
  529. $ExtraInfo = Torrents::torrent_info($Torrent);
  530. if ($ExtraInfo) {
  531. echo "<br />$ExtraInfo";
  532. } ?>
  533. <div class="tags"><?= $TorrentTags->format('torrents.php?type='.$Action.'&amp;userid='.$UserID.'&amp;tags=') ?>
  534. </div>
  535. </div>
  536. </td>
  537. <td class="nobr"><?= time_diff($Time, 1) ?>
  538. </td>
  539. <td class="number_column nobr"><?= Format::get_size($Torrent['Size']) ?>
  540. </td>
  541. <td class="number_column"><?= number_format($Torrent['Snatched']) ?>
  542. </td>
  543. <td
  544. class="number_column<?= (($Torrent['Seeders'] === 0) ? ' r00' : '') ?>">
  545. <?= number_format($Torrent['Seeders']) ?>
  546. </td>
  547. <td class="number_column"><?= number_format($Torrent['Leechers']) ?>
  548. </td>
  549. </tr>
  550. <?php
  551. } ?>
  552. </table>
  553. </div>
  554. <?php } ?>
  555. <div class="linkbox"><?= $Pages ?>
  556. </div>
  557. </div>
  558. <?php View::show_footer();