Oppaitime'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 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. <?
  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. var $UploadForm = '';
  6. var $Categories = [];
  7. var $Formats = [];
  8. var $Bitrates = [];
  9. var $Media = [];
  10. var $MediaManaga = [];
  11. var $Containers = [];
  12. var $ContainersGames = [];
  13. var $Codecs = [];
  14. var $Resolutions = [];
  15. var $AudioFormats = [];
  16. var $Subbing = [];
  17. var $Languages = [];
  18. var $Platform = [];
  19. var $NewTorrent = false;
  20. var $Torrent = [];
  21. var $Error = false;
  22. var $TorrentID = false;
  23. var $Disabled = '';
  24. var $DisabledFlag = false;
  25. function __construct($Torrent = false, $Error = false, $NewTorrent = true) {
  26. $this->NewTorrent = $NewTorrent;
  27. $this->Torrent = $Torrent;
  28. $this->Error = $Error;
  29. global $UploadForm, $Categories, $Formats, $Bitrates, $Media, $MediaManga, $TorrentID, $Containers, $ContainersGames, $Codecs, $Resolutions, $AudioFormats, $Subbing, $Languages, $Platform, $Archives, $ArchivesManga;
  30. $this->UploadForm = $UploadForm;
  31. $this->Categories = $Categories;
  32. $this->Formats = $Formats;
  33. $this->Bitrates = $Bitrates;
  34. $this->Media = $Media;
  35. $this->MediaManga = $MediaManga;
  36. $this->Containers = $Containers;
  37. $this->ContainersGames = $ContainersGames;
  38. $this->Codecs = $Codecs;
  39. $this->Resolutions = $Resolutions;
  40. $this->AudioFormats = $AudioFormats;
  41. $this->Subbing = $Subbing;
  42. $this->Languages = $Languages;
  43. $this->TorrentID = $TorrentID;
  44. $this->Platform = $Platform;
  45. $this->Archives = $Archives;
  46. $this->ArchivesManga = $ArchivesManga;
  47. if ($this->Torrent && $this->Torrent['GroupID']) {
  48. $this->Disabled = ' readonly="readonly"';
  49. $this->DisabledFlag = true;
  50. }
  51. }
  52. function head() {
  53. G::$DB->query("
  54. SELECT COUNT(ID)
  55. FROM torrents
  56. WHERE UserID = ?", G::$LoggedUser['ID']);
  57. list($Uploads) = G::$DB->next_record();
  58. ?>
  59. <div class="thin">
  60. <? if ($this->NewTorrent) { ?>
  61. <p style="text-align: center;">
  62. If you would like to use your own torrent file, add the following to it:<br />
  63. <? $Announces = call_user_func_array('array_merge', ANNOUNCE_URLS);
  64. foreach ($Announces as $Announce) {
  65. ?>
  66. Announce: <input type="text" value="<?=$Announce . '/' . G::$LoggedUser['torrent_pass'] . '/announce'?>" size="74" onclick="this.select();" readonly="readonly" /> <br />
  67. <? } ?>
  68. Source: <input type="text" value="<?=Users::get_upload_sources()[0]?>" size="20" onclick="this.select();" readonly="readonly" />
  69. <p style="text-align: center;">
  70. Otherwise, add none of it and simply redownload the torrent file after uploading it. All of the above data will be added to it by the site.<br /><br />
  71. <strong<?=((!$Uploads)?' class="important_text"':'')?>>
  72. If you never have before, be sure to read this list of <a href="wiki.php?action=article&name=uploadingpitfalls">uploading pitfalls</a>
  73. </strong>
  74. </p>
  75. </p>
  76. <? }
  77. if ($this->Error) {
  78. echo "\t".'<p style="color: red; text-align: center;">'.$this->Error."</p>\n";
  79. }
  80. ?>
  81. <form class="create_form box pad" name="torrent" action="" enctype="multipart/form-data" method="post" onsubmit="$('#post').raw().disabled = 'disabled';">
  82. <div>
  83. <input type="hidden" name="submit" value="true" />
  84. <input type="hidden" name="auth" value="<?=G::$LoggedUser['AuthKey']?>" />
  85. <? if (!$this->NewTorrent) { ?>
  86. <input type="hidden" name="action" value="takeedit" />
  87. <input type="hidden" name="torrentid" value="<?=display_str($this->TorrentID)?>" />
  88. <input type="hidden" name="type" value="<?=display_str($this->Torrent['CategoryID']-1)?>" />
  89. <?
  90. } else {
  91. if ($this->Torrent && $this->Torrent['GroupID']) {
  92. ?>
  93. <input type="hidden" name="groupid" value="<?=display_str($this->Torrent['GroupID'])?>" />
  94. <input type="hidden" name="type" value="<?=display_str($this->Torrent['CategoryID']-1)?>" />
  95. <?
  96. }
  97. if ($this->Torrent && ($this->Torrent['RequestID'] ?? false)) {
  98. ?>
  99. <input type="hidden" name="requestid" value="<?=display_str($this->Torrent['RequestID'])?>" />
  100. <?
  101. }
  102. }
  103. ?>
  104. </div>
  105. <? if ($this->NewTorrent) { ?>
  106. <table cellpadding="3" cellspacing="1" border="0" class="layout" width="100%">
  107. <tr>
  108. <td class="label">Torrent file</td>
  109. <td><input id="file" type="file" name="file_input" size="50" /></td>
  110. </tr>
  111. <tr>
  112. <td class="label">Type</td>
  113. <td>
  114. <select id="categories" name="type" onchange="Categories()"<?=($this->DisabledFlag) ? ' disabled="disabled"' : ''?>>
  115. <?
  116. foreach (Misc::display_array($this->Categories) as $Index => $Cat) {
  117. echo "\t\t\t\t\t\t<option value=\"$Index\"";
  118. if ($Cat == $this->Torrent['CategoryName']) {
  119. echo ' selected="selected"';
  120. }
  121. echo ">$Cat</option>\n";
  122. }
  123. ?>
  124. </select>
  125. </td>
  126. </tr>
  127. </table>
  128. <? }//if ?>
  129. <div id="dynamic_form">
  130. <?
  131. }
  132. function foot() {
  133. $Torrent = $this->Torrent;
  134. ?>
  135. </div>
  136. <table cellpadding="3" cellspacing="1" border="0" class="layout slice" width="100%">
  137. <?
  138. if (!$this->NewTorrent) {
  139. if (check_perms('torrents_freeleech')) {
  140. ?>
  141. <tr id="freetorrent">
  142. <td class="label">Freeleech</td>
  143. <td>
  144. <select name="freeleech">
  145. <?
  146. $FL = array("Normal", "Free", "Neutral");
  147. foreach ($FL as $Key => $Name) {
  148. ?>
  149. <option value="<?=$Key?>"<?=($Key == $Torrent['FreeTorrent'] ? ' selected="selected"' : '')?>><?=$Name?></option>
  150. <? } ?>
  151. </select>
  152. because
  153. <select name="freeleechtype">
  154. <?
  155. $FL = array("N/A", "Staff Pick", "Perma-FL", "Freeleechizer", "Site-Wide FL");
  156. foreach ($FL as $Key => $Name) {
  157. ?>
  158. <option value="<?=$Key?>"<?=($Key == $Torrent['FreeLeechType'] ? ' selected="selected"' : '')?>><?=$Name?></option>
  159. <? } ?>
  160. </select>
  161. </td>
  162. </tr>
  163. <?
  164. }
  165. }
  166. ?>
  167. <tr>
  168. <td colspan="2" style="text-align: center;">
  169. <p>Be sure that your torrent is approved by the <a href="rules.php?p=upload" target="_blank">rules</a>. Not doing this will result in a <strong class="important_text">warning</strong> or <strong class="important_text">worse</strong>.</p>
  170. <? if ($this->NewTorrent) { ?>
  171. <p>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. Make use of this time wisely, and <a href="requests.php">search the list of requests</a>.</p>
  172. <? } ?>
  173. <input id="post" type="submit"<? if ($this->NewTorrent) { echo ' value="Upload torrent"'; } else { echo ' value="Edit torrent"';} ?> />
  174. </td>
  175. </tr>
  176. </table>
  177. </form>
  178. </div>
  179. <?
  180. }
  181. function upload_form() {
  182. $QueryID = G::$DB->get_query_id();
  183. $this->head();
  184. $Torrent = $this->Torrent;
  185. ?>
  186. <table cellpadding="3" cellspacing="1" border="0" class="layout slice" width="100%">
  187. <? if ($this->NewTorrent) { ?>
  188. <tr id="javdb_tr">
  189. <td class="label tooltip" title='Enter a JAV catalogue number, e.g., "CND-060"'>Catalogue Number</td>
  190. <td>
  191. <input type="text" id="catalogue" name="catalogue" size="10" value="<?=display_str($Torrent['CatalogueNumber']) ?>" <?=$this->Disabled?>/>
  192. <? if (!$this->DisabledFlag) { ?>
  193. <input type="button" autofill="jav" value="Autofill"></input>
  194. <? } ?>
  195. </td>
  196. </tr>
  197. <tr id="anidb_tr" class="hidden">
  198. <td class="label">AniDB Autofill (optional)</td>
  199. <td>
  200. <input type="text" id="anidb" size="10" <?=$this->Disabled?>/>
  201. <? if (!$this->DisabledFlag) { ?>
  202. <input type="button" autofill="anime" value="Autofill"/>
  203. <? } ?>
  204. </td>
  205. </tr>
  206. <tr id="ehentai_tr" class="hidden">
  207. <td class="label">e-hentai URL (optional)</td>
  208. <td>
  209. <input type="text" id="catalogue" size="50" <?=$this->Disabled?> />
  210. <? if (!$this->DisabledFlag) { ?>
  211. <input type="button" autofill="douj" value="Autofill"/>
  212. <? } ?>
  213. </td>
  214. </tr>
  215. <tr id="title_tr">
  216. <td class="label">English Title</td>
  217. <td><input type="text" id="title" name="title" size="60" value="<?=display_str($Torrent['Title']) ?>" <?=$this->Disabled?>/></td>
  218. </tr>
  219. <tr id="title_rj_tr">
  220. <td class="label">Romaji Title</td>
  221. <td><input type="text" id="title_rj" name="title_rj" size="60" value="<?=display_str($Torrent['TitleRJ']) ?>" <?=$this->Disabled?>/></td>
  222. </tr>
  223. <tr id="title_jp_tr">
  224. <td class="label">Japanese Title</td>
  225. <td><input type="text" id="title_jp" name="title_jp" size="60" value="<?=display_str($Torrent['TitleJP']) ?>" <?=$this->Disabled?>/></td>
  226. </tr>
  227. <tr id="idols_tr">
  228. <td class="label">Idol(s)</td>
  229. <td id="idolfields">
  230. <? if (!empty($Torrent['Artists'])) {
  231. foreach ($Torrent['Artists'] as $Num => $Artist) { ?>
  232. <input type="text" id="idols_<?=$Num?>" name="idols[]" size="45" value="<?=display_str($Artist['name'])?>" <?=$this->Disabled?>/>
  233. <? if ($Num == 0) { ?>
  234. <a class="add_artist_button brackets">+</a> <a class="remove_artist_button brackets">&minus;</a>
  235. <? }
  236. }
  237. } else { ?>
  238. <input type="text" id="idols_0" name="idols[]" size="45" value="" <?=$this->Disabled?> />
  239. <a class="add_artist_button brackets">+</a> <a class="remove_artist_button brackets">&minus;</a>
  240. <? } ?>
  241. </td>
  242. </tr>
  243. <tr id="studio_tr">
  244. <td class="label">Studio</td>
  245. <td><input type="text" id="studio" name="studio" size="60" value="<?=display_str($Torrent['Studio']) ?>" <?=$this->Disabled?>/></td>
  246. </tr>
  247. <tr id="series_tr">
  248. <td class="label">Series</td>
  249. <td><input type="text" id="series" name="series" size="60" value="<?=display_str($Torrent['Series']) ?>" <?=$this->Disabled?>/></td>
  250. </tr>
  251. <tr id="year_tr">
  252. <td class="label">Year</td>
  253. <td><input type="text" id="year" name="year" maxlength="4" size="5" value="<?=display_str($Torrent['Year']) ?>" <?=$this->Disabled?>/></td>
  254. </tr>
  255. <tr id="pages_tr">
  256. <td class="label">Pages</td>
  257. <td><input type="text" id="pages" name="pages" maxlength="5" size="5" value="<?=display_str($Torrent['Pages']) ?>" <?=$this->Disabled?> /></td>
  258. </tr>
  259. <tr id="dlsite_tr">
  260. <td class="label">DLsite ID</td>
  261. <td><input type="text" id="dlsiteid" name="dlsiteid" size="8" maxlength="8" value="<?=display_str($Torrent['DLsiteID']??'')?>" <?=$this->Disabled?>/></td>
  262. </tr>
  263. <? } ?>
  264. <tr id="media_tr">
  265. <td class="label">Media</td>
  266. <td>
  267. <select name="media">
  268. <option>---</option>
  269. <?
  270. foreach($this->Media as $Media) {
  271. echo "\t\t\t\t\t\t<option value=\"$Media\"";
  272. if ($Media == ($Torrent['Media'] ?? false)) {
  273. echo " selected";
  274. }
  275. echo ">$Media</option>\n";
  276. }
  277. ?>
  278. </select>
  279. </td>
  280. </tr>
  281. <tr id="media_manga_tr">
  282. <td class="label">Media</td>
  283. <td>
  284. <select name="media">
  285. <option>---</option>
  286. <?
  287. foreach($this->MediaManga as $Media) {
  288. echo "\t\t\t\t\t\t<option value=\"$Media\"";
  289. if ($Media == ($Torrent['Media'] ?? false)) {
  290. echo " selected";
  291. }
  292. echo ">$Media</option>\n";
  293. }
  294. ?>
  295. </select>
  296. </td>
  297. </tr>
  298. <tr id="media_games_tr">
  299. <td class="label">Platform</td>
  300. <td>
  301. <select id="platform" name="media">
  302. <option>---</option>
  303. <?
  304. foreach($this->Platform as $Platform) {
  305. echo "\t\t\t\t\t\t<option value=\"$Platform\"";
  306. if ($Platform == ($Torrent['Media'] ?? false)) {
  307. echo " selected";
  308. }
  309. echo ">$Platform</option>\n";
  310. }
  311. ?>
  312. </select>
  313. </td>
  314. </tr>
  315. <tr id="archive_tr">
  316. <td class='label'>Archive</td>
  317. <td>
  318. <select name='archive'>
  319. <option>---</option>
  320. <?
  321. foreach($this->Archives as $Archive) {
  322. echo "\t\t\t\t\t\t<option value=\"$Archive\"";
  323. if ($Archive == ($Torrent['Archive'] ?? false)) {
  324. echo ' selected';
  325. }
  326. echo ">$Archive</option>\n";
  327. }
  328. ?>
  329. </select>
  330. </td>
  331. </tr>
  332. <tr id="archive_manga_tr">
  333. <td class='label'>Archive</td>
  334. <td>
  335. <select name='archive'>
  336. <option>---</option>
  337. <?
  338. foreach(array_merge($this->Archives, $this->ArchivesManga) as $Archive) {
  339. echo "\t\t\t\t\t\t<option value=\"$Archive\"";
  340. if ($Archive == ($Torrent['Archive'] ?? false)) {
  341. echo ' selected';
  342. }
  343. echo ">$Archive</option>\n";
  344. }
  345. ?>
  346. </select>
  347. </td>
  348. </tr>
  349. <tr id="container_tr">
  350. <td class="label">Container</td>
  351. <td>
  352. <select name="container">
  353. <option>---</option>
  354. <?
  355. foreach($this->Containers as $Cont) {
  356. echo "\t\t\t\t\t\t<option value=\"$Cont\"";
  357. if ($Cont == ($Torrent['Container'] ?? false)) {
  358. echo " selected";
  359. }
  360. echo ">$Cont</option>\n";
  361. }
  362. ?>
  363. </select>
  364. </td>
  365. </tr>
  366. <tr id="container_games_tr">
  367. <td class="label">Container</td>
  368. <td>
  369. <select id="container" name="container">
  370. <option>---</option>
  371. <?
  372. foreach($this->ContainersGames as $Container) {
  373. echo "\t\t\t\t\t\t<option value=\"$Container\"";
  374. if ($Container == ($Torrent['Container'] ?? false)) {
  375. echo " selected";
  376. }
  377. echo ">$Container</option>\n";
  378. }
  379. ?>
  380. </select>
  381. </td>
  382. </tr>
  383. <tr id="codec_tr">
  384. <td class="label">Codecs</td>
  385. <td>
  386. <select name="codec">
  387. <option>---</option>
  388. <?
  389. foreach($this->Codecs as $Codec) {
  390. echo "\t\t\t\t\t\t<option value=\"$Codec\"";
  391. if ($Codec == ($Torrent['Codec'] ?? false)) {
  392. echo " selected";
  393. }
  394. echo ">$Codec</option>\n";
  395. }
  396. ?>
  397. </select>
  398. </td>
  399. </tr>
  400. <tr id="resolution_tr">
  401. <td class="label">Resolution</td>
  402. <td>
  403. <select id="ressel" name="ressel" onchange="SetResolution()">
  404. <option value="">---</option>
  405. <?
  406. foreach($this->Resolutions as $Res) {
  407. echo "\t\t\t\t\t\t<option value=\"$Res\"";
  408. if ($Res == ($Torrent['Resolution'] ?? false) || (!isset($FoundRes) && ($Torrent['Resolution'] ?? false) && $Res == "Other")) {
  409. echo " selected";
  410. $FoundRes = true;
  411. }
  412. echo ">$Res</option>\n";
  413. }
  414. ?>
  415. </select>
  416. <input type="text" id="resolution" name="resolution" size="10" class="hidden tooltip" pattern="[0-9]+x[0-9]+" title='Enter "Other" resolutions in the form ###x###' value="<?=($Torrent['Resolution']??'')?>" readonly></input>
  417. <script>
  418. if ($('#ressel').raw().value == "Other") {
  419. $('#resolution').raw().readOnly = false
  420. $('#resolution').gshow()
  421. }
  422. </script>
  423. </td>
  424. </tr>
  425. <tr id="audio_tr">
  426. <td class="label">Audio</td>
  427. <td>
  428. <select name="audioformat">
  429. <option>---</option>
  430. <?
  431. foreach($this->AudioFormats as $AudioFormat) {
  432. echo "\t\t\t\t\t\t<option value=\"$AudioFormat\"";
  433. if ($AudioFormat == ($Torrent['AudioFormat'] ?? false)) {
  434. echo " selected";
  435. }
  436. echo ">$AudioFormat</option>\n";
  437. }
  438. ?>
  439. </select>
  440. </td>
  441. </tr>
  442. <tr id="lang_tr">
  443. <td class="label">Language</td>
  444. <td>
  445. <select name="lang">
  446. <option>---</option>
  447. <?
  448. foreach($this->Languages as $Language) {
  449. echo "\t\t\t\t\t\t<option value=\"$Language\"";
  450. if ($Language == ($Torrent['Language'] ?? false)) {
  451. echo " selected";
  452. }
  453. echo ">$Language</option>\n";
  454. }
  455. ?>
  456. </select>
  457. </td>
  458. </tr>
  459. <tr id="sub_tr">
  460. <td class="label">Subbing</td>
  461. <td>
  462. <select name="sub">
  463. <option>---</option>
  464. <?
  465. foreach($this->Subbing as $Subbing) {
  466. echo "\t\t\t\t\t\t<option value=\"$Subbing\"";
  467. if ($Subbing == ($Torrent['Subbing'] ?? false)) {
  468. echo " selected";
  469. }
  470. echo ">$Subbing</option>\n";
  471. }
  472. ?>
  473. </select>
  474. </td>
  475. </tr>
  476. <tr id="trans_tr">
  477. <td class="label">Translation Group (optional)</td>
  478. <td><input type="text" id="subber" name="subber" size="60" value="<?=display_str($Torrent['Subber']??'') ?>" /></td>
  479. </tr>
  480. <tr id="censored_tr">
  481. <td class="label">Censored?</td>
  482. <td>
  483. <input type="checkbox" name="censored" value="1" <?=(($Torrent['Censored'] ?? 1) ? 'checked ' : '')?>/>
  484. </td>
  485. </tr>
  486. <tr id="mediainfo_tr">
  487. <td class="label">Media Info</td>
  488. <td>
  489. <textarea name="mediainfo" id="mediainfo" onchange="MediaInfoExtract()" rows="8" cols="60"><?=display_str($Torrent['MediaInfo']??'')?></textarea>
  490. </td>
  491. </tr>
  492. <? if ($this->NewTorrent) { ?>
  493. <tr id="tags_tr">
  494. <td class="label tooltip" title="Comma seperated list of tags">Tags</td>
  495. <td>
  496. <?
  497. $GenreTags = G::$Cache->get_value('genre_tags');
  498. if (!$GenreTags) {
  499. $DB->query("
  500. SELECT Name
  501. FROM tags
  502. WHERE TagType = 'genre'
  503. ORDER BY Name");
  504. $GenreTags = $DB->collect('Name');
  505. G::$Cache->cache_value('genre_tags', $GenreTags, 3600*6);
  506. }
  507. ?>
  508. <select id="genre_tags" name="genre_tags" onchange="add_tag(); return false;" <?=($this->DisabledFlag) ? ' disabled="disabled"' : ''?>>
  509. <option>---</option>
  510. <? foreach (Misc::display_array($GenreTags) as $Genre) { ?>
  511. <option value="<?=$Genre?>"><?=$Genre?></option>
  512. <? } ?>
  513. </select>
  514. <input type="text" id="tags" name="tags" size="60" value="<?=display_str($Torrent['TagList']) ?>"<? Users::has_autocomplete_enabled('other'); ?> />
  515. <p class="min_padding notes"></p>
  516. </td>
  517. </tr>
  518. <tr id="cover_tr">
  519. <td class="label">Cover Image</td>
  520. <td><input type="text" id="image" name="image" size="60" value="<?=display_str($Torrent['Image']) ?>"<?=$this->Disabled?> /></td>
  521. </tr>
  522. <? if (!$this->DisabledFlag && $this->NewTorrent) { ?>
  523. <tr id="screenshots_tr">
  524. <td class="label">Screenshots</td>
  525. <td>
  526. <textarea rows="8" cols="60" name="screenshots" id="screenshots"><?=display_str($Torrent['Screenshots'])?></textarea>
  527. <p>Enter up to 10 links to samples for the torrent, one per line. The system will automatically remove malformed or invalid links, as well as any links after the 10th. Remember to consult the <a href="/rules.php?p=upload#h1.4">rules for adding screenshots</a>.</p>
  528. <p class="min_padding notes"></p>
  529. </tr>
  530. <? } ?>
  531. <tr id="group_desc_tr">
  532. <td class="label">Torrent Group Description</td>
  533. <td>
  534. <p class="min_padding notes"></p>
  535. <?php new TEXTAREA_PREVIEW('album_desc', 'album_desc', display_str($Torrent['GroupDescription']), 60, 8, !$this->DisabledFlag, !$this->DisabledFlag, false, array($this->Disabled)); ?>
  536. </td>
  537. </tr>
  538. <? } ?>
  539. <tr id="release_desc_tr">
  540. <td class="label">Torrent Description (optional)</td>
  541. <td>
  542. <p class="min_padding notes"></p>
  543. <?php new TEXTAREA_PREVIEW('release_desc', 'release_desc', display_str($Torrent['TorrentDescription']??''), 60, 8); ?>
  544. </td>
  545. </tr>
  546. <tr id="anon_tr">
  547. <td class="label tooltip" title="Checking this will hide your username from other users on the torrent details page. Stats will still be attributed to you.">Upload Anonymously</td>
  548. <td><input type="checkbox" name="anonymous" value="1" <?=(($Torrent['Anonymous'] ?? false) ? 'checked ' : '')?>/></td>
  549. </tr>
  550. </table>
  551. <?
  552. $this->foot();
  553. G::$DB->set_query_id($QueryID);
  554. }
  555. }
  556. ?>