From cfe199998ac87e918221431ad7e19a32f306f78c Mon Sep 17 00:00:00 2001 From: Joran Date: Wed, 19 Jun 2024 23:04:19 +0200 Subject: [PATCH 1/2] Fixed more types! --- Servers/Virtualizor/index.php | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/Servers/Virtualizor/index.php b/Servers/Virtualizor/index.php index 13f374b..6b73ae3 100644 --- a/Servers/Virtualizor/index.php +++ b/Servers/Virtualizor/index.php @@ -104,18 +104,18 @@ function Virtualizor_getProductConfig() 'type' => 'dropdown', 'required' => true, 'options' => [ - [ - 'name' => 'OpenVZ', - 'value' => 'openvz', - ], - [ - 'name' => 'Xen', - 'value' => 'xen', - ], - [ - 'name' => 'KVM', - 'value' => 'kvm', - ], + ['name' => 'OpenVZ', 'value' => 'openvz'], + ['name' => 'Xen', 'value' => 'xen'], + ['name' => 'KVM', 'value' => 'kvm'], + ['name' => 'Xen HVM', 'value' => 'xenhvm'], + ['name' => 'XCP', 'value' => 'xcp'], + ['name' => 'XCP HVM', 'value' => 'xcphvm'], + ['name' => 'LXC', 'value' => 'lxc'], + ['name' => 'Virtuozzo OpenVZ', 'value' => 'vzo'], + ['name' => 'Virtuozzo KVM', 'value' => 'vzk'], + ['name' => 'Proxmox OpenVZ', 'value' => 'proxo'], + ['name' => 'Proxmox KVM / QEMU', 'value' => 'proxk'], + ['name' => 'Proxmox LXC', 'value' => 'proxl'], ], ], [ @@ -126,7 +126,6 @@ function Virtualizor_getProductConfig() 'options' => $allplans, ], ]; -} function Virtualizor_createServer($user, $params, $order, $product, $configurableOptions) { From 2f9428a053f2623aa38ae07d98edff26d6a6246e Mon Sep 17 00:00:00 2001 From: Joran Date: Wed, 19 Jun 2024 23:13:59 +0200 Subject: [PATCH 2/2] fixed typo --- Servers/Virtualizor/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Servers/Virtualizor/index.php b/Servers/Virtualizor/index.php index 6b73ae3..9f06913 100644 --- a/Servers/Virtualizor/index.php +++ b/Servers/Virtualizor/index.php @@ -126,6 +126,7 @@ function Virtualizor_getProductConfig() 'options' => $allplans, ], ]; +} function Virtualizor_createServer($user, $params, $order, $product, $configurableOptions) {