HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/self/root/tmp/creator-studio-redesign-post.patch
*** Begin Patch
*** Update File: /home/kiwerkzeuge.de/public_html/creator-studio/_lib/redesign.php
@@
     }
     $action = (string) ($_POST['action'] ?? '');
+    if ($action === 'switch-tiktok-account') {
+        try {
+            if (!cs_verify_csrf($_POST['csrf'] ?? null)) {
+                throw new RuntimeException(cs_r_lang($lang) === 'en' ? 'The form token was invalid. Reload and try again.' : 'Das Formular-Token war ungültig. Bitte neu laden.');
+            }
+            if (trim((string) ($_POST['website'] ?? '')) !== '') {
+                cs_set_flash('success', 'OK', cs_r_lang($lang) === 'en' ? 'Account unchanged.' : 'Konto unverändert.');
+                header('Location: ' . cs_r_url($lang, $page) . '#account', true, 303);
+                exit;
+            }
+            $openId = cs_resolve_session_account_ref((string) ($_POST['account_ref'] ?? ''));
+            if ($openId === null) {
+                throw new RuntimeException(cs_r_lang($lang) === 'en' ? 'This account is not available in the current browser session. Connect it again before switching.' : 'Dieses Konto ist in der aktuellen Browser-Session nicht verfügbar. Verbinde es erneut, bevor du wechselst.');
+            }
+            $account = cs_find_account($openId);
+            if ($account === null) {
+                throw new RuntimeException(cs_r_lang($lang) === 'en' ? 'The selected TikTok account is no longer stored.' : 'Das gewählte TikTok-Konto ist nicht mehr gespeichert.');
+            }
+            cs_set_current_open_id($openId);
+            cs_set_flash('success', cs_r_lang($lang) === 'en' ? 'TikTok account selected' : 'TikTok-Konto gewählt', cs_r_lang($lang) === 'en' ? 'New reviews and publish actions now use ' . cs_account_public_label($account) . '.' : 'Neue Reviews und Publishing-Aktionen nutzen jetzt ' . cs_account_public_label($account) . '.');
+        } catch (Throwable $error) {
+            cs_set_flash('error', cs_r_lang($lang) === 'en' ? 'Account switch failed' : 'Kontowechsel fehlgeschlagen', $error->getMessage());
+        }
+        header('Location: ' . cs_r_url($lang, $page) . '#account', true, 303);
+        exit;
+    }
     if ($action === 'photo-carousel-brief') {
*** End Patch