15 lines
498 B
PHP
15 lines
498 B
PHP
|
|
<?php
|
||
|
|
// Load environment variables
|
||
|
|
$envFile = __DIR__ . '/../.env';
|
||
|
|
$envVars = parse_ini_file($envFile);
|
||
|
|
|
||
|
|
// Global configuration
|
||
|
|
$GLOBALS['config'] = [
|
||
|
|
'DB_HOST' => $envVars['DB_HOST'] ?? 'localhost',
|
||
|
|
'DB_USER' => $envVars['DB_USER'] ?? 'root',
|
||
|
|
'DB_PASS' => $envVars['DB_PASS'] ?? '',
|
||
|
|
'DB_NAME' => $envVars['DB_NAME'] ?? 'tinkertickets',
|
||
|
|
'BASE_URL' => '/tinkertickets', // Application base URL
|
||
|
|
'ASSETS_URL' => '/assets', // Assets URL
|
||
|
|
'API_URL' => '/api' // API URL
|
||
|
|
];
|