2011-06-01 12:13:39 +02:00
|
|
|
<?php
|
2013-12-03 16:18:22 +01:00
|
|
|
|
2017-01-21 23:07:20 +01:00
|
|
|
// To change settings create a config.php
|
|
|
|
|
|
|
|
return [
|
|
|
|
// MySQL-Connection Settings
|
2017-08-31 12:25:06 +02:00
|
|
|
'database' => [
|
2018-01-14 01:48:50 +01:00
|
|
|
'host' => env('MYSQL_HOST', (env('CI', false) ? 'mariadb' : 'localhost')),
|
|
|
|
'database' => env('MYSQL_DATABASE', 'engelsystem'),
|
|
|
|
'username' => env('MYSQL_USER', 'root'),
|
|
|
|
'password' => env('MYSQL_PASSWORD', ''),
|
2017-01-21 23:07:20 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
// For accessing stats
|
2017-08-31 12:25:06 +02:00
|
|
|
'api_key' => '',
|
2017-01-21 23:07:20 +01:00
|
|
|
|
|
|
|
// Enable maintenance mode (show a static page)
|
2018-08-12 23:44:46 +02:00
|
|
|
'maintenance' => (bool)env('MAINTENANCE', false),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
|
|
|
// Set to development to enable debugging messages
|
2018-08-12 23:44:46 +02:00
|
|
|
'environment' => env('ENVIRONMENT', 'production'),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
|
|
|
// URL to the angel faq and job description
|
2018-08-12 23:44:46 +02:00
|
|
|
'faq_url' => env('FAQ_URL', 'https://events.ccc.de/congress/2013/wiki/Static:Volunteers'),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
|
|
|
// Contact email address, linked on every page
|
2018-02-11 20:14:35 +01:00
|
|
|
'contact_email' => env('CONTACT_EMAIL', 'mailto:ticket@c3heaven.de'),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2017-07-17 22:17:58 +02:00
|
|
|
// From address of all emails
|
2018-02-11 20:14:35 +01:00
|
|
|
'no_reply_email' => env('NO_REPLY_EMAIL', 'noreply@engelsystem.de'),
|
2017-07-17 22:17:58 +02:00
|
|
|
|
2017-07-20 01:14:28 +02:00
|
|
|
// Default theme, 1=style1.css
|
2018-08-12 23:44:46 +02:00
|
|
|
'theme' => env('THEME', 1),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2017-07-20 01:14:28 +02:00
|
|
|
// Available themes
|
2017-08-31 12:25:06 +02:00
|
|
|
'available_themes' => [
|
2017-11-30 21:03:51 +01:00
|
|
|
'6' => 'Engelsystem 34c3 dark (2017)',
|
|
|
|
'5' => 'Engelsystem 34c3 light (2017)',
|
2017-07-20 01:14:28 +02:00
|
|
|
'4' => 'Engelsystem 33c3 (2016)',
|
|
|
|
'3' => 'Engelsystem 32c3 (2015)',
|
|
|
|
'2' => 'Engelsystem cccamp15',
|
|
|
|
'0' => 'Engelsystem light',
|
|
|
|
'1' => 'Engelsystem dark'
|
|
|
|
],
|
|
|
|
|
2018-03-31 05:19:49 +02:00
|
|
|
// Rewrite URLs with mod_rewrite
|
|
|
|
'rewrite_urls' => true,
|
|
|
|
|
2017-01-21 23:07:20 +01:00
|
|
|
// Number of News shown on one site
|
2017-08-31 12:25:06 +02:00
|
|
|
'display_news' => 6,
|
|
|
|
|
2017-09-20 12:18:08 +02:00
|
|
|
// Users are able to sign up
|
2018-08-12 23:44:46 +02:00
|
|
|
'registration_enabled' => (bool)env('REGISTRATION_ENABLED', true),
|
2017-09-20 12:18:08 +02:00
|
|
|
|
2017-08-31 12:25:06 +02:00
|
|
|
// Only arrived angels can sign up for shifts
|
|
|
|
'signup_requires_arrival' => false,
|
2017-01-21 23:07:20 +01:00
|
|
|
|
|
|
|
// Anzahl Stunden bis zum Austragen eigener Schichten
|
2017-08-31 12:25:06 +02:00
|
|
|
'last_unsubscribe' => 3,
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2017-07-17 18:54:06 +02:00
|
|
|
// Setzt den zu verwendenden Crypto-Algorithmus (entsprechend der Dokumentation von crypt()).
|
2017-01-21 23:07:20 +01:00
|
|
|
// 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'
|
2017-08-31 12:25:06 +02:00
|
|
|
'crypt_alg' => '$6$rounds=5000',
|
2017-01-21 23:07:20 +01:00
|
|
|
|
|
|
|
'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
|
2018-08-12 23:44:46 +02:00
|
|
|
'timezone' => env('TIMEZONE', 'Europe/Berlin'),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
2017-03-02 08:11:52 +01:00
|
|
|
// 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
|
2017-01-21 23:07:20 +01:00
|
|
|
'shift_sum_formula' => '
|
|
|
|
SUM(
|
2017-01-22 01:02:52 +01:00
|
|
|
(1 +
|
2017-01-21 23:07:20 +01:00
|
|
|
(
|
|
|
|
(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`)
|
|
|
|
)
|
|
|
|
',
|
|
|
|
|
2017-03-02 08:11:52 +01:00
|
|
|
// Voucher calculation
|
2017-01-21 23:07:20 +01:00
|
|
|
'voucher_settings' => [
|
2017-12-26 14:17:22 +01:00
|
|
|
'initial_vouchers' => 0,
|
2017-01-21 23:07:20 +01:00
|
|
|
'shifts_per_voucher' => 1,
|
|
|
|
],
|
|
|
|
|
|
|
|
// Available locales in /locale/
|
|
|
|
'locales' => [
|
|
|
|
'de_DE.UTF-8' => 'Deutsch',
|
|
|
|
'en_US.UTF-8' => 'English',
|
|
|
|
],
|
|
|
|
|
2018-08-12 23:44:46 +02:00
|
|
|
'default_locale' => env('DEFAULT_LOCALE', 'en_US.UTF-8'),
|
2017-01-21 23:07:20 +01:00
|
|
|
|
|
|
|
// Available T-Shirt sizes, set value to null if not available
|
|
|
|
'tshirt_sizes' => [
|
|
|
|
'' => _('Please select...'),
|
|
|
|
'S' => 'S',
|
2017-12-28 15:08:48 +01:00
|
|
|
'S-G' => 'S Girl',
|
2017-01-21 23:07:20 +01:00
|
|
|
'M' => 'M',
|
2017-12-28 15:08:48 +01:00
|
|
|
'M-G' => 'M Girl',
|
2017-01-21 23:07:20 +01:00
|
|
|
'L' => 'L',
|
2017-12-28 15:08:48 +01:00
|
|
|
'L-G' => 'L Girl',
|
2017-01-21 23:07:20 +01:00
|
|
|
'XL' => 'XL',
|
2017-12-28 15:08:48 +01:00
|
|
|
'XL-G' => 'XL Girl',
|
2017-01-21 23:07:20 +01:00
|
|
|
'2XL' => '2XL',
|
|
|
|
'3XL' => '3XL',
|
2017-12-29 12:43:20 +01:00
|
|
|
'4XL' => '4XL'
|
2017-01-21 23:07:20 +01:00
|
|
|
],
|
2018-08-13 16:30:27 +02:00
|
|
|
|
|
|
|
// IP addresses of reverse proxies that are trusted, can be an array or a comma separated list
|
|
|
|
'trusted_proxies' => env('TRUSTED_PROXIES', ['127.0.0.0/8', '::ffff:127.0.0.0/8', '::1/128']),
|
2016-10-01 10:48:19 +02:00
|
|
|
];
|