Skip to content

Commit

Permalink
minor spacig changes
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Jul 2, 2017
1 parent 40c3b13 commit 5b05e7c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function_requirements('whm_api');
$db->query("update {$settings['TABLE']} set {$settings['PREFIX']}_ip='$ip', {$settings['PREFIX']}_username='$username' where {$settings['PREFIX']}_id='{$serviceClass->getId()}'", __LINE__, __FILE__);
website_welcome_email($serviceClass->getId());
if (isset($extra['script']) && $extra['script'] > 0) {
$script = (int)$extra['script'];
$script = (int) $extra['script'];
include_once('include/webhosting/softaculous/sdk.php');
$userdata = $GLOBALS['tf']->accounts->read($serviceClass->getCustid());
$soft = new Softaculous_SDK();
Expand Down Expand Up @@ -307,9 +307,9 @@ function_requirements('whm_api');
$whm->set_hash($hash);
//$whm = whm_api('faith.interserver.net');
if (in_array('reseller', explode(',', $event['field1'])))
$response = json_decode($whm->suspendreseller($serviceClass->getUsername(), 'Canceled Service'), true);
$response = json_decode($whm->suspendreseller($serviceClass->getUsername(), 'Canceled Service'), TRUE);
else
$response = json_decode($whm->suspendacct($serviceClass->getUsername(), 'Canceled Service'), true);
$response = json_decode($whm->suspendacct($serviceClass->getUsername(), 'Canceled Service'), TRUE);
myadmin_log(self::$module, 'info', json_encode($response), __LINE__, __FILE__);
$event->stopPropagation();
}
Expand All @@ -336,9 +336,9 @@ function_requirements('whm_api');
//$whm = whm_api('faith.interserver.net');
if (trim($serviceClass->getUsername()) != '') {
if (in_array('reseller', explode(',', $event['field1'])))
$response = json_decode($whm->terminatereseller($serviceClass->getUsername(), true));
$response = json_decode($whm->terminatereseller($serviceClass->getUsername(), TRUE));
else
$response = json_decode($whm->removeacct($serviceClass->getUsername(), false));
$response = json_decode($whm->removeacct($serviceClass->getUsername(), FALSE));
myadmin_log(self::$module, 'info', json_encode($response), __LINE__, __FILE__);
} else
myadmin_log(self::$module, 'info', "Skipping WHMAPI/Server Removal for {$serviceClass->getHostname()} because username is blank", __LINE__, __FILE__);
Expand All @@ -352,13 +352,13 @@ function_requirements('whm_api');
myadmin_log(self::$module, 'info', "Skipping Removing DNS entry for {$serviceClass->getHostname()} because other non deleted sites w/ the same hostname exist", __LINE__, __FILE__);
}
if (trim($serviceClass->getUsername()) == '')
return true;
return TRUE;
elseif ($response->result[0]->status == 1)
return true;
return TRUE;
elseif ($response->result[0]->statusmsg == "System user {$serviceClass->getUsername()} does not exist!")
return true;
return TRUE;
else
return false;
return FALSE;
$event->stopPropagation();
}
}
Expand Down

0 comments on commit 5b05e7c

Please sign in to comment.