|
|
@@ -159,6 +159,10 @@ function siteBuilder_CreateAccount($params) {
|
|
|
if($response['status'] != '200') {
|
|
|
return 'Error: ' . $response['response']['error'];
|
|
|
}
|
|
|
+ $response = $siteBuilder->setQuota($params['username'], $params['configoption3'], $params['serverusername'], $params['serverpassword']);
|
|
|
+ if($response['status'] != '200') {
|
|
|
+ return 'Error: ' . $response['response']['error'];
|
|
|
+ }
|
|
|
return 'success';
|
|
|
}
|
|
|
|
|
|
@@ -599,7 +603,7 @@ function siteBuilder_editSite($params) {
|
|
|
'resellerClientAccountId' => $params['serviceid'], // (required) ID of website/user in your system
|
|
|
'username' => $params['serverusername'], // (optional) authorization username to be used with API endpoint
|
|
|
'password' => 'your-secure-password', // (optional) authorization password to be used with API endpoint
|
|
|
- 'hostingPlan' => 'Free',
|
|
|
+ 'hostingPlan' => $params['configoption2'],
|
|
|
));
|
|
|
if (!$res || !is_object($res)) {
|
|
|
logModuleCall(
|