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.4KB

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