aboutsummaryrefslogtreecommitdiff
path: root/config.php.sample
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-10-19 15:04:15 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-10-19 15:04:15 +0200
commit9f7b24bb6177d65e0b9d1b77a578c50af9c7f493 (patch)
tree70bb59ca2e5f4fd420f6638d237cbbe6a45ac31c /config.php.sample
parent64e898aa9b0a7faf1184ded80636b28fd0c32e88 (diff)
downloadpunktestand-9f7b24bb6177d65e0b9d1b77a578c50af9c7f493.tar.gz
punktestand-9f7b24bb6177d65e0b9d1b77a578c50af9c7f493.zip
unterstützte konfigurierbare "Streaks"
Ein Streak ist ein Zeitraum der zählt wie viele gleiche Ereignisse in zeitlicher Folge aufgetreten sind. Ein Streak wird durch ein nicht positives Ereignis beendet.
Diffstat (limited to 'config.php.sample')
-rw-r--r--config.php.sample22
1 files changed, 13 insertions, 9 deletions
diff --git a/config.php.sample b/config.php.sample
index 2ca654f..3fed3bc 100644
--- a/config.php.sample
+++ b/config.php.sample
@@ -1,18 +1,22 @@
<?php
$CONFIG = array(
+ /* Konfiguration für eine MySQL/MariaDB Datenbank */
'dbtype' => 'mysql',
'dbname' => 'punktestand',
'dbhost' => 'localhost',
'dbuser' => 'user',
'dbpassword' => 'password',
- 'bilder_pfad_format' => 'img/$SCHULJAHR/$JAHRGANG/'
-);
-/* Konfiguration für eine sqlite Datenbank
- * $CONFIG = array(
- * 'dbtype' => 'sqlite',
- * 'dbname' => './punktestand.sqlite',
- * 'bilder_pfad_format' => 'img/$SCHULJAHR/$JAHRGANG/'
- * );
- */
+ /* Konfiguration für eine sqlite Datenbank
+ * 'dbtype' => 'sqlite',
+ * 'dbname' => './punktestand.sqlite',
+ */
+
+ 'bilder_pfad_format' => 'img/$SCHULJAHR/$JAHRGANG/',
+
+ /* Konfiguration für die Streak-Anzeige */
+ 'streak_anzahl' => 5,
+ 'streak_ziel' => '&#x1F370',
+ 'streak_ereignis' => 'Kuchenpunkt',
+);
?>