mirror of
https://github.com/myronblair/tomsjavajive-app
synced 2026-06-30 17:50:56 -05:00
63 lines
2.5 KiB
PHP
63 lines
2.5 KiB
PHP
<?php
|
|
/**
|
|
* Tom's Java Jive - Main Configuration
|
|
*
|
|
* Edit these values for your deployment
|
|
*/
|
|
|
|
// Site Configuration
|
|
if (!defined('SITE_NAME')) { define('SITE_NAME', "Tom's Java Jive"); }
|
|
if (!defined('SITE_URL')) { define('SITE_URL', 'https://tomsjavajive.com'); } // Change to your domain
|
|
if (!defined('SITE_EMAIL')) { define('SITE_EMAIL', 'support@tomsjavajive.com'); }
|
|
|
|
// Environment
|
|
if (!defined('ENVIRONMENT')) { define('ENVIRONMENT', 'production'); } // development or production
|
|
if (!defined('DEBUG_MODE')) { define('DEBUG_MODE', false); }
|
|
|
|
// Session Configuration
|
|
if (!defined('SESSION_NAME')) { define('SESSION_NAME', 'tjj_session'); }
|
|
if (!defined('SESSION_LIFETIME')) { define('SESSION_LIFETIME', 86400 * 7); } // 7 days
|
|
|
|
// Security
|
|
if (!defined('HASH_COST')) { define('HASH_COST', 12); } // bcrypt cost factor
|
|
if (!defined('CSRF_TOKEN_NAME')) { define('CSRF_TOKEN_NAME', 'csrf_token'); }
|
|
|
|
// API Keys - UPDATE THESE
|
|
if (!defined('STRIPE_SECRET_KEY')) { define('STRIPE_SECRET_KEY', 'sk_test_your_stripe_key'); }
|
|
if (!defined('STRIPE_PUBLISHABLE_KEY')) { define('STRIPE_PUBLISHABLE_KEY', 'pk_test_your_stripe_key'); }
|
|
if (!defined('STRIPE_WEBHOOK_SECRET')) { define('STRIPE_WEBHOOK_SECRET', 'whsec_your_webhook_secret'); }
|
|
|
|
if (!defined('SENDGRID_API_KEY')) { define('SENDGRID_API_KEY', 'SG.your_sendgrid_key'); }
|
|
if (!defined('SENDER_EMAIL')) { define('SENDER_EMAIL', 'noreply@tomsjavajive.com'); }
|
|
if (!defined('SENDER_NAME')) { define('SENDER_NAME', "Tom's Java Jive"); }
|
|
|
|
// Twilio (optional)
|
|
if (!defined('TWILIO_SID')) { define('TWILIO_SID', ''); }
|
|
if (!defined('TWILIO_AUTH_TOKEN')) { define('TWILIO_AUTH_TOKEN', ''); }
|
|
if (!defined('TWILIO_PHONE')) { define('TWILIO_PHONE', ''); }
|
|
|
|
// File Uploads
|
|
if (!defined('UPLOAD_DIR')) { define('UPLOAD_DIR', __DIR__ . '/../uploads/'); }
|
|
if (!defined('MAX_UPLOAD_SIZE')) { define('MAX_UPLOAD_SIZE', 5 * 1024 * 1024); } // 5MB
|
|
if (!defined('ALLOWED_IMAGE_TYPES')) { define('ALLOWED_IMAGE_TYPES', ['image/jpeg', 'image/png', 'image/gif', 'image/webp']); }
|
|
|
|
// Pagination
|
|
if (!defined('ITEMS_PER_PAGE')) { define('ITEMS_PER_PAGE', 12); }
|
|
if (!defined('ADMIN_ITEMS_PER_PAGE')) { define('ADMIN_ITEMS_PER_PAGE', 20); }
|
|
|
|
// Currency
|
|
if (!defined('CURRENCY_CODE')) { define('CURRENCY_CODE', 'USD'); }
|
|
if (!defined('TJJ_CURRENCY_SYMBOL')) { define('TJJ_CURRENCY_SYMBOL', '$'); }
|
|
|
|
// Timezone
|
|
date_default_timezone_set('America/New_York');
|
|
|
|
// Error Reporting
|
|
if (ENVIRONMENT === 'development' || DEBUG_MODE) {
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', 1);
|
|
} else {
|
|
error_reporting(0);
|
|
ini_set('display_errors', 0);
|
|
}
|