bak
This commit is contained in:
commit
e85b5203cd
15 files changed
+2779
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
define('APP_NAME', 'hyprcrd');
|
||||
define('APP_VERSION', '0.1.0');
|
||||
|
||||
// Database path — writable directory, outside webroot
|
||||
define('DB_PATH', __DIR__ . '/data/hyprcrd.db');
|
||||
|
||||
// Base URL auto-detection (works in Docker and hosted environments)
|
||||
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
|
||||
$host = $_SERVER['HTTP_HOST'] ?? 'localhost';
|
||||
$scriptDir = dirname($_SERVER['SCRIPT_NAME']);
|
||||
$basePath = ($scriptDir === '/' || $scriptDir === '\\') ? '' : $scriptDir;
|
||||
define('BASE_URL', $protocol . '://' . $host . $basePath);
|
||||
Reference in new issue
Block a user