Exemplo n.º 1
0
function RegBuildParams($params)
{
    $reg = $params['registrar'];
    if (!$reg) {
        return false;
    }
    if (!loadRegistrarModule($reg)) {
        return false;
    }
    $regconfigs = getRegistrarConfigOptions($reg);
    $params = array_merge($params, $regconfigs);
    return $params;
}
Exemplo n.º 2
0
            }
        }
    }
}
$domainregistraractions = checkPermission("Perform Registrar Operations", true) && $domains->getModule() ? true : false;
if ($domainregistraractions) {
    $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;
    }