config_get('site_name', 'Protocol Droid'), 'tagline' => config_get('site_tagline', 'A commons of social protocols'), 'registration_enabled' => config_get('registration_enabled', 'true') === 'true', 'require_approval' => config_get('require_approval', 'false') === 'true', ]; } /** * Load a config.yaml file if present (for whitelabel customization). * Merges with database config (database takes precedence). */ function load_yaml_config(): array { $path = __DIR__ . '/../config.yaml'; if (!file_exists($path)) return []; $yaml_text = file_get_contents($path); return yaml_parse($yaml_text) ?: []; } function merged_config(): array { $yaml_cfg = load_yaml_config(); $db_cfg = site_config(); return array_merge($yaml_cfg, $db_cfg); }