Žiadny popis

Medowar 9853804243 bump version 1 týždeň pred
admin a68eb09477 adding nametag collector functionality 1 týždeň pred
assets 53944c08d6 Remove optional email order confirmation flow. 2 mesiacov pred
backup-server d915024af7 implementing s3 upload of older backups 1 mesiac pred
data a68eb09477 adding nametag collector functionality 1 týždeň pred
docs cada25a903 Add log rotation and retention settings for error and access logs 1 mesiac pred
includes 9853804243 bump version 1 týždeň pred
scripts b7e6f44187 adding backup-server functionality 1 mesiac pred
update-server 86f4a2f579 adding updater functionality 1 mesiac pred
.gitignore 82372334e3 adding backup functionality 1 mesiac pred
.htaccess ec38e6151b Security: generic order-success copy, file rate limits, HSTS/CSP, canonical mail origin 2 mesiacov pred
README.md 82372334e3 adding backup functionality 1 mesiac pred
cart.php b05b7abe9e Harden checkout and admin flows before customer deploy. 2 mesiacov pred
checkout.php b05b7abe9e Harden checkout and admin flows before customer deploy. 2 mesiacov pred
config.feuerwehr.php a68eb09477 adding nametag collector functionality 1 týždeň pred
config.sample.php a68eb09477 adding nametag collector functionality 1 týždeň pred
faq.php 643816b5cf implementing FAQ 3 mesiacov pred
favicon.png c9911553c4 favicon 3 mesiacov pred
index.php fb1916772d adding colored tiles to products on the main page/Overview 2 mesiacov pred
order-success.php 53944c08d6 Remove optional email order confirmation flow. 2 mesiacov pred
product.php 7b7b0e5794 more fixes 2 mesiacov pred

README.md

Stadt Freising PSA-Service

Zweck

Dieses Projekt ist ein internes Bestellsystem für persönliche Schutzausrüstung der Stadt Freising und wird organisatorisch durch Amt 32 - Öffentliche Sicherheit und Ordnung betreut.

Kernfunktionen

  • Produktübersicht mit Kategorien
  • Produktdetailseiten mit Größenwahl
  • Warenkorb ohne Mengensteuerung
  • Checkout mit Name, E-Mail, Organisation und Kommentar
  • Direkte interne Weiterleitung nach Bestellabschluss
  • Adminbereich für Bestellungen, Produkte, Kategorien, Organisationen, Einstellungen, FAQ und Admins
  • Positionsbezogene Bearbeitung und Stornierung von Bestellungen

Voraussetzungen

  • PHP 8.x
  • Schreibrechte auf data/
  • funktionierende PHP-Mailzustellung für Bestellmails

Wichtige Dateien

  • Konfiguration: config.php
  • Zentrale Logik: includes/functions.php
  • Bestellungen: data/orders.json
  • Organisationen: data/organizations.json
  • Systemeinstellungen: data/settings.json
  • Produkte: data/products.json
  • Produktbilder: data/uploads/
  • Backups: data/backups/ (wird automatisch erstellt, nicht öffentlich)

Einrichtung

  1. config.sample.php nach config.php kopieren und anpassen (SITE_URL, FROM_EMAIL, ORDER_PREFIX, …).
  2. Schreibrechte auf data/ und data/ratelimit/ (für Rate-Limits) sicherstellen.
  3. Statische Dateien bereitstellen: favicon.png (Document Root), assets/branding/, assets/fonts/, assets/no-image.jpg.
  4. Adminzugänge in data/admins.json auf dem Server pflegen (nicht aus dem Repo übernehmen).
  5. Empfängeradresse, PDF-Anhang und Backups im Admin unter Einstellungen prüfen.
  6. Organisationen im Admin unter Organisationen verwalten pflegen.
  7. Apache: .htaccess aktiv (schützt config.php und JSON unter data/).

Weitere Konstanten: docs/CONFIG_REFERENCE.md.

Technische Dokumentation im Browser: docs/index.php (Markdown wird mit marked gerendert).

Hinweise

  • Bestellungen werden nicht im Browser für Endnutzer gespeichert oder nachverfolgt.
  • Kein automatisiertes Test-/CI-Setup vorgesehen.