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.

config.template 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <?php
  2. if (version_compare(PHP_VERSION, '7.0.0', '<')) {
  3. die("Gazelle requires PHP 7.0 or later to function properly");
  4. }
  5. //date_default_timezone_set('EST');
  6. // Main settings
  7. define('SITE_NAME', 'Oppaitime'); //The name of your site
  8. define('SITE_DOMAIN', 'oppaiti.me'); //The FQDN of your site
  9. define('IMAGE_DOMAIN', 'img.oppaiti.me'); //The FQDN of your image host
  10. define('SERVER_ROOT', '/var/www/oppaiti.me'); //The root of the server, used for includes
  11. define('TORRENT_STORE', '/var/torrents/'); //Where torrent files are stored
  12. // Tracker urls to be added to torrent files ala bittorrent.org/beps/bep_0012.html
  13. define('ANNOUNCE_URLS', [[
  14. 'https://tracker.'.SITE_DOMAIN.':34001',
  15. 'https://tracker2.'.SITE_DOMAIN.':34001',
  16. 'https://tracker3.'.SITE_DOMAIN.':34001',
  17. 'https://tracker4.'.SITE_DOMAIN.':34001'
  18. ]]);
  19. // Name for bonus points currency
  20. define('BONUS_POINTS', 'Nips');
  21. // Don't hard code API keys for services
  22. define('API_KEYS', ['ANIDB' => 'AAAAAAAAAAAAAAAA']);
  23. // Allows you to run static content off another server. Default is usually what you want.
  24. define('STATIC_SERVER', '/static/');
  25. // The hashing algorithm used for SRI
  26. define('INTEGRITY_ALGO', 'sha256');
  27. // Keys
  28. define('ENCKEY', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); //Random key. The key for encryption
  29. define('IMAGE_PSK', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); //Pre-shared key for generating hmacs for the image proxy
  30. define('SCHEDULE_KEY', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); // Random key. This key must be the argument to schedule.php for the schedule to work.
  31. define('RSS_HASH', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); //Random key. Used for generating unique RSS auth key.
  32. // MySQL details
  33. define('SQLHOST', 'localhost'); //The MySQL host ip/fqdn
  34. define('SQLLOGIN', 'root');//The MySQL login
  35. define('SQLPASS', 'toor'); //The MySQL password
  36. define('SQLDB', 'gazelle'); //The MySQL database to use
  37. define('SQLPORT', 3306); //The MySQL port to connect on
  38. define('SQLSOCK', '/var/run/mysqld/mysqld.sock');
  39. // Memcached details
  40. define('MEMCACHED_SERVERS',
  41. [['host' => 'unix:///var/run/memcached.sock', 'port' => 0, 'buckets' => 1]]
  42. );
  43. // Sphinx details
  44. define('SPHINX_HOST', 'localhost');
  45. define('SPHINX_PORT', 9312);
  46. define('SPHINXQL_HOST', '127.0.0.1');
  47. define('SPHINXQL_PORT', 9306);
  48. define('SPHINXQL_SOCK', false);
  49. define('SPHINX_MIN_MAX_MATCHES', 2000); // Exclusively for fixing total number of default search results. Raise as necessary
  50. define('SPHINX_INDEX', 'torrents');
  51. // Ocelot details
  52. define('TRACKER_HOST', '8.8.8.8');
  53. define('TRACKER_PORT', 34000);
  54. define('TRACKER_SECRET', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); // Must be 32 characters and match site_password in Ocelot's config.cpp
  55. define('TRACKER_REPORTKEY', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); // Must be 32 characters and match report_password in Ocelot's config.cpp
  56. // Site settings
  57. define('DEBUG_MODE', false); //Set to false if you dont want everyone to see debug information, can be overriden with 'site_debug'
  58. define('DEBUG_WARNINGS', true); //Set to true if you want to see PHP warnings in the footer
  59. define('OPEN_REGISTRATION', false); //Set to false to disable open regirstration, true to allow anyone to register
  60. define('USER_LIMIT', 0); //The maximum number of users the site can have, 0 for no limit
  61. define('STARTING_INVITES', 0); //# of invites to give to newly registered users
  62. define('BLOCK_TOR', false); //Set to true to block Tor users
  63. define('BLOCK_OPERA_MINI', false); //Set to true to block Opera Mini proxy
  64. define('DONOR_INVITES', 2);
  65. // Features
  66. define('FEATURE_EMAIL_REENABLE', true);
  67. // User class IDs needed for automatic promotions. Found in the 'permissions' table
  68. // Name of class Class ID (NOT level)
  69. define('ADMIN', '1');
  70. define('USER', '2');
  71. define('MEMBER', '3');
  72. define('POWER', '4');
  73. define('ELITE', '5');
  74. define('LEGEND', '8');
  75. define('MOD', '11');
  76. define('SYSOP', '15');
  77. define('ARTIST', '19');
  78. define('DONOR', '20');
  79. define('VIP', '21');
  80. define('TORRENT_MASTER', '23');
  81. define('POWER_TM', '24');
  82. define('FLS_TEAM', '9000');
  83. define('FORUM_MOD', '9001');
  84. // Forums
  85. define('STAFF_FORUM', 7);
  86. define('DONOR_FORUM', 9);
  87. define('TRASH_FORUM_ID', 4);
  88. define('ANNOUNCEMENT_FORUM_ID', 10);
  89. // Pagination
  90. define('TORRENT_COMMENTS_PER_PAGE', 10);
  91. define('POSTS_PER_PAGE', 25);
  92. define('TOPICS_PER_PAGE', 50);
  93. define('TORRENTS_PER_PAGE', 50);
  94. define('REQUESTS_PER_PAGE', 25);
  95. define('MESSAGES_PER_PAGE', 25);
  96. define('LOG_ENTRIES_PER_PAGE', 50);
  97. // Cache catalogues
  98. define('THREAD_CATALOGUE', 500); // Limit to THREAD_CATALOGUE posts per cache key.
  99. // IRC settings
  100. define('BOT_NICK', 'bot');
  101. define('BOT_SERVER', 'irc.'.SITE_DOMAIN); // IRC server address. Used for onsite chat tool.
  102. define('BOT_PORT', 6667);
  103. define('BOT_CHAN', '#bot');
  104. define('BOT_ANNOUNCE_CHAN', '#announce');
  105. define('BOT_REQUEST_CHAN', '#requests');
  106. define('BOT_STAFF_CHAN', '#staff');
  107. define('BOT_DISABLED_CHAN', '#disabled'); // Channel to refer disabled users to.
  108. define('BOT_HELP_CHAN', '#help');
  109. define('BOT_DEBUG_CHAN', '#debug');
  110. define('BOT_REPORT_CHAN', '#report');
  111. define('BOT_NICKSERV_PASS', '');
  112. define('BOT_INVITE_CHAN', '#invites'); // Channel for non-members seeking an interview
  113. define('BOT_INTERVIEW_CHAN', '#interview'); // Channel for the interviews
  114. define('BOT_INTERVIEW_NUM', 5);
  115. define('BOT_INTERVIEW_STAFF', '#interview-staff'); // Channel for the interviewers
  116. define('SOCKET_LISTEN_PORT', 51010);
  117. define('SOCKET_LISTEN_ADDRESS', '8.8.8.8');
  118. define('ADMIN_CHAN', '#admin');
  119. define('LAB_CHAN', '#lab');
  120. define('STATUS_CHAN', '#status');
  121. // Miscellaneous values
  122. define('RANK_ONE_COST', 5);
  123. define('RANK_TWO_COST', 10);
  124. define('RANK_THREE_COST', 15);
  125. define('RANK_FOUR_COST', 20);
  126. define('RANK_FIVE_COST', 30);
  127. define('MAX_RANK', 6);
  128. define('MAX_EXTRA_RANK', 8);
  129. define('DONOR_FORUM_RANK', 6);
  130. define('MAX_SPECIAL_RANK', 3);
  131. define('FORUMS_TO_REVEAL_VOTERS', []);
  132. define('FORUMS_TO_ALLOW_DOUBLE_POST', []);
  133. $Categories = array('Movies', 'Anime', 'Manga', 'Games', 'Other');
  134. $GroupedCategories = $Categories;
  135. $CategoryIcons = array('music.png', 'apps.png', 'ebook.png', 'audiobook.png', 'elearning.png', 'comedy.png', 'comics.png');
  136. $Media = array('TV', 'DVD', 'Bluray', 'HD DVD', 'VHS', 'VCD', 'LD', 'Web');
  137. $MediaManga = array('Scan', 'Web');
  138. $Platform = array('Windows', 'OS X', 'Linux', 'BSD', 'Flash', 'Java', 'Android', 'iOS');
  139. $Containers = array('AVI', 'MKV', 'MP4', 'OGM', 'WMV', 'ISO', 'VOB IFO', 'TS', 'M2TS');
  140. $ContainersGames = array('ISO', 'BIN-CUE', 'Installer', 'Loose');
  141. $Codecs = array('h264', '10-bit h264', 'XviD', 'DivX', 'WMV', 'DVD5', 'DVD9', 'HEVC', 'MPEG-2');
  142. $Resolutions = array('SD', '480p', '720p', '1080i', '1080p', '4K', 'Other');
  143. $AudioFormats = array('MP3', 'OGG', 'OGG 5.1', 'AAC', 'AAC 5.1', 'AC3', 'AC3 5.1', 'DTS 2.0', 'DTS 5.1', 'DTS-ES 6.1', 'FLAC 2.0', 'FLAC 5.1', 'FLAC 6.1', 'PCM 2.0', 'PCM 5.1', 'PCM 6.1', 'WMA', 'Real Audio', 'DTS-HD', 'DTS-HD MA');
  144. $Subbing = array('Softsubs', 'Hardsubs', 'RAW');
  145. $Languages = array('English', 'Japanese', 'Dual Language');
  146. $Archives = array('7z', 'zip', 'rar');
  147. $ArchivesManga = array('cbz', 'cbr', 'cb7');
  148. $Formats = array('MP3', 'FLAC', 'Ogg Vorbis', 'AAC', 'AC3', 'DTS');
  149. $Bitrates = array('192', 'APS (VBR)', 'V2 (VBR)', 'V1 (VBR)', '256', 'APX (VBR)', 'V0 (VBR)', 'q8.x (VBR)', '320', 'Lossless', '24bit Lossless', 'Other');
  150. $CollageCats = array(0=>'Personal', 1=>'Theme', 2=>'Staff picks', 3=>'Artists');
  151. $ReleaseTypes = array(1=>'Album', 3=>'Soundtrack', 5=>'EP', 6=>'Anthology', 7=>'Compilation', 9=>'Single', 11=>'Live album', 13=>'Remix', 14=>'Bootleg', 15=>'Interview', 16=>'Mixtape', 21=>'Unknown');
  152. // Ratio requirements, in descending order
  153. // Columns: Download amount, Req Ratio (0% seeded), Req Ratio (100% seeded)
  154. define('RATIO_REQUIREMENTS', [
  155. [200 * 1024**3, 0.60, 0.60],
  156. [160 * 1024**3, 0.60, 0.50],
  157. [120 * 1024**3, 0.50, 0.40],
  158. [100 * 1024**3, 0.40, 0.30],
  159. [80 * 1024**3, 0.30, 0.20],
  160. [60 * 1024**3, 0.20, 0.10],
  161. [40 * 1024**3, 0.15, 0.00],
  162. [20 * 1024**3, 0.10, 0.00],
  163. [10 * 1024**3, 0.05, 0.00],
  164. ]);
  165. define('TAG_NAMESPACES', ['male', 'female', 'parody', 'character']);
  166. // God I wish I didn't have to do this but I just don't care anymore.
  167. define('AUTOMATED_BADGE_IDS', [
  168. 'DL' => [
  169. '8' => 10,
  170. '16' => 11,
  171. '32' => 12,
  172. '64' => 13,
  173. '128' => 14,
  174. '256' => 15,
  175. '512' => 16,
  176. '1024' => 17,
  177. '2048' => 18
  178. ],
  179. 'UL' => [
  180. '16' => 30,
  181. '32' => 31,
  182. '64' => 32,
  183. '128' => 33,
  184. '256' => 34,
  185. '512' => 35,
  186. '1024' => 36,
  187. '2048' => 37,
  188. '4096' => 38
  189. ],
  190. 'Posts' => [
  191. '25' => 60,
  192. '50' => 61,
  193. '100' => 62,
  194. '250' => 63,
  195. '500' => 64,
  196. '1000' => 65,
  197. '2500' => 66,
  198. '5000' => 67,
  199. '10000' => 68
  200. ]
  201. ]);
  202. ?>