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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?php
  2. if (version_compare(PHP_VERSION, '7.0.0', '<')) {
  3. die("Gazelle requires PHP 7.0.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_MAX_MATCHES', 1000); // Must be <= the server's max_matches variable (default 1000)
  50. define('SPHINX_INDEX', 'torrents');
  51. // Ocelot details
  52. define('TRACKER_HOST', '0.0.0.0');
  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. define('FEATURE_SEND_EMAIL', true); //Attempt to send email from the site
  68. define('FEATURE_IRC', true); //Attempt to send messages to IRC
  69. define('FEATURE_ENFORCE_LOCATIONS', true); //Require users to verify login from unknown locations
  70. define('FEATURE_SET_ENC_KEY_PUBLIC', false); //Allow the site encryption key to be set without an account (Should only be used for initial setup)
  71. // User class IDs needed for automatic promotions. Found in the 'permissions' table
  72. // Name of class Class ID (NOT level)
  73. define('ADMIN', '1');
  74. define('USER', '2');
  75. define('MEMBER', '3');
  76. define('POWER', '4');
  77. define('ELITE', '5');
  78. define('LEGEND', '8');
  79. define('MOD', '11');
  80. define('SYSOP', '15');
  81. define('ARTIST', '19');
  82. define('DONOR', '20');
  83. define('VIP', '21');
  84. define('TORRENT_MASTER', '23');
  85. define('POWER_TM', '24');
  86. define('FLS_TEAM', '33');
  87. define('FORUM_MOD', '9001');
  88. // Forums
  89. define('STAFF_FORUM', 7);
  90. define('DONOR_FORUM', 9);
  91. define('TRASH_FORUM_ID', 4);
  92. define('ANNOUNCEMENT_FORUM_ID', 10);
  93. // Pagination
  94. define('TORRENT_COMMENTS_PER_PAGE', 10);
  95. define('POSTS_PER_PAGE', 25);
  96. define('TOPICS_PER_PAGE', 50);
  97. define('TORRENTS_PER_PAGE', 50);
  98. define('REQUESTS_PER_PAGE', 25);
  99. define('MESSAGES_PER_PAGE', 25);
  100. define('LOG_ENTRIES_PER_PAGE', 50);
  101. // Cache catalogues
  102. define('THREAD_CATALOGUE', 500); // Limit to THREAD_CATALOGUE posts per cache key.
  103. // IRC settings
  104. define('BOT_NICK', 'bot');
  105. define('BOT_SERVER', 'irc.'.SITE_DOMAIN); // IRC server address. Used for onsite chat tool.
  106. define('BOT_PORT', 6667);
  107. define('BOT_CHAN', '#bot');
  108. define('BOT_ANNOUNCE_CHAN', '#announce');
  109. define('BOT_REQUEST_CHAN', '#requests');
  110. define('BOT_STAFF_CHAN', '#staff');
  111. define('BOT_DISABLED_CHAN', '#disabled'); // Channel to refer disabled users to.
  112. define('BOT_HELP_CHAN', '#help');
  113. define('BOT_DEBUG_CHAN', '#debug');
  114. define('BOT_REPORT_CHAN', '#report');
  115. define('BOT_NICKSERV_PASS', '');
  116. define('BOT_INVITE_CHAN', '#invites'); // Channel for non-members seeking an interview
  117. define('BOT_INTERVIEW_CHAN', '#interview'); // Channel for the interviews
  118. define('BOT_INTERVIEW_NUM', 5);
  119. define('BOT_INTERVIEW_STAFF', '#interview-staff'); // Channel for the interviewers
  120. define('SOCKET_LISTEN_PORT', 51010);
  121. define('SOCKET_LISTEN_ADDRESS', '0.0.0.0');
  122. define('ADMIN_CHAN', '#admin');
  123. define('LAB_CHAN', '#lab');
  124. define('STATUS_CHAN', '#status');
  125. // Miscellaneous values
  126. define('RANK_ONE_COST', 5);
  127. define('RANK_TWO_COST', 10);
  128. define('RANK_THREE_COST', 15);
  129. define('RANK_FOUR_COST', 20);
  130. define('RANK_FIVE_COST', 30);
  131. define('MAX_RANK', 6);
  132. define('MAX_EXTRA_RANK', 8);
  133. define('DONOR_FORUM_RANK', 6);
  134. define('MAX_SPECIAL_RANK', 3);
  135. define('FORUMS_TO_REVEAL_VOTERS', []);
  136. define('FORUMS_TO_ALLOW_DOUBLE_POST', []);
  137. $Categories = array('Movies', 'Anime', 'Manga', 'Games', 'Other');
  138. $GroupedCategories = $Categories;
  139. $CategoryIcons = array('music.png', 'apps.png', 'ebook.png', 'audiobook.png', 'elearning.png', 'comedy.png', 'comics.png');
  140. $Media = array('TV', 'DVD', 'Bluray', 'HD DVD', 'VHS', 'VCD', 'LD', 'Web');
  141. $MediaManga = array('Scan', 'Web');
  142. $Platform = array('Windows', 'OS X', 'Linux', 'BSD', 'Flash', 'Java', 'Android', 'iOS');
  143. $Containers = array('AVI', 'MKV', 'MP4', 'OGM', 'WMV', 'ISO', 'VOB IFO', 'TS', 'M2TS');
  144. $ContainersGames = array('ISO', 'BIN-CUE', 'Installer', 'Loose');
  145. $Codecs = array('h264', '10-bit h264', 'XviD', 'DivX', 'WMV', 'DVD5', 'DVD9', 'HEVC', 'MPEG-2');
  146. $Resolutions = array('SD', '480p', '720p', '1080i', '1080p', '4K', 'Other');
  147. $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');
  148. $Subbing = array('Softsubs', 'Hardsubs', 'RAW');
  149. $Languages = array('English', 'Japanese', 'Dual Language', 'None');
  150. $Archives = array('7z', 'zip', 'rar');
  151. $ArchivesManga = array('cbz', 'cbr', 'cb7');
  152. $Formats = array('MP3', 'FLAC', 'Ogg Vorbis', 'AAC', 'AC3', 'DTS');
  153. $Bitrates = array('192', 'APS (VBR)', 'V2 (VBR)', 'V1 (VBR)', '256', 'APX (VBR)', 'V0 (VBR)', 'q8.x (VBR)', '320', 'Lossless', '24bit Lossless', 'Other');
  154. $CollageCats = array(0=>'Personal', 1=>'Theme', 2=>'Staff picks', 3=>'Artists');
  155. $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');
  156. // Ratio requirements, in descending order
  157. // Columns: Download amount, Req Ratio (0% seeded), Req Ratio (100% seeded)
  158. define('RATIO_REQUIREMENTS', [
  159. [200 * 1024**3, 0.60, 0.60],
  160. [160 * 1024**3, 0.60, 0.50],
  161. [120 * 1024**3, 0.50, 0.40],
  162. [100 * 1024**3, 0.40, 0.30],
  163. [80 * 1024**3, 0.30, 0.20],
  164. [60 * 1024**3, 0.20, 0.10],
  165. [40 * 1024**3, 0.15, 0.00],
  166. [20 * 1024**3, 0.10, 0.00],
  167. [10 * 1024**3, 0.05, 0.00],
  168. ]);
  169. define('TAG_NAMESPACES', ['male', 'female', 'parody', 'character']);
  170. // God I wish I didn't have to do this but I just don't care anymore.
  171. define('AUTOMATED_BADGE_IDS', [
  172. 'DL' => [
  173. '8' => 10,
  174. '16' => 11,
  175. '32' => 12,
  176. '64' => 13,
  177. '128' => 14,
  178. '256' => 15,
  179. '512' => 16,
  180. '1024' => 17,
  181. '2048' => 18
  182. ],
  183. 'UL' => [
  184. '16' => 30,
  185. '32' => 31,
  186. '64' => 32,
  187. '128' => 33,
  188. '256' => 34,
  189. '512' => 35,
  190. '1024' => 36,
  191. '2048' => 37,
  192. '4096' => 38
  193. ],
  194. 'Posts' => [
  195. '25' => 60,
  196. '50' => 61,
  197. '100' => 62,
  198. '250' => 63,
  199. '500' => 64,
  200. '1000' => 65,
  201. '2500' => 66,
  202. '5000' => 67,
  203. '10000' => 68
  204. ]
  205. ]);
  206. ?>