| | <?php |
| | -// Configuration constants |
| | -define('REPOS_PATH', '/home/autonoma/repos'); |
| | -define('SITE_TITLE', 'Dave Jarvis\' Repositories'); |
| | +define('REPOS_PATH', ($_SERVER['HOME'] ?? getenv('HOME')) . '/repos'); |
| | +define('SITE_TITLE', 'Dave Jarvis’ Repositories'); |
| | define('CACHE_DIR', __DIR__ . '/cache'); |
| | -define('CACHE_EXPIRY', 3600); // 1 hour |
| | +define('CACHE_EXPIRY', 3600); |
| | |
| | -// Create cache directory if it doesn't exist |
| | if (!is_dir(CACHE_DIR)) { |
| | - mkdir(CACHE_DIR, 0777, true); |
| | + mkdir(CACHE_DIR, 0777, true); |
| | } |
| | |
| | -// Error reporting |
| | error_reporting(E_ALL); |
| | -ini_set('display_errors', 1); |
| | +ini_set('display_errors', 0); |
| | +ini_set('log_errors', 1); |
| | +ini_set('error_log', __DIR__ . '/error.log'); |
| | |
| | |