|
|
@@ -64,7 +64,7 @@ function cwp7_Testconnection($params) {
|
|
|
}
|
|
|
return array(
|
|
|
'success' => false,
|
|
|
- 'error' => $response['msj'],
|
|
|
+ 'error' => $response['error_msg'],
|
|
|
);
|
|
|
}
|
|
|
|
|
|
@@ -99,7 +99,7 @@ function cwp7_ConfigOptions() {
|
|
|
__FUNCTION__,
|
|
|
$cwp7Packages['status'],
|
|
|
'Could not fetch packages',
|
|
|
- $cwp7Packages['msj']
|
|
|
+ $cwp7Packages['error_msg']
|
|
|
);
|
|
|
return false;
|
|
|
}
|
|
|
@@ -176,7 +176,7 @@ function cwp7_CreateAccount($params) {
|
|
|
$response = $cwp7->createAccount($data);
|
|
|
}
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -197,7 +197,7 @@ function cwp7_TerminateAccount($params) {
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->deleteAccount(array('user' => $params['username'], 'email' => $params['clientsdetails']['email']));
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -219,7 +219,7 @@ function cwp7_SuspendAccount($params) {
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->suspendAccount($params['username']);
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -241,7 +241,7 @@ function cwp7_UnsuspendAccount($params) {
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->unsuspendAccount($params['username']);
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -380,7 +380,7 @@ function cwp7_ChangePassword($params) {
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->changePass(array('user' => $params['username'], 'password' => $params['password']));
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -412,7 +412,7 @@ function cwp7_ChangePackage($params) {
|
|
|
$response
|
|
|
);
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -557,7 +557,7 @@ function cwp7_addDomain($params) {
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->addDomain($vars);
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -617,7 +617,7 @@ function cwp7_addSubdomain($params) {
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->addDomain($vars);
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -687,7 +687,7 @@ function cwp7_delDomain($params) {
|
|
|
$vars['type'] = 'domain';
|
|
|
$response = $cwp7->deleteDomain($vars);
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -757,7 +757,7 @@ function cwp7_delSubdomain($params) {
|
|
|
$vars['type'] = 'subdomain';
|
|
|
$response = $cwp7->deleteDomain($vars);
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -798,7 +798,7 @@ function cwp7_enableSSL($params) {
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->addAutoSSL($vars);
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|
|
|
@@ -839,7 +839,7 @@ function cwp7_renewSSL($params) {
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->updateAutoSSL($vars);
|
|
|
if($response['status'] != 'OK') {
|
|
|
- return 'Error: ' . $response['msj'];
|
|
|
+ return 'Error: ' . $response['error_msg'];
|
|
|
}
|
|
|
return 'success';
|
|
|
}
|