summaryrefslogtreecommitdiff
path: root/config/config.default.php
blob: a0303b15af53882265425800e3bce93f34ed6446 (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
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
<?php

// To change settings create a config.php

return [
    // MySQL-Connection Settings
    'database'         => [
        'host' => 'localhost',
        'user' => 'root',
        'pw'   => '',
        'db'   => 'engelsystem',
    ],

    // For accessing stats
    'api_key'          => '',

    // Enable maintenance mode (show a static page)
    'maintenance'      => false,

    // Set to development to enable debugging messages
    'environment'      => 'production',

    // URL to the angel faq and job description
    'faq_url'          => 'https://events.ccc.de/congress/2013/wiki/Static:Volunteers',

    // Contact email address, linked on every page
    'contact_email'    => 'mailto:ticket@c3heaven.de',

    // From address of all emails
    'no_reply_email'   => 'noreply@engelsystem.de',

    // Default theme, 1=style1.css
    'theme'            => 1,

    // Available themes
    'available_themes' => [
        '4' => 'Engelsystem 33c3 (2016)',
        '3' => 'Engelsystem 32c3 (2015)',
        '2' => 'Engelsystem cccamp15',
        '0' => 'Engelsystem light',
        '1' => 'Engelsystem dark'
    ],

    // Number of News shown on one site
    'display_news'     => 6,

    // Anzahl Stunden bis zum Austragen eigener Schichten
    'last_unsubscribe' => 3,

    // Setzt den zu verwendenden Crypto-Algorithmus (entsprechend der Dokumentation von crypt()).
    // Falls ein Benutzerpasswort in einem anderen Format gespeichert ist,
    // wird es bei der ersten Benutzung des Klartext-Passworts in das neue Format
    // konvertiert.
    //  MD5         '$1'
    //  Blowfish    '$2y$13'
    //  SHA-256     '$5$rounds=5000'
    //  SHA-512     '$6$rounds=5000'
    'crypt_alg'        => '$6$rounds=5000',

    'min_password_length'     => 8,

    // Wenn Engel beim Registrieren oder in ihrem Profil eine T-Shirt Größe angeben sollen, auf true setzen:
    'enable_tshirt_size'      => true,

    // Number of shifts to freeload until angel is locked for shift signup.
    'max_freeloadable_shifts' => 2,

    // local timezone
    'timezone'                => 'Europe/Berlin',

    // weigh every shift the same
    //'shift_sum_formula'       => 'SUM(`end` - `start`)',

    // Multiply 'night shifts' and freeloaded shifts (start or end between 2 and 6 exclusive) by 2
    'shift_sum_formula'       => '
        SUM(
            (1 +
                (
                  (HOUR(FROM_UNIXTIME(`Shifts`.`end`)) > 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`end`)) < 6)
                  OR (HOUR(FROM_UNIXTIME(`Shifts`.`start`)) > 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`start`)) < 6)
                  OR (HOUR(FROM_UNIXTIME(`Shifts`.`start`)) <= 2 AND HOUR(FROM_UNIXTIME(`Shifts`.`end`)) >= 6)
                )
            )
            * (`Shifts`.`end` - `Shifts`.`start`)
            * (1 - 3 * `ShiftEntry`.`freeloaded`)
        )
    ',

    // Voucher calculation
    'voucher_settings'        => [
        'initial_vouchers'   => 2,
        'shifts_per_voucher' => 1,
    ],

    // Available locales in /locale/
    'locales'                 => [
        'de_DE.UTF-8' => 'Deutsch',
        'en_US.UTF-8' => 'English',
    ],

    'default_locale' => 'en_US.UTF-8',

    // Available T-Shirt sizes, set value to null if not available
    'tshirt_sizes'   => [
        ''     => _('Please select...'),
        'S'    => 'S',
        'M'    => 'M',
        'L'    => 'L',
        'XL'   => 'XL',
        '2XL'  => '2XL',
        '3XL'  => '3XL',
        '4XL'  => '4XL',
        '5XL'  => '5XL',
        'S-G'  => 'S Girl',
        'M-G'  => 'M Girl',
        'L-G'  => 'L Girl',
        'XL-G' => 'XL Girl',
    ],
];