private function createClient(Server_Account &$a, $type)
 {
     $client = $a->getClient();
     $p = $a->getPackage();
     $params = array('server_id' => $this->getServerId(), 'company_name' => $client->getCompany(), 'contact_name' => $client->getFullName(), 'username' => $a->getUsername(), 'password' => $a->getPassword(), 'language' => $p->getCustomValue('languge'), 'usertheme' => $p->getCustomValue('theme'), 'street' => $client->getStreet(), 'zip' => $client->getZip(), 'city' => $client->getCity(), 'state' => $client->getState(), 'country' => $client->getCountry(), 'telephone' => $client->getTelephone(), 'mobile' => $client->getTelephone(), 'fax' => $client->getTelephone(), 'email' => $a->getEmail(), 'internet' => $a->getWww(), 'icq' => '', 'notes' => $a->getNote(), 'template_master' => '0', 'template_additional' => '', 'default_mailserver' => '1', 'limit_maildomain' => '1', 'limit_mailbox' => '-1', 'limit_mailalias' => '-1', 'limit_mailforward' => '-1', 'limit_mailcatchall' => '-1', 'limit_mailrouting' => '-1', 'limit_mailfilter' => '-1', 'limit_fetchmail' => '-1', 'limit_mailquota' => '-1', 'limit_spamfilter_wblist' => '-1', 'limit_spamfilter_user' => '-1', 'limit_spamfilter_policy' => '-1', 'default_webserver' => '1', 'limit_web_domain' => '-1', 'web_php_options' => "SuPHP", 'limit_web_aliasdomain' => '-1', 'limit_web_subdomain' => '-1', 'limit_ftp_user' => '-1', 'limit_shell_user' => '-1', 'ssh_chroot' => 'None', 'default_dnsserver' => '1', 'limit_dns_zone' => '-1', 'limit_dns_record' => '-1', 'limit_client' => $type, 'default_dbserver' => '1', 'limit_database' => '-1', 'limit_cron' => '0', 'limit_cron_type' => '', 'limit_cron_frequency' => '-1');
     $action = 'client_add';
     $result = $this->_request($action, $params);
     return $result;
 }