|
|
@@ -143,17 +143,7 @@ function zimbraSingle_TestConnection($params)
|
|
|
*/
|
|
|
function zimbraSingle_ClientArea($params)
|
|
|
{
|
|
|
-// Debug
|
|
|
-logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $whmcs,
|
|
|
- "Debug",
|
|
|
- $params
|
|
|
-);
|
|
|
-//
|
|
|
$clientInfo = array();
|
|
|
- $accountName = $params['customfields']['username'] . '@' . $params['customfields']['maildomain'];
|
|
|
$api = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], "admin");
|
|
|
$login = $api->login();
|
|
|
if(is_a($login, "Exception")) {
|
|
|
@@ -167,13 +157,13 @@ logModuleCall(
|
|
|
return false;
|
|
|
}
|
|
|
$apiAccountManager = new Zm_Account($api);
|
|
|
- $response = $apiAccountManager->getAccountInfo($accountName);
|
|
|
+ $response = $apiAccountManager->getAccountInfo($params['username']);
|
|
|
if(is_a($response, "Exception")) {
|
|
|
logModuleCall(
|
|
|
'zimbrasingle',
|
|
|
__FUNCTION__,
|
|
|
$params,
|
|
|
- "Error: could not gather informations for $accountName",
|
|
|
+ "Error: could not gather informations for " . $params['username'],
|
|
|
$response
|
|
|
);
|
|
|
return false;
|
|
|
@@ -268,6 +258,15 @@ function zimbraSingle_UsageUpdate($params) {
|
|
|
*/
|
|
|
function zimbraSingle_ChangePassword($params)
|
|
|
{
|
|
|
+// Debug
|
|
|
+logModuleCall(
|
|
|
+ 'zimbrasingle',
|
|
|
+ __FUNCTION__,
|
|
|
+ $whmcs,
|
|
|
+ "Debug",
|
|
|
+ $params
|
|
|
+);
|
|
|
+//
|
|
|
$api = new Zm_Auth($params['serverip'], $params['serverusername'], $params['serverpassword'], "admin");
|
|
|
$login = $api->login();
|
|
|
if(is_a($login, "Exception")) {
|