$domainparts = explode(".", $domain, 2); $params = array(); $params['domainid'] = $id; $params['sld'] = $domainparts[0]; $params['tld'] = $domainparts[1]; $params['regperiod'] = $registrationperiod; $params['registrar'] = $registrar; $params['regtype'] = $regtype; $adminbuttonarray = ""; loadRegistrarModule($registrar); if (function_exists($registrar . "_AdminCustomButtonArray")) { $adminbuttonarray = call_user_func($registrar . "_AdminCustomButtonArray", $params); } if ($oldns1 != $ns1 || $oldns2 != $ns2 || $oldns3 != $ns3 || $oldns4 != $ns4 || $oldns5 != $ns5 || $defaultns) { $nameservers = $defaultns ? $domains->getDefaultNameservers() : array("ns1" => $ns1, "ns2" => $ns2, "ns3" => $ns3, "ns4" => $ns4, "ns5" => $ns5); $success = $domains->moduleCall("SaveNameservers", $nameservers); if (!$success) { infoBox($aInt->lang("domains", "nschangefail"), $domains->getLastError(), "error"); } else { infoBox($aInt->lang("domains", "nschangesuccess"), $aInt->lang("domains", "nschangeinfo"), "success"); } } if (!$oldlockstatus) { $oldlockstatus = $newlockstatus; } if ($newlockstatus != $oldlockstatus) { $params['lockenabled'] = $newlockstatus; $values = RegSaveRegistrarLock($params); if ($values['error']) { infoBox($aInt->lang("domains", "reglockfailed"), $values['error'], "error"); } else {
if ($domains->getLastError() == "Function not found") { $errors[] = $domain . " " . $_LANG['domaincannotbemanaged']; continue; } $errors[] = $domains->getLastError(); continue; } } } $smartyvalues['contacts'] = $client->getContactsWithAddresses(); $domains = new WHMCS_Domains(); $domain_data = $domains->getDomainsDatabyID($domainids[0]); if (!$domain_data) { redir("action=domains", "clientarea.php"); } $success = $domains->moduleCall("GetContactDetails"); if ($success) { $smartyvalues['contactdetails'] = $domains->getModuleReturn(); } } else { if ($update == "renew") { redir("gid=renewals", "cart.php"); } else { redir("action=domains"); } } } } } $smartyvalues['errors'] = $errors; } else {