refactor: extract configuration into config.php
- New config.php.example template (tracked) - config.php git-ignored - index.php loads config.php if present, falls back to defaults
This commit is contained in:
@@ -5,7 +5,13 @@
|
||||
*/
|
||||
|
||||
// ── Configuration ──────────────────────────────────────────────────────────
|
||||
define('ENTRY_POINT', '/tmp'); // Change to desired root directory
|
||||
// Load config.php if present, otherwise use defaults
|
||||
if (file_exists(__DIR__ . '/config.php')) {
|
||||
require __DIR__ . '/config.php';
|
||||
}
|
||||
if (!defined('ENTRY_POINT')) {
|
||||
define('ENTRY_POINT', '/tmp');
|
||||
}
|
||||
|
||||
// ── Helpers ────────────────────────────────────────────────────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user