Browse Source

Bring the config template up to speed

pjc 5 years ago
parent
commit
a4a6bf0089
1 changed files with 138 additions and 89 deletions
  1. 138
    89
      classes/config.template

+ 138
- 89
classes/config.template View File

1
 <?php
1
 <?php
2
 if (version_compare(PHP_VERSION, '7.0.0', '<')) {
2
 if (version_compare(PHP_VERSION, '7.0.0', '<')) {
3
-  die("Gazelle requires PHP 7.0.0 or later to function properly");
3
+    die("Gazelle requires PHP 7.0.0 or later to function properly");
4
 }
4
 }
5
 //date_default_timezone_set('EST');
5
 //date_default_timezone_set('EST');
6
 
6
 
7
 // Main settings
7
 // Main settings
8
-define('SITE_NAME',     'Oppaitime'); //The name of your site
9
-define('SITE_DOMAIN',   'oppaiti.me'); //The FQDN of your site
10
-define('IMAGE_DOMAIN',  'img.oppaiti.me'); //The FQDN of your image host
11
-define('SERVER_ROOT',   '/var/www/oppaiti.me'); //The root of the server, used for includes
12
-define('TORRENT_STORE', '/var/torrents/'); //Where torrent files are stored
8
+define('SITE_NAME',     'BioTorrents.de'); // The name of your site
9
+define('SITE_DOMAIN',   'biotorrents.de'); // The FQDN of your site
10
+define('IMAGE_DOMAIN',  'pics.biotorrents.de'); // The FQDN of your image host
11
+define('SERVER_ROOT',   '/var/www/html/biotorrents.de'); // The root of the server, used for includes
12
+define('TORRENT_STORE', '/var/www/torrents/'); // Where torrent files are stored
13
 
13
 
14
 // Tracker urls to be added to torrent files ala bittorrent.org/beps/bep_0012.html
14
 // Tracker urls to be added to torrent files ala bittorrent.org/beps/bep_0012.html
15
 define('ANNOUNCE_URLS', [[
15
 define('ANNOUNCE_URLS', [[
16
-  'https://tracker.'.SITE_DOMAIN.':34001',
17
-  'https://tracker2.'.SITE_DOMAIN.':34001',
18
-  'https://tracker3.'.SITE_DOMAIN.':34001',
19
-  'https://tracker4.'.SITE_DOMAIN.':34001'
16
+  'https://track.biotorrents.de',
17
+  #'https://tracker2.'.SITE_DOMAIN.':34001',
20
 ]]);
18
 ]]);
21
 
19
 
22
 // Name for bonus points currency
20
 // Name for bonus points currency
23
-define('BONUS_POINTS', 'Nips');
21
+define('BONUS_POINTS', 'Bonus Points');
24
 
22
 
25
 // Don't hard code API keys for services
23
 // Don't hard code API keys for services
26
-define('API_KEYS', ['ANIDB' => 'AAAAAAAAAAAAAAAA']);
24
+define('API_KEYS', ['Entrez' => '000000000000000000000000000000000000']);
27
 
25
 
28
 // Allows you to run static content off another server. Default is usually what you want.
26
 // Allows you to run static content off another server. Default is usually what you want.
29
 define('STATIC_SERVER', '/static/');
27
 define('STATIC_SERVER', '/static/');
32
 define('INTEGRITY_ALGO', 'sha256');
30
 define('INTEGRITY_ALGO', 'sha256');
33
 
31
 
34
 // Keys
32
 // Keys
