2011-06-01 12:13:39 +02:00
|
|
|
<?php
|
2017-01-21 13:58:53 +01:00
|
|
|
// Set to development to enable debugging messages
|
|
|
|
$environment = 'production';
|
2013-12-03 16:18:22 +01:00
|
|
|
|
2017-01-21 13:58:53 +01:00
|
|
|
// Enable maintenance mode (show a static page)
|
2015-08-09 17:46:57 +02:00
|
|
|
$maintenance_mode = false;
|
|
|
|
|
2013-12-03 16:18:22 +01:00
|
|
|
// URL to the angel faq and job description
|
2017-01-03 14:12:17 +01:00
|
|
|
$faq_url = 'https://events.ccc.de/congress/2013/wiki/Static:Volunteers';
|
2013-12-03 16:18:22 +01:00
|
|
|
|
2015-11-01 21:10:02 +01:00
|
|
|
// contact email address, linked on every page
|
2017-01-03 14:12:17 +01:00
|
|
|
$contact_email = 'mailto:ticket@c3heaven.de';
|
2015-11-01 21:10:02 +01:00
|
|
|
|
2011-06-01 14:30:29 +02:00
|
|
|
// Default-Theme auf der Startseite, 1=style1.css usw.
|
2013-12-01 19:47:38 +01:00
|
|
|
$default_theme = 1;
|
2011-06-01 14:30:29 +02:00
|
|
|
|
2005-09-10 19:25:43 +02:00
|
|
|
// Anzahl der News, die auf einer Seite ausgeben werden koennen...
|
2017-01-03 03:22:48 +01:00
|
|
|
$display_news = 6;
|
2005-09-10 19:25:43 +02:00
|
|
|
|
|
|
|
// Anzahl Stunden bis zum Austragen eigener Schichten
|
2017-01-03 03:22:48 +01:00
|
|
|
$last_unsubscribe = 3;
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2012-12-12 02:31:54 +01:00
|
|
|
// Setzt den zu verwendenden Crypto-Algorismus (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.
|
2017-01-01 18:49:43 +01:00
|
|
|
// $crypt_alg = '$1'; // MD5
|
|
|
|
// $crypt_alg = '$2y$13'; // Blowfish
|
|
|
|
// $crypt_alg = '$5$rounds=5000'; // SHA-256
|
|
|
|
$crypt_alg = '$6$rounds=5000'; // SHA-512
|
2012-12-12 02:31:54 +01:00
|
|
|
|
2017-01-01 18:49:43 +01:00
|
|
|
$min_password_length = 8;
|
2005-09-10 19:25:43 +02:00
|
|
|
|
2011-07-12 16:17:18 +02:00
|
|
|
// Wenn Engel beim Registrieren oder in ihrem Profil eine T-Shirt Größe angeben sollen, auf true setzen:
|
2013-12-03 16:18:22 +01:00
|
|
|
$enable_tshirt_size = true;
|
2006-08-29 11:02:47 +02:00
|
|
|
|
2013-12-27 18:45:27 +01:00
|
|
|
// Number of shifts to freeload until angel is locked for shift signup.
|
|
|
|
$max_freeloadable_shifts = 2;
|
|
|
|
|
2008-05-06 23:32:24 +02:00
|
|
|
// local timezone
|
2017-01-03 14:12:17 +01:00
|
|
|
date_default_timezone_set('Europe/Berlin');
|
2008-05-06 23:32:24 +02:00
|
|
|
|
2017-01-03 14:12:17 +01:00
|
|
|
// multiply 'night shifts' and freeloaded shifts (start or end between 2 and 6 exclusive) by 2
|
|
|
|
$shift_sum_formula = 'SUM(
|
2012-12-26 17:27:27 +01:00
|
|
|
(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)
|
2013-12-28 02:28:39 +01:00
|
|
|
))*(`Shifts`.`end` - `Shifts`.`start`)*(1 - 3 * `ShiftEntry`.`freeloaded`)
|
2017-01-03 14:12:17 +01:00
|
|
|
)';
|
2012-12-26 17:27:27 +01:00
|
|
|
|
2017-01-02 03:57:23 +01:00
|
|
|
// voucher calculation
|
2016-10-01 10:48:19 +02:00
|
|
|
$voucher_settings = [
|
2017-01-03 14:12:17 +01:00
|
|
|
'initial_vouchers' => 2,
|
|
|
|
'shifts_per_voucher' => 1
|
2016-10-01 10:48:19 +02:00
|
|
|
];
|
2016-02-05 22:57:57 +01:00
|
|
|
|
2012-12-26 17:27:27 +01:00
|
|
|
// weigh every shift the same
|
2017-01-03 14:12:17 +01:00
|
|
|
// $shift_sum_formula = 'SUM(`end` - `start`)';
|
2012-12-28 22:53:05 +01:00
|
|
|
|
|
|
|
// For accessing stats
|
2017-01-03 14:12:17 +01:00
|
|
|
$api_key = '';
|
2012-12-28 22:53:05 +01:00
|
|
|
|
2013-12-03 16:18:22 +01:00
|
|
|
// MySQL-Connection Settings
|
2016-10-01 10:48:19 +02:00
|
|
|
$config = [
|
2017-01-03 14:12:17 +01:00
|
|
|
'host' => 'localhost',
|
|
|
|
'user' => 'root',
|
|
|
|
'pw' => '',
|
|
|
|
'db' => 'engelsystem'
|
2016-10-01 10:48:19 +02:00
|
|
|
];
|