2011-06-01 12:13:39 +02:00
|
|
|
<?php
|
2013-12-03 16:18:22 +01:00
|
|
|
|
2015-08-09 17:46:57 +02:00
|
|
|
// Enable maintenance mode (showin a static page)
|
|
|
|
$maintenance_mode = false;
|
|
|
|
|
2013-12-03 16:18:22 +01:00
|
|
|
// URL to the angel faq and job description
|
|
|
|
$faq_url = "https://events.ccc.de/congress/2013/wiki/Static:Volunteers";
|
|
|
|
|
2015-11-01 21:10:02 +01:00
|
|
|
// contact email address, linked on every page
|
2016-12-06 14:16:40 +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...
|
|
|
|
$DISPLAY_NEWS = 6;
|
|
|
|
|
|
|
|
// Anzahl Stunden bis zum Austragen eigener Schichten
|
2013-12-03 16:18:22 +01:00
|
|
|
$LETZTES_AUSTRAGEN = 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.
|
2013-12-03 16:18:22 +01:00
|
|
|
// define('CRYPT_ALG', '$1'); // MD5
|
|
|
|
// define('CRYPT_ALG', '$2y$13'); // Blowfish
|
|
|
|
// define('CRYPT_ALG', '$5$rounds=5000'); // SHA-256
|
2017-01-01 15:43:20 +01:00
|
|
|
// define('CRYPT_ALG', '$6$rounds=5000'); // SHA-512
|
2012-12-12 02:31:54 +01:00
|
|
|
|
2017-01-01 15:43:20 +01:00
|
|
|
// define('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
|
|
|
|
date_default_timezone_set("Europe/Berlin");
|
|
|
|
|
2013-12-27 18:45:27 +01:00
|
|
|
// multiply "night shifts" and freeloaded shifts (start or end between 2 and 6 exclusive) by 2
|
2012-12-26 17:27:27 +01:00
|
|
|
$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)
|
2013-12-28 02:28:39 +01:00
|
|
|
))*(`Shifts`.`end` - `Shifts`.`start`)*(1 - 3 * `ShiftEntry`.`freeloaded`)
|
2012-12-26 17:27:27 +01:00
|
|
|
)";
|
|
|
|
|
2016-02-05 22:57:57 +01:00
|
|
|
// voucher calculation
|
2016-10-01 10:48:19 +02:00
|
|
|
$voucher_settings = [
|
2016-02-05 22:57:57 +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
|
2013-12-03 16:18:22 +01:00
|
|
|
// $shift_sum_formula = "SUM(`end` - `start`)";
|
2012-12-28 22:53:05 +01:00
|
|
|
|
|
|
|
// For accessing stats
|
|
|
|
$api_key = "";
|
|
|
|
|
2013-12-03 16:18:22 +01:00
|
|
|
// MySQL-Connection Settings
|
2016-10-01 10:48:19 +02:00
|
|
|
$config = [
|
2013-12-03 16:18:22 +01:00
|
|
|
'host' => "localhost",
|
|
|
|
'user' => "root",
|
|
|
|
'pw' => "",
|
2017-01-01 15:43:20 +01:00
|
|
|
'db' => "engelsystem"
|
2016-10-01 10:48:19 +02:00
|
|
|
];
|
2005-09-10 19:25:43 +02:00
|
|
|
?>
|