From 430b3430b27e43010e2d38e8e05e3421888e222f Mon Sep 17 00:00:00 2001 From: danielejmann Date: Thu, 21 Mar 2024 10:43:51 +0000 Subject: [PATCH 1/3] Allow nameserver configuration within admin panel and show within client panel --- PluginEnhance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluginEnhance.php b/PluginEnhance.php index 5d3454c..9d1eb8a 100644 --- a/PluginEnhance.php +++ b/PluginEnhance.php @@ -8,7 +8,7 @@ class PluginEnhance extends ServerPlugin public $features = [ 'packageName' => true, 'testConnection' => true, - 'showNameservers' => false, + 'showNameservers' => true, 'directlink' => true, 'upgrades' => true ]; From 3f88cf1c6e2fc24ee8e09638c8e6f70bdeba278e Mon Sep 17 00:00:00 2001 From: danielejmann Date: Thu, 21 Mar 2024 10:45:47 +0000 Subject: [PATCH 2/3] Remove setPhpVersion via API as this is set on the Package level in Enhance, therefore it is overriding Enhance configuration --- PluginEnhance.php | 1 - 1 file changed, 1 deletion(-) diff --git a/PluginEnhance.php b/PluginEnhance.php index 9d1eb8a..d01962f 100644 --- a/PluginEnhance.php +++ b/PluginEnhance.php @@ -135,7 +135,6 @@ public function doCreate($args) $website = $api['websitesClient']->createWebsite($orgId, $new_website); $update_website = new \OpenAPI\Client\Model\UpdateWebsite(); - $update_website->setPhpVersion(\OpenAPI\Client\Model\PhpVersion::PHP74); $api['websitesClient']->updateWebsite($orgId, $website['id'], $update_website); From f8c85a875fc1cb70c5cd34632f908378196f2392 Mon Sep 17 00:00:00 2001 From: danielejmann Date: Thu, 21 Mar 2024 10:56:58 +0000 Subject: [PATCH 3/3] Fully removed setPhpVersion code --- PluginEnhance.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/PluginEnhance.php b/PluginEnhance.php index d01962f..4ff0ffa 100644 --- a/PluginEnhance.php +++ b/PluginEnhance.php @@ -134,10 +134,6 @@ public function doCreate($args) $new_website->setDomain($args['package']['domain_name']); $website = $api['websitesClient']->createWebsite($orgId, $new_website); - $update_website = new \OpenAPI\Client\Model\UpdateWebsite(); - - $api['websitesClient']->updateWebsite($orgId, $website['id'], $update_website); - return $userPackage->getCustomField("Domain Name") . ' has been created.'; }