License Manager

Invalid password
prepare("UPDATE licenses SET status = ? WHERE id = ?"); $stmt->execute([$new_status, $id]); $message = "License status updated to $new_status."; break; case 'delete_license': $id = (int)$_POST['id']; $stmt = $pdo->prepare("DELETE FROM licenses WHERE id = ?"); $stmt->execute([$id]); $message = "License deleted successfully."; break; case 'issue': $prefix = strtoupper(trim($_POST['prefix'] ?? 'FLAT')); $max_activations = (int)($_POST['max_activations'] ?? 1); $max_counters = (int)($_POST['max_counters'] ?? 1); $owner = trim($_POST['owner'] ?? ''); $address = trim($_POST['address'] ?? ''); $key = $prefix . '-' . strtoupper(bin2hex(random_bytes(2))) . '-' . strtoupper(bin2hex(random_bytes(2))) . '-' . strtoupper(bin2hex(random_bytes(2))); $stmt = $pdo->prepare("INSERT INTO licenses (license_key, max_activations, max_counters, owner, address, status) VALUES (?, ?, ?, ?, ?, 'active')"); $stmt->execute([$key, $max_activations, $max_counters, $owner, $address]); $message = "New license issued: $key"; break; } } } // Fetch Licenses $licenses = $pdo->query("SELECT * FROM licenses ORDER BY created_at DESC")->fetchAll(); ?> Manage Licenses
Issue New License
Existing Licenses
Total
Key Owner Machines Counters Status Created Actions
prepare("SELECT COUNT(*) FROM activations WHERE license_id = ?"); $stmt->execute([$l['id']]); $count = $stmt->fetchColumn(); ?> /
Fingerprint Domain Product Activated At

No active machine activations found.

No licenses found.