|
|
@@ -19,7 +19,7 @@ use ThurData\Servers\KerioEmail\Api\KerioConnectApi;
|
|
|
class TestConnection extends AddonController
|
|
|
{
|
|
|
|
|
|
-// use ExtensionsCheckerTrait;
|
|
|
+ use ExtensionsCheckerTrait;
|
|
|
/**
|
|
|
*
|
|
|
*
|
|
|
@@ -33,6 +33,13 @@ class TestConnection extends AddonController
|
|
|
*/
|
|
|
|
|
|
$api = new KerioConnectApi('whmcsKerioEmail', 'Thurdata', '1.0');
|
|
|
+ logModuleCall(
|
|
|
+ 'kerioEmail',
|
|
|
+ __FUNCTION__,
|
|
|
+ $params,
|
|
|
+ 'Debug Kerio Api 1',
|
|
|
+ $api
|
|
|
+ );
|
|
|
try {
|
|
|
$api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
|
|
|
$serverInfo = $api->sendRequest('Server.getProductInfo');
|
|
|
@@ -52,7 +59,7 @@ class TestConnection extends AddonController
|
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|
|
|
$serverInfo,
|
|
|
- 'Debug Kerio Api',
|
|
|
+ 'Debug Kerio Api 2',
|
|
|
$api
|
|
|
);
|
|
|
|