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

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