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.

torrent_form.class.php 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?php
  2. class TorrentForm
  3. {
  4. # Line 13
  5. public $Containers = [];
  6. public $ContainersGames = [];
  7. public $ContainersProt = [];
  8. public $ContainersExtra = [];
  9. # Line 16
  10. public function __construct($Torrent = false, $Error = false, $NewTorrent = true)
  11. {
  12. # Line 45
  13. $this->Containers = $Containers;
  14. $this->ContainersGames = $ContainersGames;
  15. $this->ContainersProt = $ContainersProt;
  16. $this->ContainersExtra = $ContainersExtra;
  17. # Line 48
  18. ?>
  19. <!-- Line 510 -->
  20. <!-- Multiple container fields -->
  21. <tr id="container_tr">
  22. <td class="label">
  23. Format
  24. <strong class="important_text">*</strong>
  25. </td>
  26. <td>
  27. <select id="container" name="container">
  28. <option value="Autofill">Autofill</option>
  29. <?php
  30. foreach ($this->Containers as $Name => $Container) {
  31. echo "\t\t\t\t\t\t<option value=\"$Name\"";
  32. if ($Name === ($Torrent['Container'] ?? false)) {
  33. echo " selected";
  34. }
  35. echo ">$Name</option>\n";
  36. } ?>
  37. </select><br />
  38. Data file format, or detect from file list
  39. </td>
  40. </tr>
  41. <!-- 2 -->
  42. <tr id="container_games_tr">
  43. <td class="label">
  44. Format
  45. <strong class="important_text">*</strong>
  46. </td>
  47. <td>
  48. <select id="container" name="container">
  49. <option value="Autofill">Autofill</option>
  50. <?php
  51. foreach ($this->ContainersGames as $Name => $Container) {
  52. echo "\t\t\t\t\t\t<option value=\"$Name\"";
  53. if ($Name === ($Torrent['Container'] ?? false)) {
  54. echo " selected";
  55. }
  56. echo ">$Name</option>\n";
  57. } ?>
  58. </select><br />
  59. Data file format, or detect from file list
  60. </td>
  61. </tr>
  62. <!-- 3 -->
  63. <tr id="container_prot_tr">
  64. <td class="label">
  65. Format
  66. <strong class="important_text">*</strong>
  67. </td>
  68. <td>
  69. <select id="container" name="container">
  70. <option value="Autofill">Autofill</option>
  71. <?php
  72. foreach ($this->ContainersProt as $Name => $Container) {
  73. echo "\t\t\t\t\t\t<option value=\"$Name\"";
  74. if ($Name === ($Torrent['Container'] ?? false)) {
  75. echo " selected";
  76. }
  77. echo ">$Name</option>\n";
  78. } ?>
  79. </select><br />
  80. Data file format, or detect from file list
  81. </td>
  82. </tr>
  83. <!-- 4 -->
  84. <tr id="container_extra_tr">
  85. <td class="label">
  86. Format
  87. <strong class="important_text">*</strong>
  88. </td>
  89. <td>
  90. <select id="container" name="container">
  91. <option value="Autofill">Autofill</option>
  92. <?php
  93. foreach ($this->ContainersExtra as $Name => $Container) {
  94. echo "\t\t\t\t\t\t<option value=\"$Name\"";
  95. if ($Name === ($Torrent['Container'] ?? false)) {
  96. echo " selected";
  97. }
  98. echo ">$Name</option>\n";
  99. } ?>
  100. </select><br />
  101. Data file format, or detect from file list
  102. </td>
  103. </tr>
  104. <!-- Compression -->
  105. <tr id="archive_tr">
  106. <td class="label">
  107. Archive
  108. <strong class="important_text">*</strong>
  109. </td>
  110. <td>
  111. <select id="archive" name="archive">
  112. <option value="Autofill">Autofill</option>
  113. <?php
  114. foreach ($this->Archives as $Name => $Archive) {
  115. echo "\t\t\t\t\t\t<option value=\"$Name\"";
  116. if ($Name === ($Torrent['Archive'] ?? false)) {
  117. echo " selected";
  118. }
  119. echo ">$Name</option>\n";
  120. } ?>
  121. </select><br />
  122. Compression algorithm, or detect from file list
  123. </td>
  124. </tr>
  125. <!-- Line 618 -->