prepare("UPDATE msps SET subdomain = ?, custom_domain = ?, plan_id = ? WHERE id = ?"); $stmt->execute([$subdomain ?: null, $custom_domain ?: null, $plan_id, $msp_id]); $success = "MSP configuration updated successfully."; } catch (PDOException $e) { $error = "Error updating MSP: " . $e->getMessage(); } } } $stmt = db()->query("SELECT m.*, p.name as plan_name FROM msps m JOIN plans p ON m.plan_id = p.id ORDER BY m.name ASC"); $msps = $stmt->fetchAll(); $stmt = db()->query("SELECT * FROM plans"); $plans = $stmt->fetchAll(); include 'header.php'; ?>

Manage MSPs

Manage tenant subdomains, custom domains, and subscription plans.

MSP Name Current Plan Subdomain Custom Domain Actions