summaryrefslogtreecommitdiff
path: root/data/global.pl
blob: 3889628a62801d419dbc9ef26cc4a0bbdaabb880 (plain)
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

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 = (
  version         => 'beta',
  url             => 'http://vndb.org',
  url_static      => 'http://s.vndb.org',
  cookie_domain   => '.vndb.org',
  cookie_key      => 'any-private-string-here',
  sharedmem_key   => 'VNDB',
  user_ranks      => [
       # rankname   allowed actions                                   # DB number
    [qw| visitor    hist                                          |], # 0
    [qw| loser      hist                                          |], # 1
    [qw| user       hist board edit                               |], # 2
    [qw| mod        hist board boardmod edit mod lock del         |], # 3
    [qw| admin      hist board boardmod edit mod lock del usermod |], # 4
  ],
  languages       => {
    cs  => q|Czech|,
    da  => q|Danish|,
    de  => q|German|,
    en  => q|English|,
    es  => q|Spanish|,
    fi  => q|Finnish|,
    fr  => q|French|,
    it  => q|Italian|,
    ja  => q|Japanese|,
    ko  => q|Korean|,
    nl  => q|Dutch|,
    no  => q|Norwegian|,
    pl  => q|Polish|,
    pt  => q|Portuguese|,
    ru  => q|Russian|,
    sv  => q|Swedish|,
    tr  => q|Turkish|,
    zh  => q|Chinese|,
  },
  producer_types  => {
    co => 'Company',
    in => 'Individual',
    ng => 'Amateur group',
  },
);


# Multi-specific options (Multi also uses some options in %S and %O)
our %M = (
  log_dir   => $ROOT.'/data/log',
  log_level => 3,        # 3: dbg, 2: wrn, 1: err
  modules   => {
    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;