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

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