<?php
/**
 * includes/config.php
 * Global configuration and constants.
 */

// Database credentials
define('DB_HOST', 'localhost');
define('DB_NAME', 'emehama_community');
define('DB_USER', 'root');         // change as needed
define('DB_PASS', '');             // change as needed

// Site settings
define('SITE_NAME', 'Emehama Village Community');
define('ADMIN_PASSWORD', 'Ra2xa2006');   // Hardcoded admin password (only one admin)

// Paths
define('BASE_URL', '/Emehama_village/');   // adjust to your project root
define('QRCODE_UPLOAD_DIR', __DIR__ . '/../uploads/qrcodes/');
define('UPLOAD_DIR', __DIR__ . '/../uploads/');


define('SITE_URL', 'http://localhost/Emehama_village/'); // <-- CHANGE to your actual domain/path


if (session_status() === PHP_SESSION_NONE) {
    session_start();
}