From e2f50265911895a3eddadc5457c1a2cd30b88234 Mon Sep 17 00:00:00 2001 From: deploy Date: Sat, 27 Jun 2026 21:42:20 +0000 Subject: [PATCH] fix-broker-dots-sync --- api/set_blocked.php | 16 ++++++++++++++++ esp_proxmox.php | 13 +++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 api/set_blocked.php diff --git a/api/set_blocked.php b/api/set_blocked.php new file mode 100644 index 0000000..c57e8f4 --- /dev/null +++ b/api/set_blocked.php @@ -0,0 +1,16 @@ + "invalid"]); + exit; +} + +$pdo->prepare("UPDATE contadores SET blocked=? WHERE uid=?")->execute([(int)$blocked, $uid]); +echo json_encode(["ok" => 1]); diff --git a/esp_proxmox.php b/esp_proxmox.php index 6910bad..cdf2623 100644 --- a/esp_proxmox.php +++ b/esp_proxmox.php @@ -136,9 +136,14 @@ ob_start(); - - - + +
+ + @@ -156,7 +161,7 @@ function act(uid, action, extra){ fetch('/esp_proxmox.php',{method:'POST',body:fd}).then(()=>location.reload()); } document.addEventListener('click',function(e){ - const b=e.target.closest('button[data-act]'); if(!b) return; + const b=e.target.closest('[data-act]'); if(!b) return; if(b.dataset.act==='delete' && !confirm('Remover '+b.dataset.uid+'?')) return; const extra={}; if(b.dataset.pair!==undefined) extra.pair=b.dataset.pair;