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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?php
  2. if (PHP_VERSION_ID < 70000) {
  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('NONSSL_SITE_URL', 'oppaiti.me'); //The FQDN of your site
  9. define('SSL_SITE_URL', 'oppaiti.me'); //The FQDN of your site, make this different if you are using a subdomain for ssl
  10. define('SITE_IP', '8.8.8.8'); //The IP address by which your site can be publicly accessed
  11. define('SERVER_ROOT', '/var/www'); //The root of the server, used for includes, purpose is to shorten the path string
  12. // Tracker urls to be added to torrent files ala bittorrent.org/beps/bep_0012.html
  13. define('ANNOUNCE_URLS', [['https://tracker.'.SSL_SITE_URL.':34001',
  14. 'https://tracker2.'.SSL_SITE_URL.':34001',
  15. 'https://tracker3.'.SSL_SITE_URL.':34001',
  16. 'https://tracker4.'.SSL_SITE_URL.':34001']] );
  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('NONSSL_STATIC_SERVER', 'static/');
  21. define('SSL_STATIC_SERVER', 'static/');
  22. // Keys
  23. define('ENCKEY', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); //Random key. The key for encryption
  24. define('SCHEDULE_KEY', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); // Random key. This key must be the argument to schedule.php for the schedule to work.
  25. define('RSS_HASH', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); //Random key. Used for generating unique RSS auth key.
  26. // MySQL details
  27. define('SQLHOST', 'localhost'); //The MySQL host ip/fqdn
  28. define('SQLLOGIN', 'root');//The MySQL login
  29. define('SQLPASS', 'toor'); //The MySQL password
  30. define('SQLDB', 'gazelle'); //The MySQL database to use
  31. define('SQLPORT', 3306); //The MySQL port to connect on
  32. define('SQLSOCK', '/var/run/mysqld/mysqld.sock');
  33. // Memcached details
  34. define('MEMCACHED_SERVERS',
  35. [['host' => 'unix:///var/run/memcached.sock', 'port' => 0, 'buckets' => 1]]
  36. );
  37. // Sphinx details
  38. define('SPHINX_HOST', 'localhost');
  39. define('SPHINX_PORT', 9312);
  40. define('SPHINXQL_HOST', '127.0.0.1');
  41. define('SPHINXQL_PORT', 9306);
  42. define('SPHINXQL_SOCK', false);
  43. define('SPHINX_MAX_MATCHES', 1000); // Must be <= the server's max_matches variable (default 1000)
  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. if (!empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 80) {
  51. define('SITE_URL', NONSSL_SITE_URL);
  52. define('STATIC_SERVER', NONSSL_STATIC_SERVER);
  53. } else {
  54. define('SITE_URL', SSL_SITE_URL);
  55. define('STATIC_SERVER', SSL_STATIC_SERVER);
  56. }
  57. // Site settings
  58. define('DEBUG_MODE', false); //Set to false if you dont want everyone to see debug information, can be overriden with 'site_debug'
  59. define('DEBUG_WARNINGS', true); //Set to true if you want to see PHP warnings in the footer
  60. define('OPEN_REGISTRATION', false); //Set to false to disable open regirstration, true to allow anyone to register
  61. define('USER_LIMIT', 0); //The maximum number of users the site can have, 0 for no limit
  62. define('STARTING_INVITES', 0); //# of invites to give to newly registered users
  63. define('BLOCK_TOR', false); //Set to true to block Tor users
  64. define('BLOCK_OPERA_MINI', false); //Set to true to block Opera Mini proxy
  65. define('DONOR_INVITES', 2);
  66. if (!defined('FEATURE_EMAIL_REENABLE')) {
  67. define('FEATURE_EMAIL_REENABLE', true);
  68. }
  69. // User class IDs needed for automatic promotions. Found in the 'permissions' table
  70. // Name of class Class ID (NOT level)
  71. define('ADMIN', '1');
  72. define('USER', '2');
  73. define('MEMBER', '3');
  74. define('POWER', '4');
  75. define('ELITE', '5');
  76. define('VIP', '21');
  77. define('TORRENT_MASTER','23');
  78. define('LEGEND', '8');
  79. define('MOD', '11');
  80. define('SYSOP', '15');
  81. define('ARTIST', '19');
  82. define('DONOR', '20');
  83. define('POWER_TM', '24');
  84. define('FLS_TEAM', '9000');
  85. define('FORUM_MOD', '9001');
  86. // Forums
  87. define('STAFF_FORUM', 7);
  88. define('DONOR_FORUM', 9);
  89. define('TRASH_FORUM_ID', 4);
  90. define('ANNOUNCEMENT_FORUM_ID', 10);
  91. // Pagination
  92. define('TORRENT_COMMENTS_PER_PAGE', 10);
  93. define('POSTS_PER_PAGE', 25);
  94. define('TOPICS_PER_PAGE', 50);
  95. define('TORRENTS_PER_PAGE', 50);
  96. define('REQUESTS_PER_PAGE', 25);
  97. define('MESSAGES_PER_PAGE', 25);
  98. define('LOG_ENTRIES_PER_PAGE', 50);
  99. // Cache catalogues
  100. define('THREAD_CATALOGUE', 500); // Limit to THREAD_CATALOGUE posts per cache key.
  101. // IRC settings
  102. define('BOT_NICK', 'bot');
  103. define('BOT_SERVER', 'irc.'.SSL_SITE_URL); // IRC server address. Used for onsite chat tool.
  104. define('BOT_PORT', 6667);
  105. define('BOT_CHAN', '#bot');
  106. define('BOT_ANNOUNCE_CHAN', '#announce');
  107. define('BOT_REQUEST_CHAN', '#requests');
  108. define('BOT_STAFF_CHAN', '#staff');
  109. define('BOT_DISABLED_CHAN', '#disabled'); // Channel to refer disabled users to.
  110. define('BOT_HELP_CHAN', '#help');
  111. define('BOT_DEBUG_CHAN', '#debup');
  112. define('BOT_REPORT_CHAN', '#report');
  113. define('BOT_NICKSERV_PASS', '');
  114. define('BOT_INVITE_CHAN', '#invites'); // Channel for non-members seeking an interview
  115. define('BOT_INTERVIEW_CHAN', '#interview'); // Channel for the interviews
  116. define('BOT_INTERVIEW_NUM', 5);
  117. define('BOT_INTERVIEW_STAFF', '#interview-staff'); // Channel for the interviewers
  118. define('SOCKET_LISTEN_PORT', 51010);
  119. define('SOCKET_LISTEN_ADDRESS', '8.8.8.8');
  120. define('ADMIN_CHAN', '#admin');
  121. define('LAB_CHAN', '#lab');
  122. define('STATUS_CHAN', '#status');
  123. // Miscellaneous values
  124. define('RANK_ONE_COST', 5);
  125. define('RANK_TWO_COST', 10);
  126. define('RANK_THREE_COST', 15);
  127. define('RANK_FOUR_COST', 20);
  128. define('RANK_FIVE_COST', 30);
  129. define('MAX_RANK', 6);
  130. define('MAX_EXTRA_RANK', 8);
  131. define('DONOR_FORUM_RANK', 6);
  132. define('MAX_SPECIAL_RANK', 3);
  133. $ForumsRevealVoters = array();
  134. $ForumsDoublePost = array();
  135. $Categories = array('Movies', 'Anime', 'Manga', 'Games', 'Other');
  136. $GroupedCategories = $Categories;
  137. $CategoryIcons = array('music.png', 'apps.png', 'ebook.png', 'audiobook.png', 'elearning.png', 'comedy.png', 'comics.png');
  138. $Media = array('TV', 'DVD', 'Bluray', 'HD DVD', 'VHS', 'VCD', 'LD', 'Web');
  139. $MediaManga = array('Scan', 'Web');
  140. $Platform = array('Windows', 'OS X', 'Linux', 'BSD', 'Flash', 'Java', 'Android', 'iOS');
  141. $Containers = array('AVI', 'MKV', 'MP4', 'OGM', 'WMV', 'ISO', 'VOB IFO', 'TS', 'M2TS');
  142. $ContainersGames = array('ISO', 'BIN-CUE', 'Installer', 'Loose');
  143. $Codecs = array('h264', '10-bit h264', 'XviD', 'DivX', 'WMV', 'DVD5', 'DVD9', 'HEVC', 'MPEG-2');
  144. $Resolutions = array('SD', '480p', '720p', '1080i', '1080p', '4K', 'Other');
  145. $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');
  146. $Subbing = array('Softsubs', 'Hardsubs', 'RAW');
  147. $Languages = array('English', 'Japanese', 'Dual Language');
  148. $Archives = array('7z', 'zip', 'rar');
  149. $ArchivesManga = array('cbz', 'cbr', 'cb7');
  150. $Formats = array('MP3', 'FLAC', 'Ogg Vorbis', 'AAC', 'AC3', 'DTS');
  151. $Bitrates = array('192', 'APS (VBR)', 'V2 (VBR)', 'V1 (VBR)', '256', 'APX (VBR)', 'V0 (VBR)', 'q8.x (VBR)', '320', 'Lossless', '24bit Lossless', 'Other');
  152. $CollageCats = array(0=>'Personal', 1=>'Theme', 2=>'Staff picks', 3=>'Artists');
  153. $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');
  154. //$ForumCats = array(1=>'Site', 5=>'Community', 10=>'Help', 8=>'Music', 20=>'Trash'); //No longer needed
  155. $ZIPGroups = array(
  156. 0 => 'MP3 (VBR) - High Quality',
  157. 1 => 'MP3 (VBR) - Low Quality',
  158. 2 => 'MP3 (CBR)',
  159. 3 => 'FLAC - Lossless',
  160. 4 => 'Others'
  161. );
  162. //3D array of attributes, OptionGroup, OptionNumber, Name
  163. $ZIPOptions = array(
  164. '00' => array(0, 0, 'V0'),
  165. '01' => array(0, 1, 'APX'),
  166. '02' => array(0, 2, '256'),
  167. '03' => array(0, 3, 'V1'),
  168. '10' => array(1, 0, '224'),
  169. '11' => array(1, 1, 'V2'),
  170. '12' => array(1, 2, 'APS'),
  171. '13' => array(1, 3, '192'),
  172. '20' => array(2, 0, '320'),
  173. '21' => array(2, 1, '256'),
  174. '22' => array(2, 2, '224'),
  175. '23' => array(2, 3, '192'),
  176. '30' => array(3, 0, 'FLAC / 24bit / Vinyl'),
  177. '31' => array(3, 1, 'FLAC / 24bit / DVD'),
  178. '32' => array(3, 2, 'FLAC / 24bit / SACD'),
  179. '33' => array(3, 3, 'FLAC / Log (100) / Cue'),
  180. '34' => array(3, 4, 'FLAC / Log (100)'),
  181. '35' => array(3, 5, 'FLAC / Log'),
  182. '36' => array(3, 6, 'FLAC'),
  183. '40' => array(4, 0, 'DTS'),
  184. '41' => array(4, 1, 'Ogg Vorbis'),
  185. '42' => array(4, 2, 'AAC - 320'),
  186. '43' => array(4, 3, 'AAC - 256'),
  187. '44' => array(4, 4, 'AAC - q5.5'),
  188. '45' => array(4, 5, 'AAC - q5'),
  189. '46' => array(4, 6, 'AAC - 192')
  190. );
  191. // Ratio requirements, in descending order
  192. // Columns: Download amount, required ratio, grace period
  193. $RatioRequirements = array(
  194. //array(0, 0, date('Y-m-d H:i:s'))
  195. array(200 * 1024 * 1024 * 1024, 0.60, date('Y-m-d H:i:s')),
  196. array(160 * 1024 * 1024 * 1024, 0.60, date('Y-m-d H:i:s')),
  197. array(120 * 1024 * 1024 * 1024, 0.50, date('Y-m-d H:i:s')),
  198. array(100 * 1024 * 1024 * 1024, 0.40, date('Y-m-d H:i:s')),
  199. array(80 * 1024 * 1024 * 1024, 0.30, date('Y-m-d H:i:s')),
  200. array(60 * 1024 * 1024 * 1024, 0.20, date('Y-m-d H:i:s')),
  201. array(40 * 1024 * 1024 * 1024, 0.15, date('Y-m-d H:i:s')),
  202. array(20 * 1024 * 1024 * 1024, 0.10, date('Y-m-d H:i:s')),
  203. array(10 * 1024 * 1024 * 1024, 0.05, date('Y-m-d H:i:s', time() - (60 * 60 * 24 * 14)))
  204. );
  205. //Captcha fonts should be located in /classes/fonts
  206. $CaptchaFonts = array(
  207. 'ARIBLK.TTF',
  208. 'IMPACT.TTF',
  209. 'TREBUC.TTF',
  210. 'TREBUCBD.TTF',
  211. 'TREBUCBI.TTF',
  212. 'TREBUCIT.TTF',
  213. 'VERDANA.TTF',
  214. 'VERDANAB.TTF',
  215. 'VERDANAI.TTF',
  216. 'VERDANAZ.TTF');
  217. //Captcha images should be located in /captcha
  218. $CaptchaBGs = array(
  219. 'captcha1.png',
  220. 'captcha2.png',
  221. 'captcha3.png',
  222. 'captcha4.png',
  223. 'captcha5.png',
  224. 'captcha6.png',
  225. 'captcha7.png',
  226. 'captcha8.png',
  227. 'captcha9.png');
  228. // Special characters, and what they should be converted to
  229. // Used for torrent searching
  230. $SpecialChars = array(
  231. '&' => 'and'
  232. );
  233. // God I wish I didn't have to do this but I just don't care anymore.
  234. $AutomatedBadgeIDs = array(
  235. 'DL' => array(
  236. '8' => 10,
  237. '16' => 11,
  238. '32' => 12,
  239. '64' => 13,
  240. '128' => 14,
  241. '256' => 15,
  242. '512' => 16,
  243. '1024' => 17,
  244. '2048' => 18
  245. )
  246. );
  247. ?>