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.

details.php 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. # Line 22
  3. // Group details
  4. list($WikiBody, $WikiImage, $GroupID, $GroupName, $GroupNameRJ, $GroupNameJP, $GroupYear,
  5. $GroupStudio, $GroupSeries, $GroupCatalogueNumber, $GroupPages, $GroupCategoryID,
  6. $GroupDLsiteID, $GroupTime, $TorrentTags, $TorrentTagIDs, $TorrentTagUserIDs,
  7. $Screenshots, $Mirrors, $GroupFlags) = array_values($TorrentDetails);
  8. # Line 26
  9. ?>
  10. <!-- Line 967 -->
  11. <!-- Mirrors -->
  12. <div class="box torrent_mirrors_box <?php if (!count($Mirrors)) {
  13. echo 'dead';
  14. } ?>">
  15. <div class="head"><a href="#">&uarr;</a>&nbsp;<strong>
  16. Mirrors (<?= count($Mirrors) ?>)</strong>
  17. <?php
  18. if (count($Mirrors) > 0) {
  19. ?>
  20. <a class="float_right brackets" data-toggle-target=".torrent_mirrors" data-toggle-replace="Show">Hide</a>
  21. <?php
  22. }
  23. $DB->query("
  24. SELECT UserID
  25. FROM torrents
  26. WHERE GroupID = $GroupID");
  27. if (in_array($LoggedUser['ID'], $DB->collect('UserID'))
  28. || check_perms('torrents_edit')
  29. || check_perms('screenshots_add')
  30. || check_perms('screenshots_delete')) {
  31. ?>
  32. <a class="brackets"
  33. href="torrents.php?action=editgroup&groupid=<?=$GroupID?>#mirrors_section">Add/Remove</a>
  34. <?php
  35. }
  36. ?>
  37. </div>
  38. <div class="body torrent_mirrors">
  39. <?php if (!empty($Mirrors)) {
  40. echo '<p>Mirror links open in a new tab.</p>';
  41. } ?>
  42. <ul>
  43. <?php
  44. foreach ($Mirrors as $Mirror) {
  45. echo '<li><a href="'.$Mirror['Resource'].'" target="_blank">'.$Mirror['Resource'].'</a></li>';
  46. }
  47. ?>
  48. </ul>
  49. </div>
  50. </div>
  51. <?php
  52. # Line 1005