<?php
declare(strict_types=1);

define('APP_NAME', 'Atakoy Su Sporlari');
define('BASE_URL', getenv('ASSK_BASE_URL') ?: 'https://www.assskyuzme.com');
define('DB_HOST', getenv('ASSK_DB_HOST') ?: 'localhost');
define('DB_NAME', getenv('ASSK_DB_NAME') ?: 'assskyuzme_db');
define('DB_USER', getenv('ASSK_DB_USER') ?: 'assskyuzme_db');
define('DB_PASS', getenv('ASSK_DB_PASS') ?: 'O-_&#-XLoNLfkmkx');
define('DB_CHARSET', 'utf8mb4');
define('CONTACT_PHONE', '0552 695 48 90');
define('CONTACT_TEL', '+905526954890');
define('CONTACT_WHATSAPP', 'https://wa.me/905526954890');

$sessionPath = dirname(__DIR__) . '/storage/sessions';
if (!is_dir($sessionPath)) {
    mkdir($sessionPath, 0775, true);
}
ini_set('session.save_path', $sessionPath);
ini_set('session.cookie_httponly', '1');
ini_set('session.use_strict_mode', '1');
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') {
    ini_set('session.cookie_secure', '1');
}
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}