<?php
// Database configuration
define('DB_HOST', 'localhost');
define('DB_USER', 'artoffe_esp');
define('DB_PASS', 'unalduzgun');
define('DB_NAME', 'artoffe_esp');

// API Configuration
define('API_VERSION', 'v1');
define('JWT_SECRET', 'your_jwt_secret_key');
define('JWT_EXPIRY', 86400); // 24 hours

// Security
define('ENCRYPTION_KEY', 'your_encryption_key');
define('HASH_ALGO', 'sha256');

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

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

// Set charset
$con->set_charset("utf8mb4");

// Include functions
require_once 'functions.php';
require_once 'jwt.php';
?>
