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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 name="container">
  28. <option value="">---</option>
  29. <option value="Autofill">Autofill</option>
  30. <?php
  31. foreach ($this->Containers as $Name => $Container) {
  32. echo "<option value='$Name'>$Name</option>\n";
  33. } ?>
  34. </select><br />
  35. Data file format, or detect from file list
  36. </td>
  37. </tr>
  38. <!-- 2 -->
  39. <tr id="container_games_tr">
  40. <td class="label">
  41. Format
  42. <strong class="important_text">*</strong>
  43. </td>
  44. <td>
  45. <select id="container" name="container">
  46. <option value="">---</option>
  47. <option value="Autofill">Autofill</option>
  48. <?php
  49. foreach ($this->ContainersGames as $Name => $Container) {
  50. echo "<option value='$Name'>$Name</option>\n";
  51. } ?>
  52. </select><br />
  53. Data file format, or detect from file list
  54. </td>
  55. </tr>
  56. <!-- 3 -->
  57. <tr id="container_prot_tr">
  58. <td class="label">
  59. Format
  60. <strong class="important_text">*</strong>
  61. </td>
  62. <td>
  63. <select id="container" name="container">
  64. <option value="">---</option>
  65. <option value="Autofill">Autofill</option>
  66. <?php
  67. foreach ($this->ContainersProt as $Name => $Container) {
  68. echo "<option value='$Name'>$Name</option>\n";
  69. } ?>
  70. </select><br />
  71. Data file format, or detect from file list
  72. </td>
  73. </tr>
  74. <!-- 4 -->
  75. <tr id="container_extra_tr">
  76. <td class="label">
  77. Format
  78. <strong class="important_text">*</strong>
  79. </td>
  80. <td>
  81. <select id="container" name="container">
  82. <option value="">---</option>
  83. <option value="Autofill">Autofill</option>
  84. <?php
  85. foreach ($this->ContainersExtra as $Name => $Container) {
  86. echo "<option value='$Name'>$Name</option>\n";
  87. } ?>
  88. </select><br />
  89. Data file format, or detect from file list
  90. </td>
  91. </tr>
  92. <!-- Compression -->
  93. <tr id="archive_tr">
  94. <td class="label">
  95. Archive
  96. <strong class="important_text">*</strong>
  97. </td>
  98. <td>
  99. <select name='archive'>
  100. <option value="">---</option>
  101. <option value="Autofill">Autofill</option>
  102. <?php
  103. foreach ($this->Archives as $Name => $Archive) {
  104. echo "\t\t\t\t\t\t<option value=\"$Name\"";
  105. if ($Archive === ($Torrent['Archive'] ?? false)) {
  106. echo ' selected';
  107. }
  108. echo ">$Name</option>\n";
  109. } ?>
  110. </select><br />
  111. Compression algorithm, or detect from file list
  112. </td>
  113. </tr>
  114. <!-- Line 607 -->