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 2.9KB

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