/** * Un-suspend an Account * * Un-suspend a control panel account * * @param ServerDBO $server The server the account is on * @param string $username The account's username */ public function unsuspendAccount(ServerDBO $server, $username) { $CPServerDBO = $this->getCPanelServerDBO($server); $result = unsuspend($server->getHostName(), $CPServerDBO->getUsername(), $CPServerDBO->getAccessHash(), false, $username); if (null == stristr($result, "account is now active")) { throw new SWUserException("[CPANEL_FAILED_TO_UNSUSPEND_ACCOUNT]: " . $result); } }
function p_active() { $result = unsuspend($this->server_cfg['host'], $this->server_cfg['account'], $this->server_cfg['accesshash'], $this->usessl, $this->service['host_username']); if ($this->server['debug']) { echo "<pre> {$result} </pre>"; } if (eregi("account is now active", @$result)) { return true; } else { return false; } }