diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config.default.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/config/config.default.php b/config/config.default.php index e6833a2b..5287b51b 100644 --- a/config/config.default.php +++ b/config/config.default.php @@ -4,10 +4,10 @@ $maintenance_mode = false; // URL to the angel faq and job description -$faq_url = "https://events.ccc.de/congress/2013/wiki/Static:Volunteers"; +$faq_url = 'https://events.ccc.de/congress/2013/wiki/Static:Volunteers'; // contact email address, linked on every page -$contact_email = "mailto:ticket@c3heaven.de"; +$contact_email = 'mailto:ticket@c3heaven.de'; // Default-Theme auf der Startseite, 1=style1.css usw. $default_theme = 1; @@ -36,33 +36,33 @@ $enable_tshirt_size = true; $max_freeloadable_shifts = 2; // local timezone -date_default_timezone_set("Europe/Berlin"); +date_default_timezone_set('Europe/Berlin'); -// multiply "night shifts" and freeloaded shifts (start or end between 2 and 6 exclusive) by 2 -$shift_sum_formula = "SUM( +// 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 + 'initial_vouchers' => 2, + 'shifts_per_voucher' => 1 ]; // weigh every shift the same -// $shift_sum_formula = "SUM(`end` - `start`)"; +// $shift_sum_formula = 'SUM(`end` - `start`)'; // For accessing stats -$api_key = ""; +$api_key = ''; // MySQL-Connection Settings $config = [ - 'host' => "localhost", - 'user' => "root", - 'pw' => "", - 'db' => "engelsystem" + 'host' => 'localhost', + 'user' => 'root', + 'pw' => '', + 'db' => 'engelsystem' ]; |