1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
package VNDB;
our(%O, %S, $ROOT);
# options for YAWF
our %O = (
db_login => [ 'dbi:Pg:dbname=vndb', 'vndb', 'passwd' ],
debug => 1,
logfile => $ROOT.'/data/log/vndb.log',
);
# VNDB-specific options (object_data)
our %S = (%S,
version => `cd $VNDB::ROOT; git describe` =~ /^(.+)$/ && $1,
url => 'http://vndb.org',
url_static => 'http://s.vndb.org',
skin_default => 'angel',
cookie_domain => '.vndb.org',
cookie_auth => 'vndb_auth',
global_salt => 'any-private-string-here',
source_url => 'http://git.blicky.net/vndb.git/?h=master',
admin_email => 'contact@vndb.org',
user_ranks => [
# allowed actions # DB number
[qw| hist |], # 0
[qw| hist |], # 1
[qw| hist board |], # 2
[qw| hist board edit tag |], # 3
[qw| hist board boardmod edit tag mod lock del tagmod |], # 4
[qw| hist board boardmod edit tag mod lock del tagmod usermod |], # 5
],
languages => [qw|cs da de en es fi fr hu it ja ko nl no pl pt-br pt-pt ru sk sv tr vi zh|],
producer_types => [qw|co in ng|],
discussion_boards => [qw|an db v p u|],
vn_lengths => [ 0..5 ],
anime_types => [qw|tv ova mov oth web spe mv|],
vn_relations => {
# id => [ order, reverse ]
seq => [ 0, 'preq' ],
preq => [ 1, 'seq' ],
set => [ 2, 'set' ],
alt => [ 3, 'alt' ],
char => [ 4, 'char' ],
side => [ 5, 'par' ],
par => [ 6, 'side' ],
ser => [ 7, 'ser' ],
fan => [ 8, 'orig' ],
orig => [ 9, 'fan' ],
},
prod_relations => {
'old' => [ 0, 'new' ],
'new' => [ 1, 'old' ],
'sub' => [ 2, 'par' ],
'par' => [ 3, 'sub' ],
'imp' => [ 4, 'ipa' ],
'ipa' => [ 5, 'imp' ],
'spa' => [ 6, 'ori' ],
'ori' => [ 7, 'spa' ],
},
age_ratings => [undef, 0, 6..18],
release_types => [qw|complete partial trial|],
platforms => [qw|win dos lin mac dvd gba msx nds nes p98 psp ps1 ps2 ps3 drc sat sfc wii xb3 oth|],
media => {
#DB qty?
cd => 1,
dvd => 1,
gdr => 1,
blr => 1,
flp => 1,
mrt => 1,
mem => 1,
umd => 1,
nod => 1,
in => 0,
otc => 0
},
resolutions => [
# TODO: Make translatable!
[ 'Unknown / console / handheld', '' ],
[ 'Non-standard', '' ],
[ '640x480 (480p)', '4:3' ],
[ '800x600', '4:3' ],
[ '1024x768', '4:3' ],
[ '1600x1200', '4:3' ],
[ '640x400', 'widescreen' ],
[ '1024x600', 'widescreen' ],
[ '1024x640', 'widescreen' ],
[ '1280x720 (720p)', 'widescreen' ],
[ '1920x1080 (1080p)', 'widescreen' ],
],
voiced => [ 0..4 ],
animated => [ 0..4 ],
wishlist_status => [ 0..3 ],
rlst_rstat => [ 0..4 ], # 2 = hardcoded 'OK', < 2 = hardcoded 'NOK'
rlst_vstat => [ 0..4 ], # 2 = hardcoded 'OK', 0 || 4 = hardcoded 'NOK'
);
# Multi-specific options (Multi also uses some options in %S and %O)
our %M = (
log_dir => $ROOT.'/data/log',
modules => {
#API => {}, # disabled by default, not really needed
RG => {},
Image => {},
Sitemap => {},
#Anime => {}, # disabled by default, requires AniDB username/pass
Maintenance => {},
#IRC => {}, # disabled by default, no need to run an IRC bot when debugging
},
);
# allow the settings to be overwritten in config.pl
require $ROOT.'/data/config.pl' if -f $ROOT.'/data/config.pl';
1;
|