<?php

$scriptName = $_SERVER['SCRIPT_NAME'] ?? '/index.php';
$basePath = rtrim(str_replace('\\', '/', dirname($scriptName)), '/');

if ($basePath === '/' || $basePath === '.' || $basePath === '') {
    $basePath = '/Pagina Web';
}

define('APP_ROOT', dirname(__DIR__));
define('BASE_URL', $basePath);
define('DB_HOST', 'localhost');
define('DB_NAME', 'miniusdm12_petcare');
define('DB_USER', 'miniusdm12_administrador2');
define('DB_PASS', 'po]4e6^IL$5Lzbpt');
