<?php
/**
 * Bootstrap when mobile PHP files are opened directly (e.g. /mobile/login.php).
 * Safe when already loaded via index.php (require_once + session check).
 */
if (defined('NAZARETH_MOBILE_BOOT')) {
    return;
}
define('NAZARETH_MOBILE_BOOT', true);

require_once __DIR__ . '/../config/app.php';
require_once __DIR__ . '/../includes/session-bootstrap.php';
nazareth_bootstrap_session_cookie();

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

require_once __DIR__ . '/../config/database.php';
