Няма описание

AI 8d19d7cd42 adding gitignore updates преди 1 месец
admin efd4495650 adding filter for deleted orders преди 3 месеца
assets d1df3130b8 adding functionality to hide orders преди 3 месеца
data d54d377282 Merge remote-tracking branch 'refs/remotes/origin/main' преди 3 месеца
docs 4e6ca82967 adding style guide преди 3 месеца
includes d1df3130b8 adding functionality to hide orders преди 3 месеца
.gitignore 8d19d7cd42 adding gitignore updates преди 1 месец
README.md 5a5209c139 improoving security, adding readme преди 3 месеца
cart.php 76871458c4 fixing mobile responsiveness преди 3 месеца
checkout.php 76871458c4 fixing mobile responsiveness преди 3 месеца
config.sample.php 51018d7e5e moving config to sample, with ignore for local config преди 3 месеца
default.htaccess 5a5209c139 improoving security, adding readme преди 3 месеца
favicon.ico 3ac77d431f adding favicon преди 3 месеца
index.php 812a5cddc2 adding disclaimer message преди 3 месеца
product.php 8b4fedf193 refactor terminology from "Nachbestellung" to "Vorbestellung" across преди 3 месеца
reservation.php 8b4fedf193 refactor terminology from "Nachbestellung" to "Vorbestellung" across преди 3 месеца

README.md

Feuerwehr Vereinsshop - Setup

Voraussetzungen

  • PHP 8.x
  • Webserver
  • Schreibrechte auf data/

1) .htaccess aktivieren

Im Projektordner liegt eine Vorlage unter data/default.htaccess.

Benenne sie um in:

  • data/.htaccess

Beispiel:

mv data/default.htaccess data/.htaccess

2) Globale Config und Admins im config.php einrichten

In config.php mindestens diese Werte anpassen:

  • SITE_NAME
  • SITE_URL
  • ADMIN_EMAIL
  • FROM_EMAIL
  • FROM_NAME
  • Optional: ORDER_PREFIX, RESERVATION_EXPIRY_DAYS

Passe ADMIN_USERS an:

  • Für jeden Admin einen Eintrag mit Benutzername und Passwort-Hash hinzufügen
  • Standard-Accounts/Hashes nach dem ersten Setup ersetzen

Beispielstruktur:

define('ADMIN_USERS', [
    'admin' => '...bcrypt-hash...',
    'manager' => '...bcrypt-hash...'
]);

Generate the password: https://www.onlinewebtoolkit.com/hash-generator using the crypt functionality.