|
|
@@ -5,7 +5,6 @@ if(substr($host, 0 - strlen($allowed_host)) != $allowed_host) {
|
|
|
die("This file cannot be accessed directly");
|
|
|
}
|
|
|
|
|
|
-define("CLIENTAREA", true);
|
|
|
require_once(__DIR__ . '/../../../init.php');
|
|
|
require_once("api/Zm/Auth.php");
|
|
|
require_once("api/Zm/Account.php");
|
|
|
@@ -21,9 +20,9 @@ $serverGroupIDObj = Capsule::table('tblproducts')
|
|
|
->get();
|
|
|
$serverGroupID = $serverGroupIDObj[0]->servergroup;
|
|
|
$serverIDObj = Capsule::table('tblservergroupsrel')
|
|
|
-->select('serverid')
|
|
|
-->where('groupid', '=', $serverGroupID)
|
|
|
-->get();
|
|
|
+ ->select('serverid')
|
|
|
+ ->where('groupid', '=', $serverGroupID)
|
|
|
+ ->get();
|
|
|
$serverID = $serverIDObj[0]->serverid;
|
|
|
$server = Capsule::table('tblservers')
|
|
|
->select('ipaddress', 'username', 'password')
|
|
|
@@ -49,13 +48,6 @@ if(is_a($login, "Exception")) {
|
|
|
);
|
|
|
exit();
|
|
|
} else {
|
|
|
- logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $accessData,
|
|
|
- "Debug",
|
|
|
- $account_name
|
|
|
- );
|
|
|
$apiAccountManager = new Zm_Account($api);
|
|
|
if( $apiAccountManager->accountExists($account_name)) {
|
|
|
echo 'no';
|