Exemplo n.º 1
0
 /**
  * Create an Account
  */
 public function createAccount(ServerDBO $serverDBO, HostingServiceDBO $serviceDBO, $domainName, $username, $password)
 {
     $CPServerDBO = $this->getCPanelServerDBO($serverDBO);
     $result = createacct($serverDBO->getHostName(), $CPServerDBO->getUsername(), $CPServerDBO->getAccessHash(), false, $domainName, $username, $password, $serviceDBO->getTitle());
     if (null == stristr($result, "wwwacct creation finished")) {
         throw new SWUserException("[CPANEL_FAILED_TO_CREATE_ACCOUNT]: " . $result);
     }
 }