<?php
// Database configuration
define('DB_HOST', 'localhost');
define('DB_USER', 'passara1_leave_system');
define('DB_PASS', 'Leave21125');
define('DB_NAME', 'passara1_leave');

// Create database connection
$conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

// Set timezone
date_default_timezone_set('Asia/Kolkata');

// Session configuration
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
?>
