Aucune description

Medowar 9c4fd77cd6 making config.php readable for the admin il y a 6 jours
admin 9c4fd77cd6 making config.php readable for the admin il y a 6 jours
assets 9c4fd77cd6 making config.php readable for the admin il y a 6 jours
backup-server d915024af7 implementing s3 upload of older backups il y a 1 mois
data 4b0677dace reworking nametag to integrate in the existing orderflow il y a 1 semaine
docs 9c4fd77cd6 making config.php readable for the admin il y a 6 jours
includes 1a69553e26 adding processed item button in nametag overview il y a 1 semaine
scripts dac21eb286 making the update script also write the version to file il y a 1 semaine
update-server 86f4a2f579 adding updater functionality il y a 1 mois
.gitignore 82372334e3 adding backup functionality il y a 1 mois
.htaccess ec38e6151b Security: generic order-success copy, file rate limits, HSTS/CSP, canonical mail origin il y a 2 mois
README.md 82372334e3 adding backup functionality il y a 1 mois
cart.php b05b7abe9e Harden checkout and admin flows before customer deploy. il y a 2 mois
checkout.php b05b7abe9e Harden checkout and admin flows before customer deploy. il y a 2 mois
config.feuerwehr.php 4b0677dace reworking nametag to integrate in the existing orderflow il y a 1 semaine
config.sample.php 4b0677dace reworking nametag to integrate in the existing orderflow il y a 1 semaine
faq.php 643816b5cf implementing FAQ il y a 3 mois
favicon.png c9911553c4 favicon il y a 3 mois
index.php fb1916772d adding colored tiles to products on the main page/Overview il y a 2 mois
order-success.php 53944c08d6 Remove optional email order confirmation flow. il y a 2 mois
product.php 7b7b0e5794 more fixes il y a 2 mois

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.