feat: rewrite workshop_admin UI – remove adapter terminology, make configurations primary

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/3fc88263-c1c0-46f6-95f1-7070fc6f9d02

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-04 16:56:38 +00:00 committed by GitHub
parent e799f5ee5d
commit 86f825e388
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 98 additions and 80 deletions

View file

@ -31,9 +31,17 @@ class WorkshopProfileController
public function handle(): void
{
global $db;
$userId = (int)($_SESSION['user_id'] ?? 0);
if (!$db->isAdmin($userId)) {
print_failure($this->lang['error_admin_only'] ?? 'Administrator access required.');
return;
}
echo '<link rel="stylesheet" type="text/css" href="modules/steam_workshop/steam_workshop.css" />';
$action = $_GET['sw_action'] ?? 'profiles';
$action = $_GET['sw_action'] ?? 'list';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$postAction = $_POST['sw_action'] ?? '';
@ -48,6 +56,7 @@ class WorkshopProfileController
}
switch ($action) {
case 'config_form':
case 'profile_form':
$this->handleForm((int)($_GET['profile_id'] ?? 0));
break;