🧹 ×
⚙️ ×

🧹 Admin-Cleanup

⚡ Löscht manuell alle Bilder die älter sind als die ausgewählte Tagezahl.

📅

:
📌
const CSRF_TOKEN = "' . $csrfTokenForJs . '"; function closeMessage(msgId) { const msg = document.getElementById(msgId); if (msg) { msg.style.opacity = "0"; setTimeout(() => msg.remove(), 500); } } function sendToChat(fileName) { const imageUrl = "userpic/" + encodeURIComponent(fileName); const imgCode = "[img]" + imageUrl + "[/img]"; const chatInput = window.parent.document.getElementById("message"); const sendButton = window.parent.document.getElementById("link_sagen"); if (chatInput && sendButton) { chatInput.value += imgCode; sendButton.click(); window.close(); } else { alert("Chat nicht gefunden."); } } function deleteImage(name) { if (!confirm("' . e($translations['confirm_delete']) . '")) return; const data = new URLSearchParams(); data.append("delete", name); data.append("csrf_token", CSRF_TOKEN); fetch(window.location.href, { method: "POST", body: data, headers: { "Content-Type": "application/x-www-form-urlencoded" } }) .then(r => r.text()) .then(response => { if (response === "success") { location.reload(); } else { alert("' . e($translations['error_delete_failed']) . ' " + response); } }) .catch(err => alert("' . e($translations['error_network']) . ' " + err)); } '; include __DIR__ . '/admin_master_template.php'; ?>