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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. <?php
  2. // This class is used in upload.php to display the upload form, and the edit
  3. // section of torrents.php to display a shortened version of the same form
  4. class TorrentForm
  5. {
  6. public $UploadForm = '';
  7. public $Categories = [];
  8. #var $Formats = [];
  9. #var $Bitrates = [];
  10. public $Media = [];
  11. public $MediaManga = [];
  12. public $Containers = [];
  13. public $ContainersGames = [];
  14. public $Codecs = [];
  15. public $Resolutions = [];
  16. #var $AudioFormats = [];
  17. #var $Subbing = [];
  18. #var $Languages = [];
  19. #var $Platform = [];
  20. public $NewTorrent = false;
  21. public $Torrent = [];
  22. public $Error = false;
  23. public $TorrentID = false;
  24. public $Disabled = '';
  25. public $DisabledFlag = false;
  26. public function __construct($Torrent = false, $Error = false, $NewTorrent = true)
  27. {
  28. $this->NewTorrent = $NewTorrent;
  29. $this->Torrent = $Torrent;
  30. $this->Error = $Error;
  31. global $UploadForm, $Categories, $Media, $MediaManga, $TorrentID, $Containers, $ContainersGames, $Codecs, $Resolutions, $Archives;
  32. #global $UploadForm, $Categories, $Formats, $Bitrates, $Media, $MediaManga, $TorrentID, $Containers, $ContainersGames, $Codecs, $Resolutions, $AudioFormats, $Subbing, $Languages, $Platform, $Archives, $ArchivesManga;
  33. $this->UploadForm = $UploadForm;
  34. $this->Categories = $Categories;
  35. #$this->Formats = $Formats;
  36. #$this->Bitrates = $Bitrates;
  37. $this->Media = $Media;
  38. $this->MediaManga = $MediaManga;
  39. $this->Containers = $Containers;
  40. $this->ContainersGames = $ContainersGames;
  41. $this->Codecs = $Codecs;
  42. $this->Resolutions = $Resolutions;
  43. #$this->AudioFormats = $AudioFormats;
  44. #$this->Subbing = $Subbing;
  45. #$this->Languages = $Languages;
  46. $this->TorrentID = $TorrentID;
  47. #$this->Platform = $Platform;
  48. $this->Archives = $Archives;
  49. #$this->ArchivesManga = $ArchivesManga;
  50. if ($this->Torrent && $this->Torrent['GroupID']) {
  51. $this->Disabled = ' readonly="readonly"';
  52. $this->DisabledFlag = true;
  53. }
  54. }
  55. public function head()
  56. {
  57. G::$DB->query("
  58. SELECT COUNT(ID)
  59. FROM torrents
  60. WHERE UserID = ?", G::$LoggedUser['ID']);
  61. list($Uploads) = G::$DB->next_record(); ?>
  62. <!-- Everything until the catalogue number field-->
  63. <div class="thin">
  64. <?php if ($this->NewTorrent) { ?>
  65. <p style="text-align: center;">
  66. If you would like to use your own torrent file, add the following to it.
  67. Otherwise, add none of it and redownload the torrent file after uploading it.
  68. All of the above data will be added to it by the site.
  69. <strong>If you never have before, be sure to read this list of <a href="wiki.php?action=article&name=uploadingpitfalls">uploading pitfalls</a></strong>.
  70. </p>
  71. <p style="text-align: center;">
  72. <?php
  73. $Announces = call_user_func_array('array_merge', ANNOUNCE_URLS);
  74. foreach ($Announces as $Announce) {
  75. # Loop through tracker URLs
  76. ?>
  77. <strong>Announce</strong>
  78. <input type="text" value="<?= $Announce . '/' . G::$LoggedUser['torrent_pass'] . '/announce' ?>"
  79. size="74" onclick="this.select();" readonly="readonly" /> <br />
  80. <?php
  81. } ?>
  82. <strong>Source</strong>
  83. <input type="text" value="<?= Users::get_upload_sources()[0] ?>" size="20"
  84. onclick="this.select();" readonly="readonly" />
  85. </p>
  86. <!-- Error display -->
  87. <p style="text-align: center;">
  88. <?php
  89. }
  90. if ($this->Error) {
  91. echo "\t".'<p style="color: red; text-align: center;">' . $this->Error . "</p>\n";
  92. } ?>
  93. </p>
  94. <!-- Torrent form hidden values -->
  95. <form class="create_form box pad" name="torrent" action="" enctype="multipart/form-data" method="post"
  96. onsubmit="$('#post').raw().disabled = 'disabled';">
  97. <div>
  98. <input type="hidden" name="submit" value="true" />
  99. <input type="hidden" name="auth"
  100. value="<?=G::$LoggedUser['AuthKey']?>" />
  101. <?php if (!$this->NewTorrent) { ?>
  102. <input type="hidden" name="action" value="takeedit" />
  103. <input type="hidden" name="torrentid"
  104. value="<?=display_str($this->TorrentID)?>" />
  105. <input type="hidden" name="type"
  106. value="<?=display_str($this->Torrent['CategoryID']-1)?>" />
  107. <?php
  108. } else {
  109. if ($this->Torrent && $this->Torrent['GroupID']) {
  110. # Find groups and requests
  111. ?>
  112. <input type="hidden" name="groupid"
  113. value="<?= display_str($this->Torrent['GroupID']) ?>" />
  114. <input type="hidden" name="type"
  115. value="<?= display_str($this->Torrent['CategoryID']-1) ?>" />
  116. <?php
  117. }
  118. if ($this->Torrent && ($this->Torrent['RequestID'] ?? false)) {
  119. ?>
  120. <input type="hidden" name="requestid"
  121. value="<?=display_str($this->Torrent['RequestID'])?>" />
  122. <?php
  123. }
  124. } ?>
  125. </div>
  126. <!-- New torrent options: file and category -->
  127. <?php if ($this->NewTorrent) { ?>
  128. <table cellpadding="3" cellspacing="1" border="0" class="layout" width="100%">
  129. <tr>
  130. <td class="label">Torrent File</td>
  131. <td><input id="file" type="file" name="file_input" size="50" /><br />
  132. Use the above announce URL and set the private flag in your BitTorrent client, e.g.,
  133. <pre>mktorrent -p -a &lt;announce&gt; &lt;target folder&gt;</pre>
  134. </td>
  135. </tr>
  136. <tr>
  137. <td class="label">Type</td>
  138. <td>
  139. <select id="categories" name="type" onchange="Categories()"
  140. <?= ($this->DisabledFlag) ? ' disabled="disabled"' : '' ?>>
  141. <?php
  142. foreach (Misc::display_array($this->Categories) as $Index => $Cat) {
  143. echo "\t\t\t\t\t\t<option value=\"$Index\"";
  144. if ($Cat == $this->Torrent['CategoryName']) {
  145. echo ' selected="selected"';
  146. }
  147. echo ">$Cat</option>\n";
  148. }
  149. ?>
  150. </select><br />
  151. What alphabet the sequence uses, n.b., plasmids fit in the Other category
  152. </td>
  153. </tr>
  154. </table>
  155. <!-- Start the dynamic form -->
  156. <?php } # if?>
  157. <div id="dynamic_form">
  158. <?php
  159. }
  160. public function foot()
  161. {
  162. $Torrent = $this->Torrent; ?>
  163. </div>
  164. <!-- Freeleech type -->
  165. <table cellpadding="3" cellspacing="1" border="0" class="layout slice" width="100%">
  166. <?php
  167. if (!$this->NewTorrent) {
  168. if (check_perms('torrents_freeleech')) {
  169. ?>
  170. <tr id="freetorrent">
  171. <td class="label">Freeleech</td>
  172. <td>
  173. <select name="freeleech">
  174. <?php
  175. $FL = array("Normal", "Free", "Neutral");
  176. foreach ($FL as $Key => $Name) {
  177. # Cycle types
  178. ?>
  179. <option value="<?= $Key ?>" <?= ($Key === $Torrent['FreeTorrent'] ? ' selected="selected"' : '') ?>><?= $Name ?>
  180. </option>
  181. <?php
  182. } ?>
  183. </select>
  184. because
  185. <select name="freeleechtype">
  186. <?php
  187. $FL = array("N/A", "Staff Pick", "Perma-FL", "Freeleechizer", "Site-Wide FL");
  188. foreach ($FL as $Key => $Name) {
  189. # Cycle reasons
  190. ?>
  191. <option value="<?=$Key?>" <?= ($Key === $Torrent['FreeLeechType'] ? ' selected="selected"' : '') ?>><?= $Name ?>
  192. </option>
  193. <?php
  194. } ?>
  195. </select>
  196. </td>
  197. </tr>
  198. <?php
  199. }
  200. } ?>
  201. <!-- Rules notice and submit button -->
  202. <tr>
  203. <td colspan="2" style="text-align: center;">
  204. <p>
  205. Be sure that your torrent is approved by the <a href="rules.php?p=upload" target="_blank">rules</a>.
  206. Not doing this will result in a <strong class="important_text">warning</strong> or <strong class="important_text">worse</strong>.
  207. </p>
  208. <?php if ($this->NewTorrent) { ?>
  209. <p>
  210. After uploading the torrent, you will have a one hour grace period during which no one other than you can fill requests with this torrent.
  211. Make use of this time wisely, and <a href="requests.php">search the list of requests</a>.
  212. </p>
  213. <?php } ?>
  214. <input id="post" type="submit"
  215. <?php
  216. if ($this->NewTorrent) {
  217. echo ' value="Upload"';
  218. } else {
  219. echo ' value="Edit"';
  220. } ?>
  221. />
  222. </td>
  223. </tr>
  224. </table>
  225. </form>
  226. </div>
  227. <!-- Okay, finally the real form -->
  228. <?php
  229. } # End
  230. public function upload_form()
  231. {
  232. $QueryID = G::$DB->get_query_id();
  233. $this->head();
  234. $Torrent = $this->Torrent; ?>
  235. <!-- Catalogue number field -->
  236. <table cellpadding="3" cellspacing="1" border="0" class="layout slice" width="100%">
  237. <?php if ($this->NewTorrent) { ?>
  238. <tr id="javdb_tr">
  239. <td class="label tooltip" title="">Accession Number</td>
  240. <td>
  241. <input type="text" id="catalogue" name="catalogue" size="10"
  242. value="<?= display_str($Torrent['CatalogueNumber']) ?>"
  243. <?= $this->Disabled ?>/>
  244. <?php if (!$this->DisabledFlag) { ?>
  245. <input type="button" autofill="jav" value="Autofill">
  246. </input>
  247. Coming Soon!<br />
  248. <!-- Autofill only supports RefSeq and UniProt; -->
  249. Enter any ID number that corresponds to the data,
  250. preferring RefSeq and UniProt
  251. <?php } ?>
  252. </td>
  253. </tr>
  254. <!-- Other autofill options -->
  255. <tr id="anidb_tr" class="hidden">
  256. <td class="label">AniDB Autofill (optional)</td>
  257. <td>
  258. <input type="text" id="anidb" size="10" <?= $this->Disabled ?>/>
  259. <?php if (!$this->DisabledFlag) { ?>
  260. <input type="button" autofill="anime" value="Autofill" />
  261. <?php } ?>
  262. </td>
  263. </tr>
  264. <tr id="ehentai_tr" class="hidden">
  265. <td class="label">e-hentai URL (optional)</td>
  266. <td>
  267. <input type="text" id="catalogue" size="50" <?= $this->Disabled ?> />
  268. <?php if (!$this->DisabledFlag) { ?>
  269. <input type="button" autofill="douj" value="Autofill" />
  270. <?php } ?>
  271. </td>
  272. </tr>
  273. <!-- Three title fields -->
  274. <tr id="title_tr">
  275. <td class="label">Torrent Title</td>
  276. <td>
  277. <input type="text" id="title" name="title" size="60"
  278. value="<?= display_str($Torrent['Title']) ?>"
  279. <?= $this->Disabled ?>/><br />
  280. Definition line, e.g., Alcohol dehydrogenase ADH1
  281. </td>
  282. </tr>
  283. <tr id="title_rj_tr">
  284. <td class="label" title="">Organism</td>
  285. <td>
  286. <input type="text" id="title_rj" name="title_rj" size="60"
  287. value="<?= display_str($Torrent['TitleRJ']) ?>"
  288. <?= $this->Disabled ?>/><br />
  289. Organism line binomial, e.g., <em>Saccharomyces cerevisiae</em>
  290. </td>
  291. </tr>
  292. <tr id="title_jp_tr">
  293. <td class="label">Strain/Variety</td>
  294. <td>
  295. <input type="text" id="title_jp" name="title_jp" size="60"
  296. value="<?= display_str($Torrent['TitleJP']) ?>"
  297. <?= $this->Disabled ?>/><br />
  298. Organism line if any, e.g., S288C
  299. </td>
  300. </tr>
  301. <!-- Multiple artists -->
  302. <tr id="idols_tr">
  303. <td class="label tooltip" title="">Authors(s)</td>
  304. <td id="idolfields">
  305. One per field, e.g., Robert K. Mortimer [+] David Schild<br />
  306. <?php
  307. if (!empty($Torrent['Artists'])) {
  308. foreach ($Torrent['Artists'] as $Num => $Artist) {
  309. ?>
  310. <input type="text" id="idols_<?= $Num ?>" name="idols[]"
  311. size="45" value="<?= display_str($Artist['name']) ?>"
  312. <?= $this->Disabled ?>/>
  313. <?php if ($Num === 0) { ?>
  314. <a class="add_artist_button brackets">+</a>
  315. <a class="remove_artist_button brackets">&minus;</a>
  316. <?php
  317. }
  318. }
  319. } else {
  320. ?>
  321. <input type="text" id="idols_0" name="idols[]" size="45" value="" <?= $this->Disabled ?> />
  322. <a class="add_artist_button brackets">+</a>
  323. <a class="remove_artist_button brackets">&minus;</a>
  324. <?php
  325. } ?>
  326. </td>
  327. </tr>
  328. <!-- Production studio -->
  329. <tr id="studio_tr">
  330. <td class="label">Department/Lab</td>
  331. <td>
  332. <input type="text" id="studio" name="studio" size="60"
  333. value="<?= display_str($Torrent['Studio']) ?>"
  334. <?= $this->Disabled ?>/><br />
  335. Last author's institution, e.g., Lawrence Berkeley Laboratory
  336. </td>
  337. </tr>
  338. <!-- Location -->
  339. <tr id="series_tr">
  340. <td class="label">Location</td>
  341. <td>
  342. <input type="text" id="series" name="series" size="60"
  343. value="<?= display_str($Torrent['Series']) ?>"
  344. <?= $this->Disabled ?>/><br />
  345. Physical location, e.g., Berkeley, CA 94720
  346. </td>
  347. </tr>
  348. <!-- Year -->
  349. <tr id="year_tr">
  350. <td class="label">Year</td>
  351. <td>
  352. <input type="text" id="year" name="year" maxlength="4" size="5"
  353. value="<?= display_str($Torrent['Year']) ?>"
  354. <?= $this->Disabled ?>/><br />
  355. Original publication year
  356. </td>
  357. </tr>
  358. <!-- Media type -->
  359. <?php } # Ends if NewTorrent line 256?>
  360. <tr id="media_tr">
  361. <td class="label">Platform</td>
  362. <td>
  363. <select name="media">
  364. <option>---</option>
  365. <?php
  366. foreach ($this->Media as $Media) {
  367. echo "\t\t\t\t\t\t<option value=\"$Media\"";
  368. if ($Media == ($Torrent['Media'] ?? false)) {
  369. echo " selected";
  370. }
  371. echo ">$Media</option>\n";
  372. } ?>
  373. </select><br />
  374. Class of technology used
  375. </td>
  376. </tr>
  377. <!-- Alternate media -->
  378. <tr id="media_manga_tr">
  379. <td class="label">Platform</td>
  380. <td>
  381. <select name="media">
  382. <option>---</option>
  383. <?php
  384. foreach ($this->MediaManga as $Media) {
  385. echo "\t\t\t\t\t\t<option value=\"$Media\"";
  386. if ($Media === ($Torrent['Media'] ?? false)) {
  387. echo " selected";
  388. }
  389. echo ">$Media</option>\n";
  390. } ?>
  391. </select><br />
  392. Class of technology used
  393. </td>
  394. </tr>
  395. <!-- Container -->
  396. <tr id="container_tr">
  397. <td class="label">Format</td>
  398. <td>
  399. <select name="container">
  400. <option>---</option>
  401. <?php
  402. foreach ($this->Containers as $Cont) {
  403. echo "\t\t\t\t\t\t<option value=\"$Cont\"";
  404. if ($Cont === ($Torrent['Container'] ?? false)) {
  405. echo " selected";
  406. }
  407. echo ">$Cont</option>\n";
  408. } ?>
  409. </select><br />
  410. Data file format
  411. </td>
  412. </tr>
  413. <!-- Alternate container -->
  414. <tr id="container_games_tr">
  415. <td class="label">Format</td>
  416. <td>
  417. <select id="container" name="container">
  418. <option>---</option>
  419. <?php
  420. foreach ($this->ContainersGames as $Container) {
  421. echo "\t\t\t\t\t\t<option value=\"$Container\"";
  422. if ($Container === ($Torrent['Container'] ?? false)) {
  423. echo " selected";
  424. }
  425. echo ">$Container</option>\n";
  426. } ?>
  427. </select><br />
  428. Data file format
  429. </td>
  430. </tr>
  431. <!-- Resolution -->
  432. <tr id="resolution_tr">
  433. <td class="label">Assembly Level</td>
  434. <td>
  435. <select id="ressel" name="ressel" onchange="SetResolution()">
  436. <option value="">---</option>
  437. <?php
  438. foreach ($this->Resolutions as $Res) {
  439. echo "\t\t\t\t\t\t<option value=\"$Res\"";
  440. if ($Res === ($Torrent['Resolution'] ?? false)
  441. || (!isset($FoundRes) && ($Torrent['Resolution'] ?? false)
  442. && $Res === 'Other')) {
  443. echo " selected";
  444. $FoundRes = true;
  445. }
  446. echo ">$Res</option>\n";
  447. } ?>
  448. </select>
  449. <input type="text" id="resolution" name="resolution" size="10" class="hidden"
  450. value="<?= ($Torrent['Resolution']??'') ?>"
  451. readonly>
  452. </input>
  453. <script>
  454. if ($('#ressel').raw().value == "Other") {
  455. $('#resolution').raw().readOnly = false
  456. $('#resolution').gshow()
  457. }
  458. </script><br />
  459. How complete the data is
  460. </td>
  461. </tr>
  462. <!-- Compression -->
  463. <tr id="archive_tr">
  464. <td class="label">Archive</td>
  465. <td>
  466. <select name='archive'>
  467. <option>---</option>
  468. <?php
  469. foreach ($this->Archives as $Archive) {
  470. echo "\t\t\t\t\t\t<option value=\"$Archive\"";
  471. if ($Archive === ($Torrent['Archive'] ?? false)) {
  472. echo ' selected';
  473. }
  474. echo ">$Archive</option>\n";
  475. } ?>
  476. </select><br />
  477. Compression algorithm
  478. </td>
  479. </tr>
  480. <!-- Encoding -->
  481. <tr id="codec_tr">
  482. <td class="label">License</td>
  483. <td>
  484. <select name="codec">
  485. <option>---</option>
  486. <?php
  487. foreach ($this->Codecs as $Codec) {
  488. echo "\t\t\t\t\t\t<option value=\"$Codec\"";
  489. if ($Codec === ($Torrent['Codec'] ?? false)) {
  490. echo " selected";
  491. }
  492. echo ">$Codec</option>\n";
  493. } ?>
  494. </select><br />
  495. Please see <a href="http://www.dcc.ac.uk/resources/how-guides/license-research-data" target="_blank">How to License Research Data</a>
  496. </td>
  497. </tr>
  498. <!-- Tags -->
  499. <?php if ($this->NewTorrent) { ?>
  500. <tr id="tags_tr">
  501. <td class="label">Tags</td>
  502. <td>
  503. <?php
  504. $GenreTags = G::$Cache->get_value('genre_tags');
  505. if (!$GenreTags) {
  506. $DB->query("
  507. SELECT Name
  508. FROM tags
  509. WHERE TagType = 'genre'
  510. ORDER BY Name");
  511. $GenreTags = $DB->collect('Name');
  512. G::$Cache->cache_value('genre_tags', $GenreTags, 3600*6);
  513. }
  514. ?>
  515. <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;" <?= ($this->DisabledFlag) ? ' disabled="disabled"' : '' ?>>
  516. <option>---</option>
  517. <?php foreach (Misc::display_array($GenreTags) as $Genre) { ?>
  518. <option value="<?= $Genre ?>"><?= $Genre ?>
  519. </option>
  520. <?php } ?>
  521. </select>
  522. <input type="text" id="tags" name="tags" size="60"
  523. value="<?= display_str(implode(', ', explode(',', $Torrent['TagList']))) ?>"
  524. <?php Users::has_autocomplete_enabled('other'); ?> /><br />
  525. Comma-seperated list of tags, n.b., use <strong class="important_text_alt">vanity.house</strong> for data you produced
  526. </td>
  527. </tr>
  528. <!-- Picture -->
  529. <tr id="cover_tr">
  530. <td class="label">Picture</td>
  531. <td>
  532. <input type="text" id="image" name="image" size="60"
  533. value="<?= display_str($Torrent['Image']) ?>"
  534. <?= $this->Disabled ?> /><br />
  535. A meaningful picture, e.g., the specimen or a thumbnail
  536. </td>
  537. </tr>
  538. <!-- Sample pictures/links -->
  539. <?php if (!$this->DisabledFlag && $this->NewTorrent) { ?>
  540. <tr id="screenshots_tr">
  541. <td class="label">Publications</td>
  542. <td>
  543. <textarea rows="8" cols="60" name="screenshots"
  544. id="screenshots"><?= display_str($Torrent['Screenshots'])?></textarea>
  545. Up to ten DOI numbers, one per line
  546. </tr>
  547. <?php } ?>
  548. <!-- Album description -->
  549. <tr id="group_desc_tr">
  550. <td class="label">Torrent Group Description</td>
  551. <td>
  552. <?php
  553. new TEXTAREA_PREVIEW(
  554. 'album_desc',
  555. 'album_desc',
  556. display_str($Torrent['GroupDescription']),
  557. 60,
  558. 8,
  559. !$this->DisabledFlag,
  560. !$this->DisabledFlag,
  561. false,
  562. array($this->Disabled)
  563. );
  564. ?><br />
  565. General info about the object of study's function or significance
  566. </td>
  567. </tr>
  568. <?php } # Ends if NewTorrent line 499?>
  569. <!-- Torrent description -->
  570. <tr id="release_desc_tr">
  571. <td class="label">Torrent Description</td>
  572. <td>
  573. <?php
  574. new TEXTAREA_PREVIEW(
  575. 'release_desc',
  576. 'release_desc',
  577. display_str($Torrent['TorrentDescription'] ?? ''),
  578. 60,
  579. ); ?><br />
  580. Specific info about the protocols and equipment relevant to <em>this</em> data
  581. </td>
  582. </tr>
  583. <!-- Boolean options -->
  584. <tr id="censored_tr">
  585. <td class="label">Aligned Sequence</td>
  586. <td>
  587. <input type="checkbox" name="censored" value="1"
  588. <?= (($Torrent['Censored'] ?? 0) ? 'checked ' : '') ?>/>
  589. Whether the torrent contains raw reads or alignment data
  590. </td>
  591. </tr>
  592. <tr id="anon_tr">
  593. <td class="label">Upload Anonymously</td>
  594. <td>
  595. <input type="checkbox" name="anonymous" value="1"
  596. <?= (($Torrent['Anonymous'] ?? false) ? 'checked ' : '') ?>/>
  597. Hide your username from other users on the torrent details page
  598. </td>
  599. </tr>
  600. </table>
  601. <?php
  602. # Phew
  603. $this->foot();
  604. G::$DB->set_query_id($QueryID);
  605. }
  606. }