You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
engelsystem/config/config.default.php

141 lines
4.4 KiB
PHP

<?php
// To change settings create a config.php
return [
// MySQL-Connection Settings
'database' => [
'host' => env('MYSQL_HOST', (env('CI', false) ? 'mariadb' : 'localhost')),
'database' => env('MYSQL_DATABASE', 'engelsystem'),
'username' => env('MYSQL_USER', 'root'),
'password' => env('MYSQL_PASSWORD', ''),
],
// 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',
// Email config
'email' => [
// Can be mail, smtp, sendmail or log
'driver' => env('MAIL_DRIVER', 'smtp'),
'from' => [
// From address of all emails
'address' => env('MAIL_FROM_ADDRESS', 'noreply@engelsystem.de'),
'name' => env('MAIL_FROM_NAME', 'Engelsystem')
],
'host' => env('MAIL_HOST', 'localhost'),
'port' => env('MAIL_PORT', 587),
// Transport encryption like tls
'encryption' => env('MAIL_ENCRYPTION', null),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'sendmail' => '/usr/sbin/sendmail -bs',
],
// Default theme, 1=style1.css
'theme' => 1,
// Available themes
'available_themes' => [
'6' => 'Engelsystem 34c3 dark (2017)',
'5' => 'Engelsystem 34c3 light (2017)',
'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,
// Users are able to sign up
'registration_enabled' => true,
// Only arrived angels can sign up for shifts
'signup_requires_arrival' => false,
// Number of hours that an angel has to sign out own shifts
'last_unsubscribe' => 3,
// Define the algorithm to use for `crypt()` of passwords
// If the user uses an old algorithm the password will be converted to the new format
// MD5 '$1'
// Blowfish '$2y$13'
// SHA-256 '$5$rounds=5000'
// SHA-512 '$6$rounds=5000'
'crypt_alg' => '$6$rounds=5000',
'min_password_length' => 8,
// Enables the T-Shirt configuration on signup and profile
'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' => 0,
'shifts_per_voucher' => 1,
],
// Available locales in /locale/
'locales' => [
'de_DE.UTF-8' => 'Deutsch',
'en_US.UTF-8' => 'English',
],
// The default locale to use
'default_locale' => 'en_US.UTF-8',
// Available T-Shirt sizes, set value to null if not available
'tshirt_sizes' => [
'S' => 'S',
'S-G' => 'S Girl',
'M' => 'M',
'M-G' => 'M Girl',
'L' => 'L',
'L-G' => 'L Girl',
'XL' => 'XL',
'XL-G' => 'XL Girl',
'2XL' => '2XL',
'3XL' => '3XL',
'4XL' => '4XL'
],
];