Add environment indicator for development and live modes

This commit is contained in:
2026-09-08 13:06:48 +02:00
parent 9da056b480
commit c09f9b553b
6 changed files with 95 additions and 3 deletions
+13
View File
@@ -20,6 +20,19 @@ Fociz is een compleet, modern webplatform gebouwd in **PHP 8 & MariaDB** voor da
---
## 🚦 Omgevingsindicator (Dev vs Live)
In de linkerbovenhoek van elk scherm bevindt zich een opvallende flashy badge met live radar-ping animatie:
- **Development (Rood)**: Knippert rood met de tekst `DEVELOPMENT (DEV)` zodat u direct ziet dat u op de test/dev omgeving werkt.
- **Live (Groen)**: Knippert groen met de tekst `LIVE (MAIN)` voor de productie-omgeving.
### Hoe in te stellen per omgeving:
In het bestand **`includes/env_badge.php`**:
- **Op DEV**: `$environment = 'development';` *(staat standaard al zo ingesteld)*
- **Op MAIN / LIVE**: `$environment = 'live';` *(of zet `APP_ENV="live"` in `.env`)*
---
## 🚀 Kernmodules
1. **Dagplanning & Focus (`/planner.php`)**: