From e9565a79eaa6b23bbf530dd8611feb1f170be781 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Tue, 3 Dec 2013 16:18:22 +0100 Subject: simplified config --- config/.gitignore | 5 ---- config/config.default.php | 59 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 config/config.default.php (limited to 'config') diff --git a/config/.gitignore b/config/.gitignore index cb667ea2..4f4773fb 100644 --- a/config/.gitignore +++ b/config/.gitignore @@ -1,6 +1 @@ -config_db.php -config_jabber.php -config_modem.php config.php -config_IAX.php -config_MessegeServer.php diff --git a/config/config.default.php b/config/config.default.php new file mode 100644 index 00000000..1356beaf --- /dev/null +++ b/config/config.default.php @@ -0,0 +1,59 @@ + 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`) +)"; + +// weigh every shift the same +// $shift_sum_formula = "SUM(`end` - `start`)"; + +// For accessing stats +$api_key = ""; + +// MySQL-Connection Settings +$config = array( + 'host' => "localhost", + 'user' => "root", + 'pw' => "", + 'db' => "engelsystem" +); +?> -- cgit v1.2.3-54-g00ecf