| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?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 these hashes 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\$/'
- //
- // To add a new admin user:
- // 1) Create a new hash for the password (see commands above).
- // 2) Add a new entry to ADMIN_USERS: 'username' => 'hash'
- //
- // Example:
- // 'max' => '$2y$10$your_hash_here'
- //
- define('ADMIN_USERS', [
- 'admin' => '$2y$10$gArNDW.HhPmDcwYJ/xWRiOPkNop3695UIYzkV.G8WHQRUtLJVPLhy',
- 'manager' => '$2y$10$gArNDW.HhPmDcwYJ/xWRiOPkNop3695UIYzkV.G8WHQRUtLJVPLhy'
- ]);
- // Reservation settings
- define('RESERVATION_EXPIRY_DAYS', 60);
- define('ORDER_PREFIX', 'FWFS'); // Prefix for order number pattern: PREFIX-YEAR-SEQ
- // Email settings
- define('ADMIN_EMAIL', 'inbox@medowar.de'); // Change to your admin email
- define('FROM_EMAIL', 'shop@med0.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();
- }
|