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.

array.php 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * The $Types array is the backbone of the reports system and is stored here so it can
  5. * be included on the pages that need it without clogging up the pages that don't.
  6. * Important thing to note about the array:
  7. * 1. When coding for a non music site, you need to ensure that the top level of the
  8. * array lines up with the $Categories array in your config.php.
  9. * 2. The first sub array contains resolves that are present on every report type
  10. * regardless of category.
  11. * 3. The only part that shouldn't be self-explanatory is that for the tracks field in
  12. * the report_fields arrays, 0 means not shown, 1 means required, 2 means required but
  13. * you can't select the 'All' box.
  14. * 4. The current report_fields that are set up are tracks, sitelink, link and image. If
  15. * you wanted to add a new one, you'd need to add a field to the reportsv2 table, elements
  16. * to the relevant report_fields arrays here, add the HTML in ajax_report and add security
  17. * in takereport.
  18. */
  19. $Types = array(
  20. 'master' => array(
  21. # dupe
  22. 'dupe' => array(
  23. 'priority' => '10',
  24. 'reason' => '0',
  25. 'title' => 'Dupe',
  26. 'report_messages' => array(
  27. 'Please specify a link to the original torrent.'
  28. ),
  29. 'report_fields' => array(
  30. 'sitelink' => '1'
  31. ),
  32. 'resolve_options' => array(
  33. 'upload' => '0',
  34. 'warn' => '0',
  35. 'delete' => '1',
  36. 'pm' => '[rule]r1.1.4[/rule]. Your torrent was reported because it was a duplicate of another torrent.'
  37. ),
  38. ),
  39. # banned
  40. 'banned' => array(
  41. 'priority' => '230',
  42. 'reason' => '14',
  43. 'title' => 'Specifically Banned',
  44. 'report_messages' => array(
  45. 'Note that this report form is for content that is banned by name, not content that breaks a general uploading rule.',
  46. 'Please specify exactly which entry on the Specifically Banned list this is violating.'
  47. ),
  48. 'report_fields' => array(
  49. ),
  50. 'resolve_options' => array(
  51. 'upload' =>' 0',
  52. 'warn' => '4',
  53. 'delete' => '1',
  54. 'pm' => '[rule]h1.3[/rule]. You have uploaded material that is currently forbidden.
  55. Items on the [url='.site_url().'rules.php?p=upload#h1.3]Specifically Banned[/url] portion of the uploading rules cannot be uploaded to the site.
  56. Your torrent was reported because it contained material from the Specifically Banned section of the rules.'
  57. ),
  58. ),
  59. # urgent
  60. 'urgent' => array(
  61. 'priority' => '280',
  62. 'reason' => '-1',
  63. 'title' => 'Urgent',
  64. 'report_messages' => array(
  65. 'This report type is only for very urgent reports, usually for personal information being found within a torrent.',
  66. 'Abusing the "Urgent" report type could result in a warning or worse.',
  67. 'As this report type gives the staff absolutely no information about the problem, please be as clear as possible in your comments about what the problem is.'
  68. ),
  69. 'report_fields' => array(
  70. 'sitelink' => '0',
  71. 'link' => '0',
  72. 'image' => '0',
  73. ),
  74. 'resolve_options' => array(
  75. 'upload' => '0',
  76. 'warn' => '0',
  77. 'delete' => '0',
  78. 'pm' => ''
  79. ),
  80. ),
  81. # trump
  82. 'trump' => array(
  83. 'priority' => '20',
  84. 'reason' => '1',
  85. 'title' => 'Trump',
  86. 'report_messages' => array(
  87. 'Please list the specific reason(s) the newer torrent trumps the older one.',
  88. 'Please make sure you are reporting the torrent <strong class="important_text">which has been trumped</strong> and should be deleted, not the torrent that you think should remain on site.'
  89. ),
  90. 'report_fields' => array(
  91. 'sitelink' => '1'
  92. ),
  93. 'resolve_options' => array(
  94. 'upload' => '0',
  95. 'warn' => '0',
  96. 'delete' => '1',
  97. 'pm' => 'Your torrent was reported because it was trumped by another torrent.'
  98. ),
  99. ),
  100. # notporn
  101. 'notporn' => array(
  102. 'priority' => '100',
  103. 'reason' => '-1',
  104. 'title' => 'Not Pornographic',
  105. 'report_messages' => array(
  106. 'This report type is for reporting torrents that are not pornographic.'
  107. ),
  108. 'report_fields' => array(
  109. ),
  110. 'resolve_options' => array(
  111. 'upload' => '0',
  112. 'warn' => '0',
  113. 'delete' => '1',
  114. 'pm' => '[rule]r1.1.2[/rule]. Your torrent was reported beacuse it was not pornographic. All torrents on '.site_url().' must be pornographic.'
  115. ),
  116. ),
  117. # lang
  118. 'lang' => array(
  119. 'priority' => '100',
  120. 'reason' => '-1',
  121. 'title' => 'Disallowed Language',
  122. 'report_messages' => array(
  123. 'This report type is for reporting torrent that contain no Japanese or English language content.'
  124. ),
  125. 'report_fields' => array(
  126. ),
  127. 'resolve_options' => array(
  128. 'upload' => '0',
  129. 'warn' => '0',
  130. 'delete' => '1',
  131. 'pm' => '[rule]r1.1.7[/rule]. Your torrent was reported because it contained neither Japanese nor English text/audio.'
  132. ),
  133. ),
  134. # metadata
  135. 'metadata' => array(
  136. 'priority' => '100',
  137. 'reason' => '-1',
  138. 'title' => 'Incorrect Metadata',
  139. 'report_messages' => array(
  140. 'This report type is for reporting improperly/incorrectly tagged torrents.',
  141. 'Please describe what changes need to be made to the metadata.'
  142. ),
  143. 'report_fields' => array(
  144. ),
  145. 'resolve_options' => array(
  146. 'upload' => '0',
  147. 'warn' => '0',
  148. 'delete' => '0',
  149. 'pm' => 'Your torrent was reported for having incorrect metadata.'
  150. ),
  151. ),
  152. # other
  153. 'other' => array(
  154. 'priority' => '200',
  155. 'reason' => '-1',
  156. 'title' => 'Other',
  157. 'report_messages' => array(
  158. 'Please include as much information as possible to verify the report.'
  159. ),
  160. 'report_fields' => array(
  161. ),
  162. 'resolve_options' => array(
  163. 'upload' => '0',
  164. 'warn' => '0',
  165. 'delete' => '0',
  166. 'pm' => ''
  167. ),
  168. ),
  169. ),
  170. );