config.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. // Configuration file for the webshop
  3. // Site settings
  4. define('SITE_NAME', 'Feuerwehr Freising Test Shop');
  5. define('SITE_URL', ''); // Leave empty for relative URLs
  6. // Admin settings
  7. // Default password: admin123
  8. // Change this hash after first login!
  9. //
  10. // To generate a new password hash in bash (using Python bcrypt):
  11. // python3 -c "import bcrypt; print(bcrypt.hashpw(b'your_new_password', bcrypt.gensalt(rounds=10, prefix=b'2y')).decode())"
  12. //
  13. // Alternative using htpasswd (if Apache tools are installed):
  14. // htpasswd -bnBC 10 "" your_new_password | sed 's/^://' | sed 's/\$2y\$/\$2y\$/'
  15. //
  16. // Copy the output hash and replace the value below.
  17. //
  18. define('ADMIN_PASSWORD_HASH', '$2y$10$gArNDW.HhPmDcwYJ/xWRiOPkNop3695UIYzkV.G8WHQRUtLJVPLhy');
  19. // Reservation settings
  20. define('RESERVATION_EXPIRY_DAYS', 60);
  21. // Email settings
  22. define('ADMIN_EMAIL', 'inbox@medowar.de'); // Change to your admin email
  23. define('FROM_EMAIL', 'shop@medowar.de'); // Change to your sender email
  24. define('FROM_NAME', SITE_NAME);
  25. // Data file paths
  26. define('DATA_DIR', __DIR__ . '/data/');
  27. define('PRODUCTS_FILE', DATA_DIR . 'products.json');
  28. define('RESERVATIONS_FILE', DATA_DIR . 'reservations.json');
  29. // Session settings
  30. if (session_status() === PHP_SESSION_NONE) {
  31. session_start();
  32. }