' . get_lang('steam_workshop') . ''; // Route to the DB-driven profile manager when requested $swAction = $_GET['sw_action'] ?? ''; $profileActions = ['profiles', 'profile_form']; $postAction = $_POST['sw_action'] ?? ''; $profilePostActions = ['profile_save', 'profile_delete']; if (in_array($swAction, $profileActions, true) || in_array($postAction, $profilePostActions, true)) { $controller = new WorkshopProfileController($db); $controller->handle(); return; } // Default: legacy XML adapter manager + tab link to profiles echo '

' . (function_exists('get_lang') ? get_lang('nav_workshop_profiles') : 'Workshop Profiles') . '

'; $controller = new AdminWorkshopController($db); $controller->handle(); }