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();
-
-
-
+ |
+ = $isVps?'VPS':($isPmx?'PMX':'—') ?>
+
+
|
@@ -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;