<?php
// Sample configuration (DO NOT use in production as-is).
// Copy to config.php and fill with real values.

define('DB_HOST',    'localhost');
define('DB_PORT',    3306);
define('DB_NAME',    'your_db');
define('DB_USER',    'your_user');
define('DB_PASS',    'your_pass');

define('ADMIN_PASSWORD',  'change-me');
define('ADMIN_SESSION_TTL', 28800);

define('APP_NAME',    'FormBuilder');
define('APP_URL',     'https://yourdomain.com/formbuilder');
define('APP_TIMEZONE','UTC');

define('FROM_EMAIL', 'no-reply@yourdomain.com');
define('FROM_NAME', 'Your Business');
define('ADMIN_EMAIL', 'admin@yourdomain.com');

define('SMTP_HOST', 'smtp.yourdomain.com');
define('SMTP_PORT', 465);
define('SMTP_SECURE', 'ssl');
define('SMTP_USER', 'smtp-user');
define('SMTP_PASS', 'smtp-pass');

define('UPLOAD_MAX_MB',       10);
define('EMAIL_ATTACH_MAX_MB',  8);
define('ALLOWED_EXTENSIONS', 'jpg,jpeg,png,gif,pdf,doc,docx,xls,xlsx,txt,zip');
define('RATE_LIMIT_MAX',    10);
define('RATE_LIMIT_WINDOW', 3600);
define('ALLOWED_ORIGIN', 'https://yourdomain.com');

// Booking / Stripe
define('STRIPE_MODE', 'test'); // test | live
define('STRIPE_CURRENCY', 'eur');
define('STRIPE_TEST_SECRET_KEY', 'sk_test_...');
define('STRIPE_TEST_PUBLISHABLE_KEY', 'pk_test_...');
define('STRIPE_TEST_WEBHOOK_SECRET', 'whsec_...');
define('STRIPE_LIVE_SECRET_KEY', 'sk_live_...');
define('STRIPE_LIVE_PUBLISHABLE_KEY', 'pk_live_...');
define('STRIPE_LIVE_WEBHOOK_SECRET', 'whsec_...');

// Keep legacy constants aligned (optional)
define('STRIPE_SECRET_KEY', STRIPE_TEST_SECRET_KEY);
define('STRIPE_PUBLISHABLE_KEY', STRIPE_TEST_PUBLISHABLE_KEY);
define('STRIPE_WEBHOOK_SECRET', STRIPE_TEST_WEBHOOK_SECRET);

// QR signing secret (required for member QR passes)
define('QR_SIGNING_SECRET', 'change-this-to-a-long-random-secret');

// Cron secret
if (!defined('CRON_SECRET')) define('CRON_SECRET', 'change-this-to-a-long-random-secret');

