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