Eine Website, um einen einfacheren Überblick zu behalten was man aktuell darf und was nicht
Sie bietet ein einfaches Interface, sowohl für Verwaltende als auch für den Endbenutzer, um via einer Ampel anzuzeigen, was aktuell erlaubt ist und was nicht.
Damit die Seite funktioniert, braucht man eine PHP-Instanz (z.B. mit Apache) und eine MySQL- oder MariaDB-Datenbank auf Linux. Das Passwort für die MariaDB muss in der einzigen Zeile in
/etc/dbpw
stehen. Wenn das der Fall ist und die Dateien auf den Webserver kopiert worden sind, kann man einmalig im Browser zur Installation die /admin.php aufrufen. Damit werden automatisch die DB-Tabellen eingerichtet und konfiguriert. Danach steht die Website zur Verfügung.
Für jeden, der das hier bearbeiten will:
Änderungen in der Datenbank müssen in der selftest.php gemacht werden. Das sichert, dass die DB in der Installation richtig ist und dass sie automatisch installiert wird.
Die Hauptseite ist die index.php. Die wichtigste Seite für das Bearbeiten der Ampeln ist die pages/ampel.php.
Neue Seiten müssen in der selftest.php hinzugefügt werden.
Vielen Dank an Niklas Werner für seine Mitarbeit und seinen Rat!