From 7d350f8004bc3a6610565c7f2746a5ac7c9d7d63 Mon Sep 17 00:00:00 2001 From: Pingu Date: Mon, 20 Jul 2026 20:17:12 +0000 Subject: [PATCH] =?UTF-8?q?heler/docuseal-to-nextcloud.php=20gel=C3=B6scht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- heler/docuseal-to-nextcloud.php | 127 -------------------------------- 1 file changed, 127 deletions(-) delete mode 100644 heler/docuseal-to-nextcloud.php diff --git a/heler/docuseal-to-nextcloud.php b/heler/docuseal-to-nextcloud.php deleted file mode 100644 index b36d772..0000000 --- a/heler/docuseal-to-nextcloud.php +++ /dev/null @@ -1,127 +0,0 @@ -= 200 && $http_code < 300) { - echo "Erfolg!"; - logDebug("DATEI ERFOLGREICH IN NEXTCLOUD ERSTELLT: $filename"); - - $submission_id = $data['data']['id'] ?? null; - if ($submission_id) { - $ch_del = curl_init("URL EINFÜGEN" . $submission_id); - curl_setopt($ch_del, CURLOPT_CUSTOMREQUEST, "DELETE"); - curl_setopt($ch_del, CURLOPT_HTTPHEADER, [ - "X-Auth-Token: " . $api_key, - "Content-Type: application/json" - ]); - curl_setopt($ch_del, CURLOPT_RETURNTRANSFER, true); - $del_result = curl_exec($ch_del); - $del_status = curl_getinfo($ch_del, CURLINFO_HTTP_CODE); - curl_close($ch_del); - - logDebug("DocuSeal Löschauftrag ID $submission_id gesendet. Status: $del_status. Antwort: $del_result"); - } - } else { - http_response_code(500); - logDebug("UPLOAD FEHLGESCHLAGEN. HTTP-Code: " . $http_code . " Antwort: " . $result); - } - } else { - logDebug("FEHLER: PDF konnte nicht per cURL heruntergeladen werden. Status: " . $down_status); - } - } -} else { - logDebug("Event $event wird ignoriert."); -} -?> \ No newline at end of file