<?php
define('DB_HOST', 'localhost');
define('DB_NAME', 'rsecurity_db');
define('DB_USER', 'root');
define('DB_PASS', '');

define('ADMIN_USERNAME', 'admin');
define('ADMIN_PASSWORD', 'admin123');

// Razorpay Configuration (Test Mode)
define('RAZORPAY_KEY_ID', 'rzp_live_7dRjk3kv56A3WT');
define('RAZORPAY_KEY_SECRET', 'fFHVTpbpCHK0kiLKtIXs0TnQ');

date_default_timezone_set('UTC');

function getDB() {
    $pdo = new PDO("mysql:host=" . DB_HOST . ";dbname=" . DB_NAME . ";charset=utf8mb4", DB_USER, DB_PASS);
    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
    return $pdo;
}
