summaryrefslogtreecommitdiff
path: root/config/config.default.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2013-12-27 18:45:27 +0100
committerPhilip Häusler <msquare@notrademark.de>2013-12-27 18:45:27 +0100
commitc589219a962203ddb2a8b3899f964ca5ae5209ef (patch)
treeee8c01d5a839c4bd15365868851562e5d35e897c /config/config.default.php
parent2c41fcdc0902279fd5c651a7ba08dbe7ba02d94b (diff)
freeloader feature
Diffstat (limited to 'config/config.default.php')
-rw-r--r--config/config.default.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/config.default.php b/config/config.default.php
index 1356beaf..bd3415da 100644
--- a/config/config.default.php
+++ b/config/config.default.php
@@ -26,6 +26,9 @@ define('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
date_default_timezone_set("Europe/Berlin");
@@ -34,13 +37,13 @@ $PentabarfXMLhost = "cccv.pentabarf.org";
$PentabarfXMLpath = "Xcal/conference/";
$PentabarfXMLEventID = "31";
-// multiply "night shifts" (start or end between 2 and 6 exclusive) by 2
+// 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`)
+ ))*(`Shifts`.`end` - `Shifts`.`start`)*(-2 * `ShiftEntry`.`freeloaded`)
)";
// weigh every shift the same