35
-define('ENCKEY',       'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); //Random key. The key for encryption
36
-define('IMAGE_PSK',    'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); //Pre-shared key for generating hmacs for the image proxy
37
-define('SCHEDULE_KEY', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); // Random key. This key must be the argument to schedule.php for the schedule to work.
38
-define('RSS_HASH',     'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); //Random key. Used for generating unique RSS auth key.
33
+define('ENCKEY',       '000000000000000000000000000000000000000000000000000000000000'); // Random key. The key for encryption
34
+define('IMAGE_PSK',    '000000000000000000000000000000000000000000000000000000000000'); // Pre-shared key for generating hmacs for the image proxy
35
+define('SCHEDULE_KEY', '000000000000000000000000000000000000000000000000000000000000'); // Random key. This key must be the argument to schedule.php for the schedule to work.
36
+define('RSS_HASH',     '000000000000000000000000000000000000000000000000000000000000'); // Random key. Used for generating unique RSS auth key.
39
 
37
 
40
 // MySQL details
38
 // MySQL details
41
-define('SQLHOST',  'localhost'); //The MySQL host ip/fqdn
42
-define('SQLLOGIN', 'root');//The MySQL login
43
-define('SQLPASS',  'toor'); //The MySQL password
44
-define('SQLDB',    'gazelle'); //The MySQL database to use
45
-define('SQLPORT',  3306); //The MySQL port to connect on
39
+define('SQLHOST',  'localhost'); // The MySQL host ip/fqdn
40
+define('SQLLOGIN', 'biotorrents'); // The MySQL login
41
+define('SQLPASS',  '000000000000000000000000000000000000000000000000000000000000'); // The MySQL password
42
+define('SQLDB',    'gazelle_production'); // The MySQL database to use
43
+define('SQLPORT',  3306); // The MySQL port to connect on
46
 define('SQLSOCK',  '/var/run/mysqld/mysqld.sock');
44
 define('SQLSOCK',  '/var/run/mysqld/mysqld.sock');
47
 
45
 
48
 // Memcached details
46
 // Memcached details
49
-define('MEMCACHED_SERVERS',
50
-  [['host' => 'unix:///var/run/memcached.sock', 'port' => 0, 'buckets' => 1]]
47
+define(
48
+    'MEMCACHED_SERVERS',
49
+    [['host' => 'unix:///var/run/memcached/memcached.sock', 'port' => 0, 'buckets' => 1]]
51
 );
50
 );
52
 
51
 
53
 // Sphinx details
52
 // Sphinx details
62
 // Ocelot details
61
 // Ocelot details
63
 define('TRACKER_HOST',      '0.0.0.0');
62
 define('TRACKER_HOST',      '0.0.0.0');
64
 define('TRACKER_PORT',      34000);
63
 define('TRACKER_PORT',      34000);
65
-define('TRACKER_SECRET',    'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); // Must be 32 characters and match site_password in Ocelot's config.cpp
66
-define('TRACKER_REPORTKEY', 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'); // Must be 32 characters and match report_password in Ocelot's config.cpp
64
+define('TRACKER_SECRET',    '00000000000000000000000000000000'); // Must be 32 characters and match site_password in Ocelot's config.cpp
65
+define('TRACKER_REPORTKEY', '00000000000000000000000000000000'); // Must be 32 characters and match report_password in Ocelot's config.cpp
67
 
66
 
68
 // Site settings
67
 // Site settings
69
-define('DEBUG_MODE',        false); //Set to false if you dont want everyone to see debug information, can be overriden with 'site_debug'
70
-define('DEBUG_WARNINGS',    true); //Set to true if you want to see PHP warnings in the footer
71
-define('OPEN_REGISTRATION', false); //Set to false to disable open regirstration, true to allow anyone to register
72
-define('USER_LIMIT',        0); //The maximum number of users the site can have, 0 for no limit
73
-define('STARTING_INVITES',  0); //# of invites to give to newly registered users
68
+define('DEBUG_MODE',        false); // Set to false if you dont want everyone to see debug information, can be overriden with 'site_debug'
69
+define('DEBUG_WARNINGS',    true); // Set to true if you want to see PHP warnings in the footer
70
+define('OPEN_REGISTRATION', false); // Set to false to disable open regirstration, true to allow anyone to register
71
+define('USER_LIMIT',        100); // The maximum number of users the site can have, 0 for no limit
72
+define('STARTING_INVITES',  2); // # of invites to give to newly registered users
74
 define('STARTING_UPLOAD',   2147483648); // Amount of upload to give to newly registered users
73
 define('STARTING_UPLOAD',   2147483648); // Amount of upload to give to newly registered users
75
-define('BLOCK_TOR',         false); //Set to true to block Tor users
76
-define('BLOCK_OPERA_MINI',  false); //Set to true to block Opera Mini proxy
74
+define('BLOCK_TOR',         false); // Set to true to block Tor users
75
+define('BLOCK_OPERA_MINI',  false); // Set to true to block Opera Mini proxy
77
 define('DONOR_INVITES',     2);
76
 define('DONOR_INVITES',     2);
78
 
77
 
79
 // Features
78
 // Features
80
-define('FEATURE_DONATE',             false); // Enable donation page
79
+define('FEATURE_DONATE',             true); // Enable donation page
81
 define('FEATURE_EMAIL_REENABLE',     true);  // Send re-enable requests to user's email
80
 define('FEATURE_EMAIL_REENABLE',     true);  // Send re-enable requests to user's email
82
-define('FEATURE_ENFORCE_LOCATIONS',  true);  // Require users to verify login from unknown locations
83
-define('FEATURE_IRC',                true);  // Attempt to send messages to IRC
81
+define('FEATURE_ENFORCE_LOCATIONS',  false);  // Require users to verify login from unknown locations
82
+define('FEATURE_IRC',                false);  // Attempt to send messages to IRC
84
 define('FEATURE_SEND_EMAIL',         true);  // Attempt to send email from the site
83
 define('FEATURE_SEND_EMAIL',         true);  // Attempt to send email from the site
85
 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)
84
 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)
86
 
85
 
87
 // User class IDs needed for automatic promotions. Found in the 'permissions' table
86
 // User class IDs needed for automatic promotions. Found in the 'permissions' table
88
 // Name of class  Class ID (NOT level)
87
 // Name of class  Class ID (NOT level)
89
 define('ADMIN',          '1');
88
 define('ADMIN',          '1');
90
-define('USER',           '2');
91
-define('MEMBER',         '3');
92
-define('POWER',          '4');
93
-define('ELITE',          '5');
94
-define('LEGEND',         '8');
89
+define('USER',           '2'); # Called "Member" in the permissions manager; Hon'ble Membah
90
+define('MEMBER',         '0'); # Unused because the permissions are now flat
91
+define('POWER',          '0');
92
+define('ELITE',          '0');
93
+define('LEGEND',         '0');
95
 define('MOD',            '11');
94
 define('MOD',            '11');
96
 define('SYSOP',          '15');
95
 define('SYSOP',          '15');
97
-define('ARTIST',         '19');
98
-define('DONOR',          '20');
99
-define('VIP',            '21');
100
-define('TORRENT_MASTER', '23');
101
-define('POWER_TM',       '24');
96
+define('ARTIST',         '0');
97
+define('DONOR',          '20'); # Still in use for people who donate
98
+define('VIP',            '0');
99
+define('TORRENT_MASTER', '0');
100
+define('POWER_TM',       '0');
102
 define('FLS_TEAM',       '33');
101
 define('FLS_TEAM',       '33');
103
 define('FORUM_MOD',      '9001');
102
 define('FORUM_MOD',      '9001');
104
 
103
 
105
 // Forums
104
 // Forums
106
-define('STAFF_FORUM',           7);
107
-define('DONOR_FORUM',           9);
108
-define('TRASH_FORUM_ID',        4);
109
-define('ANNOUNCEMENT_FORUM_ID', 10);
105
+define('STAFF_FORUM',           0); # @todo
106
+define('DONOR_FORUM',           0); # @todo
107
+define('TRASH_FORUM_ID',        8);
108
+define('ANNOUNCEMENT_FORUM_ID', 1);
110
 
109
 
111
 // Pagination
110
 // Pagination
112
 define('TORRENT_COMMENTS_PER_PAGE', 10);
111
 define('TORRENT_COMMENTS_PER_PAGE', 10);
157
 define('FORUMS_TO_REVEAL_VOTERS',     []);
156
 define('FORUMS_TO_REVEAL_VOTERS',     []);
158
 define('FORUMS_TO_ALLOW_DOUBLE_POST', []);
157
 define('FORUMS_TO_ALLOW_DOUBLE_POST', []);
159
 
158
 
160
-$Categories = ['Movies', 'Anime', 'Manga', 'Games', 'Other'];
159
+$Categories = [
160
+  'DNA',
161
+  'mRNA',
162
+  'rRNA',
163
+  'tRNA',
164
+  'Protein',
165
+  'Other',
166
+];
161
 $GroupedCategories = $Categories;
167
 $GroupedCategories = $Categories;
162
-$CategoryIcons = ['music.png', 'apps.png', 'ebook.png', 'audiobook.png', 'elearning.png', 'comedy.png', 'comics.png'];
168
+#$CategoryIcons = ['music.png', 'apps.png', 'ebook.png', 'audiobook.png', 'elearning.png', 'comedy.png', 'comics.png'];
163
 
169
 
164
-$Media = ['TV', 'DVD', 'Bluray', 'HD DVD', 'VHS', 'VCD', 'LD', 'Web'];
165
-$MediaManga = ['Scan', 'Web'];
166
-$Platform = ['Windows', 'OS X', 'Linux', 'BSD', 'Flash', 'Java', 'Android', 'iOS', '3DS'];
167
-$Containers = ['AVI', 'MKV', 'MP4', 'OGM', 'WMV', 'ISO', 'VOB IFO', 'TS', 'M2TS'];
168
-$ContainersGames = ['ISO', 'BIN-CUE', 'Installer', 'Loose'];
169
-$Codecs = ['h264', '10-bit h264', 'XviD', 'DivX', 'WMV', 'DVD5', 'DVD9', 'HEVC', 'MPEG-2'];
170
-$Resolutions = ['SD', '480p', '720p', '1080i', '1080p', '4K', 'Other'];
171
-$AudioFormats = ['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'];
172
-$Subbing = ['Softsubs', 'Hardsubs', 'RAW'];
173
-$Languages = ['English', 'Japanese', 'Dual Language', 'None'];
174
-$Archives = ['7z', 'zip', 'tar.gz', 'tar.bz2', 'rar'];
175
-$ArchivesManga = ['cbz', 'cbr', 'cb7'];
170
+$Media = [
171
+  'Sanger',
172
+  'Shotgun',
173
+  'Illumina',
174
+  'PacBio',
175
+  'Nanopore',
176
+  'Other',
177
+];
178
+#$MediaManga = ['Scan', 'Web'];
179
+#$Platform = ['Windows', 'OS X', 'Linux', 'BSD', 'Flash', 'Java', 'Android', 'iOS', '3DS'];
180
+$Containers = [
181
+  'EMBL',
182
+  'FASTA',
183
+  'GenBank',
184
+  'PIR',
185
+  'SwissProt',
186
+  'Plain',
187
+];
188
+#$ContainersGames = ['ISO', 'BIN-CUE', 'Installer', 'Loose'];
189
+$Codecs = [
190
+  'CC BY',
191
+  'CC BY-SA',
192
+  'CC BY-ND',
193
+  'CC BY-NC',
194
+  'CC BY-NC-SA',
195
+  'CC BY-NC-ND',
196
+  'GNU GPL',
197
+  'GNU LGPL',
198
+  'GNU AGPL',
199
+  'GNU FDL',
200
+  'OpenMTA',
201
+  'Public Domain',
202
+];
203
+$Resolutions = [
204
+  'Contig',
205
+  'Scaffold',
206
+  'Chromosome',
207
+  'Whole Genome',
208
+];
209
+#$AudioFormats = ['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'];
210
+#$Subbing = ['Softsubs', 'Hardsubs', 'RAW'];
211
+#$Languages = ['English', 'Japanese', 'Dual Language', 'None'];
212
+$Archives = [
213
+  '7z',
214
+  'bzip2',
215
+  'gzip',
216
+  'RAR',
217
+  'ZIP',
218
+  'None',
219
+];
220
+#$ArchivesManga = ['cbz', 'cbr', 'cb7'];
176
 
221
 
177
-$Formats = ['MP3', 'FLAC', 'Ogg Vorbis', 'AAC', 'AC3', 'DTS'];
178
-$Bitrates = ['192', 'APS (VBR)', 'V2 (VBR)', 'V1 (VBR)', '256', 'APX (VBR)', 'V0 (VBR)', 'q8.x (VBR)', '320', 'Lossless', '24bit Lossless', 'Other'];
222
+#$Formats = ['MP3', 'FLAC', 'Ogg Vorbis', 'AAC', 'AC3', 'DTS'];
223
+#$Bitrates = ['192', 'APS (VBR)', 'V2 (VBR)', 'V1 (VBR)', '256', 'APX (VBR)', 'V0 (VBR)', 'q8.x (VBR)', '320', 'Lossless', '24bit Lossless', 'Other'];
179
 
224
 
180
-$CollageCats = [0=>'Personal', 1=>'Theme', 2=>'Staff picks', 3=>'Artists'];
225
+$CollageCats = [
226
+  0 => 'Personal',
227
+  1 => 'Theme',
228
+  2 => 'Staff Picks',
229
+  3 => 'Artists',
230
+];
181
 
231
 
182
-$ReleaseTypes = [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'];
232
+#$ReleaseTypes = [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'];
183
 
233
 
184
 // Ratio requirements, in descending order
234
 // Ratio requirements, in descending order
185
 // Columns: Download amount, Req Ratio (0% seeded), Req Ratio (100% seeded)
235
 // Columns: Download amount, Req Ratio (0% seeded), Req Ratio (100% seeded)
199
 
249
 
200
 // God I wish I didn't have to do this but I just don't care anymore.
250
 // God I wish I didn't have to do this but I just don't care anymore.
201
 define('AUTOMATED_BADGE_IDS', [
251
 define('AUTOMATED_BADGE_IDS', [
202
-  'DL' => [
203
-    '8' => 10,
204
-    '16' => 11,
205
-    '32' => 12,
206
-    '64' => 13,
207
-    '128' => 14,
208
-    '256' => 15,
209
-    '512' => 16,
210
-    '1024' => 17,
211
-    '2048' => 18
252
+  'DL'      => [
253
+    '8'     => 10,
254
+    '16'    => 11,
255
+    '32'    => 12,
256
+    '64'    => 13,
257
+    '128'   => 14,
258
+    '256'   => 15,
259
+    '512'   => 16,
260
+    '1024'  => 17,
261
+    '2048'  => 18
212
   ],
262
   ],
213
-  'UL' => [
214
-    '16'   => 30,
215
-    '32'   => 31,
216
-    '64'   => 32,
217
-    '128'  => 33,
218
-    '256'  => 34,
219
-    '512'  => 35,
220
-    '1024' => 36,
221
-    '2048' => 37,
222
-    '4096' => 38
263
+  'UL'      => [
264
+    '16'    => 30,
265
+    '32'    => 31,
266
+    '64'    => 32,
267
+    '128'   => 33,
268
+    '256'   => 34,
269
+    '512'   => 35,
270
+    '1024'  => 36,
271
+    '2048'  => 37,
272
+    '4096'  => 38
223
   ],
273
   ],
224
-  'Posts' => [
274
+  'Posts'   => [
225
     '25'    => 60,
275
     '25'    => 60,
226
     '50'    => 61,
276
     '50'    => 61,
227
     '100'   => 62,
277
     '100'   => 62,
233
     '10000' => 68
283
     '10000' => 68
234
   ]
284
   ]
235
 ]);
285
 ]);
236
-?>

Loading…
Cancel
Save