<?php
/**
 * Application Configuration
 * Research Survey Management System
 * 
 * Styled to match Mutalex Academy design system
 */

// Error reporting
error_reporting(E_ALL);
ini_set('display_errors', 0);
ini_set('log_errors', 1);

// Timezone
date_default_timezone_set('Africa/Johannesburg');

// Session configuration
ini_set('session.cookie_httponly', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.cookie_secure', 0); // Set to 1 for HTTPS
ini_set('session.gc_maxlifetime', 7200); // 2 hours

// Application constants
define('APP_NAME', 'Mutalex Academy');
define('APP_VERSION', '1.0.0');
define('BASE_URL', 'http://localhost/lms/rese');
define('UPLOAD_DIR', __DIR__ . '/../assets/uploads/');
define('MAX_UPLOAD_SIZE', 10 * 1024 * 1024); // 10MB

// Allowed file types
define('ALLOWED_FILE_TYPES', ['jpg', 'jpeg', 'png', 'gif', 'pdf', 'doc', 'docx', 'mp3', 'wav', 'mp4']);

// Session timeout (seconds)
define('SESSION_TIMEOUT', 7200);

// Pagination
define('ITEMS_PER_PAGE', 20);

// Site logo path (relative to site root)
define('SITE_LOGO', 'assets/images/logo_1757657555.jpg');

// Load database config
require_once __DIR__ . '/database.php';