Esempio n. 1
0
    }
    echo "<option value=\"" . $promo_id . "\"";
    if ($promo_id == $promoid) {
        echo " selected";
    }
    echo ">" . $promo_code . " - " . $promo_value . " " . $promo_recurring . "</option>";
}
echo "</select> (";
echo $aInt->lang("promotions", "noaffect");
echo ")</td><td class=\"fieldlabel\">";
echo $aInt->lang("fields", "subscriptionid");
echo "</td><td class=\"fieldarea\"><input type=\"text\" size=\"25\" name=\"subscriptionid\" value=\"";
echo $subscriptionid;
echo "\"></td></tr>\n\n";
if ($domainregistraractions) {
    if ($domains->hasFunction("GetNameservers")) {
        echo "<tr><td class=\"fieldlabel\">";
        echo $aInt->lang("domains", "nameserver");
        echo " 1</td><td class=\"fieldarea\" colspan=\"3\"><input type=\"text\" name=\"ns1\" value=\"";
        echo $nsvalues['ns1'];
        echo "\" size=\"40\"><input type=\"hidden\" name=\"oldns1\" value=\"";
        echo $nsvalues['ns1'];
        echo "\" /></td></tr>\n<tr><td class=\"fieldlabel\">";
        echo $aInt->lang("domains", "nameserver");
        echo " 2</td><td class=\"fieldarea\" colspan=\"3\"><input type=\"text\" name=\"ns2\" value=\"";
        echo $nsvalues['ns2'];
        echo "\" size=\"40\"><input type=\"hidden\" name=\"oldns2\" value=\"";
        echo $nsvalues['ns2'];
        echo "\" /> <input type=\"checkbox\" name=\"defaultns\" id=\"defaultns\" /> <label for=\"defaultns\">";
        echo $aInt->lang("domains", "resetdefaultns");
        echo "</label></td></tr>\n<tr><td class=\"fieldlabel\">";
Esempio n. 2
0
     $ca->addToBreadCrumb("#", $whmcs->get_lang("domaingeteppcode"));
     $smartyvalues['domainid'] = $domain_data['id'];
     $smartyvalues['domain'] = $domain_data['domain'];
     $success = $domains->moduleCall("GetEPPCode");
     if (!$success) {
         $smartyvalues['error'] = $domains->getLastError();
     } else {
         $smartyvalues['eppcode'] = $domains->getModuleReturn("eppcode");
     }
 } else {
     if ($action == "domainregisterns") {
         checkContactPermission("managedomains");
         $ca->setTemplate("clientareadomainregisterns");
         $domains = new WHMCS_Domains();
         $domain_data = $domains->getDomainsDatabyID($domainid);
         if (!$domain_data || !$domains->isActive() || !$domains->hasFunction("RegisterNameserver")) {
             redir("action=domains", "clientarea.php");
         }
         $ca->addToBreadCrumb("clientarea.php?action=domaindetails&id=" . $domain_data['id'], $domain_data['domain']);
         $ca->addToBreadCrumb("#", $whmcs->get_lang("domainregisterns"));
         $smartyvalues['domainid'] = $domain_data['id'];
         $smartyvalues['domain'] = $domain_data['domain'];
         $result = "";
         $vars = array();
         $ns = $whmcs->get_req_var("ns");
         if ($sub == "register") {
             check_token();
             $ipaddress = $whmcs->get_req_var("ipaddress");
             $nameserver = $ns . "." . $domain_data['domain'];
             $vars['nameserver'] = $nameserver;
             $vars['ipaddress'] = $ipaddress;