Пример #1
0
$fax = $row[fax];
$phone = $row[phone];
$province = $row[province];
$rspchoice = $row[rspchoice];
$countrycode = $row[countrycode];
$row[state] = trim($row[state]);
function escape_data($data)
{
    global $dbc;
    if (ini_get('magic_quotes_gpc')) {
        $data = stripslashes($data);
    }
    return mysql_real_escape_string($data, $dbc);
}
// Get URL Interface object
$Enom = new CEnomInterface();
if ($HTTP_POST_VARS["action"] == "modify") {
    if (empty($_POST['fname'])) {
        $fname = FALSE;
        $message .= '<br>You forgot to enter your First name</br>';
    } else {
        $fname = escape_data(urlencode($_POST['fname']));
    }
    if (empty($_POST['lname'])) {
        $lname = FALSE;
        $message .= '<br>You forgot enter your last name</br>';
    } else {
        $lname = escape_data(urlencode($_POST['lname']));
    }
    if (empty($_POST['email1'])) {
        $email = FALSE;
Пример #2
0
include "include/sessions.php";
include "include/EnomInterface_inc.php";
$_SESSION['transferorderid'] = $Enom->Values["transferorderid"];
$_SESSION['transferorderid'] = $Enom->Values["transferorderid"];
$_SESSION['userpassword'] = $cPW1;
$_SESSION['LoggedIn'] = 1;
$Enom->Values["transferorderid"] = $transferorder;
//Turn credit cards ON or OFF
//1 = ON 0 = OFF
$UseCreditCard = 0;
// Get some form variables
$cAction = $HTTP_POST_VARS["action"];
$cPW1 = $HTTP_POST_VARS["password1"];
$cPW2 = $HTTP_POST_VARS["password2"];
// Create URL Interface class
$Enom = new CEnomInterface();
// Set account username and password
$Enom->AddParam("uid", $username);
$Enom->AddParam("pw", $password);
$Enom->AddParam("ordertype", "EPP");
$Enom->AddParam("authinfo1", $authinfo);
if ($HTTP_POST_VARS["authinfo"] == "") {
    $bError = 1;
    $cErrorMsg = "Authorization Code can not be blank";
}
// Set domain name
$sld = $HTTP_POST_VARS["sld"];
$tld = $HTTP_POST_VARS["tld"];
//Set domain password variables
$cPW1 = $HTTP_POST_VARS["password1"];
$cPW2 = $HTTP_POST_VARS["password2"];
Пример #3
0
 if ($HTTP_POST_VARS["RegistrantStateProvinceChoice"] == "S" && $HTTP_POST_VARS["RegistrantState"] == "") {
     $bError = 1;
     $cErrorMsg = "All required fields are not filled out";
 } else {
     if ($HTTP_POST_VARS["RegistrantStateProvinceChoice"] == "P" && $HTTP_POST_VARS["RegistrantProvince"] == "") {
         $bError = 1;
         $cErrorMsg = "All required fields are not filled out";
     } else {
         //#####################################################################
         //	THIS IS A GOOD PLACE TO DO THE CREDIT CARD TRANSACTION
         //	IF YOU PROCESS ORDERS THROUGH YOUR OWN MERCHANT ACCOUNT
         //  IT IS RECOMMENDED YOU DO A PRE-AUTHORIZATION BEFORE REGISTERING
         //  THEN, PROCESS THE CLIENTS CREDIT CARD AFTER REGISTRATION SUCCESS
         //#####################################################################
         // Create URL Interface class
         $Enom = new CEnomInterface();
         $Enom->AddParam("uid", $username);
         $Enom->AddParam("pw", $password);
         $Enom->AddParam("tld", $tld);
         $Enom->AddParam("sld", $sld);
         $Enom->AddParam("site", "Enomitron");
         // Set number of years to register
         if ($HTTP_POST_VARS["NumYears"] != "") {
             $Enom->AddParam("NumYears", $HTTP_POST_VARS["NumYears"]);
         }
         // Fill in registrant contact information
         $Enom->AddParam("RegistrantEmailAddress", $HTTP_POST_VARS["RegistrantEmailAddress"]);
         $Enom->AddParam("RegistrantFax", $HTTP_POST_VARS["RegistrantFax"]);
         $Enom->AddParam("RegistrantPhone", $HTTP_POST_VARS["RegistrantPhone"]);
         $Enom->AddParam("RegistrantCountry", $HTTP_POST_VARS["RegistrantCountry"]);
         $Enom->AddParam("RegistrantPostalCode", $HTTP_POST_VARS["RegistrantPostalCode"]);
Пример #4
0
 if (empty($_POST['push_domain'])) {
     $push_domain = FALSE;
     $message .= '<br>You must enter a domain name</br>';
 } else {
     $push_domain = $_POST['push_domain'];
 }
 if (empty($_POST['to_user'])) {
     $to_user = FALSE;
     $message .= '<br>You must enter a user to push to</br>';
 } else {
     $to_user = $_POST['to_user'];
 }
 if ($push_domain && $to_user) {
     include "include/dbconfig.php";
     include "include/EnomInterface_inc.php";
     $Enom3 = new CEnomInterface();
     $Enom3->AddParam("uid", $enom_username);
     $Enom3->AddParam("pw", $enom_password);
     $Enom3->AddParam("command", "ParseDomain");
     $Enom3->AddParam("PassedDomain", $push_domain);
     $Enom3->DoTransaction();
     $sld = $Enom3->Values["SLD"];
     $tld = $Enom3->Values["TLD"];
     //See if the user has the domain in their account
     $query = "select * from domains where user_id='{$user_id}' AND sld='{$sld}' AND tld='{$tld}'";
     $result = @mysql_query($query);
     $num = mysql_num_rows($result);
     if ($num == 1) {
         //User does have the domain, so now we find the other users info and transfer the domain name
         //Get your own data for the confirmation emails
         $query1 = "select * from users where id = '{$user_id}'";
Пример #5
0
			<tr> 
				<td colspan="4" height="5" class="tdcolorone"><span class="cattitle">&nbsp;Hosts</span></td>
			</tr>
			<tr> 
				<td width="40%" height=50 align="center" valign="middle" class="row1" colspan="2">
				<?php 
// Create URL Interface class
$Enom = new CEnomInterface();
// Check nameservers first
$Enom->NewRequest();
$Enom->AddParam("uid", $username);
$Enom->AddParam("pw", $password);
$Enom->AddParam("tld", $tld);
$Enom->AddParam("sld", $sld);
$Enom->AddParam("command", "getdnsstatus");
$Enom->DoTransaction();
// Make sure it was successful
$bEnomDNS = 0;
if ($Enom->Values["ErrCount"] == "0") {
    // Check if they are using eNom's nameservers
    if ($Enom->Values["UseDNS"] == "default") {
        $bEnomDNS = 1;
    }
} else {
    echo "Error checking nameserver status: {$Enom->Values["Err1"]}";
}
if ($bEnomDNS == 1) {
    // display instructions
    $displayInsOn = 1;
    // Get a list of hosts for this domain
Пример #6
0
?>
		        </p>
<form name="form" method="post" action="<?php 
echo "emailforwarding.php?sld={$sld}&tld={$tld}";
?>
">
					<input type="hidden" name="action" value="modify">
					<table width="100%" border="0" align="center">
                        <tr>
                          <td width="17%">&nbsp;</td>
                          <td colspan="5"><table width="101%" height="167" border="0" align="center" cellpadding="0" cellspacing="0" class="content" id="table13">
                            <tr>
                              <td width="40%" height=50 align="center" valign="middle" class="OutlineOne">
                    <?php 
if ($forwarding == 1) {
    $Enom = new CEnomInterface();
    $Enom->AddParam("uid", $enom_username);
    $Enom->AddParam("pw", $enom_password);
    $Enom->AddParam("tld", $tld);
    $Enom->AddParam("sld", $sld);
    $Enom->AddParam("command", "getforwarding");
    $Enom->DoTransaction();
    // Make sure it was successful
    if ($Enom->Values["ErrCount"] == "0") {
        // Make enough edit boxes for the existing entries plus 5 more
        $nEmailCount = $Enom->Values["EmailCount"] + 5;
        // Make sure the page we link to knows how many edit boxes there are
        echo "<input type=\"hidden\" name=\"EmailCount\" value=\"{$nEmailCount}\">";
        // Display a table for the information
        echo "<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\">";
        echo "<tr><td>&nbsp;</td><td align=\"center\"><b>Username</b></td>";
Пример #7
0
    $Enom->DoTransaction();
    //Error Checking
    $errors = $Enom->Values["ErrCount"];
    $err = $Enom->Values["Err1"];
    if ($errors != 0) {
        $resend_link = 0;
        $message = "<table align=\"center\" width=\"100\" class=\"table00\"><tr><td nowrap><span class=\"red\"><b>{$err}</b></span></td></tr></table>";
    } else {
        $resend_link = 1;
        $message = "<table align=\"center\" width=\"100\" class=\"table00\"><tr><td nowrap><span class=\"red\"><b>Successfully Resent Email for order {$orderid}</b></span></td></tr></table>";
    }
}
if ($command == "resubmit") {
    include "include/EnomInterface_inc.php";
    $message = NULL;
    $Enom = new CEnomInterface();
    $Enom->AddParam("uid", $enom_username);
    $Enom->AddParam("pw", $enom_password);
    $Enom->AddParam("enduserip", $enduserip);
    $Enom->AddParam("site", $sitename);
    $Enom->AddParam("User_ID", $_SESSION['id']);
    $Enom->AddParam("TransferOrderDetailID", $orderid);
    $Enom->AddParam("command", "TP_ResubmitLocked");
    $Enom->DoTransaction();
    $errors = $Enom->Values["ErrCount"];
    $err = $Enom->Values["Err1"];
    if ($errors != 0) {
        $resubmit_link = 0;
        $message = "<table align=\"center\" width=\"100\" class=\"table00\"><tr><td nowrap><span class=\"red\"><b>{$err}</b></span></td></tr></table>";
    } else {
        $resubmit_link = 1;
Пример #8
0
		$sld = $Enom1->Values[ "SLD" ];
		$tld = $Enom1->Values[ "TLD" ];

	$Enom = new CEnomInterface;
	$Enom->AddParam( "uid", $username );
	$Enom->AddParam( "pw", $password );
	$Enom->AddParam( "tld", $tld );
	$Enom->AddParam( "sld", $sld );	
	$Enom->AddParam( "domainpassword", $HTTP_POST_VARS[ "password" ] );
	$Enom->AddParam( "command", "validatepassword" );
	$Enom->DoTransaction();
	
	if ( $Enom->Values[ "ErrCount" ] == "0" ) {
		
		$postvars = "sld=$sld&tld=$tld";
		$Enom = new CEnomInterface;
		$Enom->NewRequest();
		$Enom->AddParam( "uid", $username );
		$Enom->AddParam( "pw", $password );
		$Enom->AddParam( "tld", $tld );
		$Enom->AddParam( "sld", $sld );
		$Enom->AddParam( "command", "GetRegistrationStatus" );
		$Enom->DoTransaction();
		
		setcookie ("LoggedIn", '1');
		setcookie ("sld", $sld);
		setcookie ("tld", $tld);
		$_SESSION['LoggedIn'] = 1;
		$_SESSION['sld'] = $sld;
		$_SESSION['tld'] = $tld;
Пример #9
0
?>

<tr> 
	<td class="OutlineOne">  <table class="tableOO" cellspacing="1" cellpadding="5" width="720" border="0" align="center">
      <form method="post" action="DomainExp.php" id="form1" name="form1">
        <input type="hidden" name="action" value="modify">
        <!-- begin page content -->
        <tr> 
          <td colspan="4" align="center" valign="middle" class="titlepic"><span class="whiteheader">Expiration 
            Date Extension</span></td>
        </tr>
        <tr>
          <td align="center" valign="middle" class="row1" colspan="3"><span class="main">
            <?php 
// Create URL Interface class
$Enom = new CEnomInterface();
$Enom->NewRequest();
$Enom->AddParam("uid", $username);
$Enom->AddParam("pw", $password);
$Enom->AddParam("tld", $tld);
$Enom->AddParam("sld", $sld);
$Enom->AddParam("command", "getwhoiscontact");
$Enom->DoTransaction();
if ($Enom->Values["Whoisregistration-expiration-date"] != "") {
    $fooba = $Enom->Values["Whoisregistration-expiration-date"];
    $expdate = substr($fooba, 0, 10);
    list($year, $day, $month) = explode("-", $expdate);
} else {
    $fooba = $Enom->Values["Whoisexdate"];
    $expdate = substr($fooba, 0, 10);
    list($year, $day, $month) = explode("-", $expdate);
Пример #10
0
    $subject = "Transfer Status Cron Job Results";
    $body .= "------------------------------------\r\n";
    $headers .= "From: " . $email_fromsupport . " <" . $support_email . ">\r\n";
    $headers .= "Reply-To: " . $email_fromsupport . " <" . $support_email . ">\r\n";
    mail($support_email, $subject, $body, $headers);
    exit;
}
$body .= "------------------------------------\r\n";
$Sql1 = "\nSELECT * \n\tFROM transfers \n\t\tWHERE (\n\t\tstatusid = '2' OR statusid = '3' OR statusid = '4' OR statusid = '9' OR statusid = '11' OR \n\t\tstatusid = '12' OR statusid = '13' OR statusid = '14' OR statusid = '' OR statusid = NULL )\n\t\t\tORDER BY order_id ASC";
$Result1 = mysql_query($Sql1);
while ($Row1 = mysql_fetch_array($Result1, MYSQL_ASSOC)) {
    $row_statusid = $Row1[statusid];
    $transferorderid = $Row1[order_id];
    $sld = $Row1[sld];
    $tld = $Row1[tld];
    $Enom = new CEnomInterface();
    $Enom->AddParam("uid", $enom_username);
    $Enom->AddParam("pw", $enom_password);
    $Enom->AddParam("transferorderid", $transferorderid);
    $Enom->AddParam("command", "TP_GetOrder");
    $Enom->AddParam("Job", "Transfer.Cron.Job");
    $Enom->AddParam("site", $sitename);
    $Enom->DoTransaction();
    $orderdate = $Enom->Values["orderdate"];
    $statusid = $Enom->Values["statusid1"];
    $statusdesc = $Enom->Values["statusdesc1"];
    if ($row_statusid != $statusid) {
        $SqlUpdate = "UPDATE transfers SET statusid = '{$statusid}' WHERE order_id='{$transferorderid}'";
        $SqlUpdate2 = mysql_query($SqlUpdate);
        if ($SqlUpdate2) {
            $body .= " ** Successfully updated Transfer Order Id {$transferorderid}\r\n";
Пример #11
0
}
$pagename = "mydnshosted.php";
$query = "SELECT reset_pass FROM users WHERE username='******'";
$result = @mysql_query($query);
$row = mysql_fetch_array($result, MYSQL_NUM);
if ($row) {
    $reset_pass = $row[0];
    if ($reset_pass == 1) {
        $message = '<font="red"><span class="table00">You have been issued a temporary password.  Please change it by clicking the link above</font></span>';
    }
}
$command = $_GET["command"];
$HostAccount = $_GET["HostAccount"];
if ($command == "access") {
    include "include/EnomInterface_inc.php";
    $Enom2 = new CEnomInterface();
    $Enom2->AddParam("uid", $enom_username);
    $Enom2->AddParam("pw", $enom_password);
    $Enom2->AddParam("command", "WEBHOSTGETAUTOLOGIN");
    $Enom2->AddParam("HostAccount", $HostAccount);
    $Enom2->AddParam("enduserip", $enduserip);
    $Enom2->AddParam("site", $sitename);
    $Enom2->AddParam("User_ID", $_COOKIE['id']);
    $Enom2->DoTransaction();
    $accountstatus = $Enom2->Values["AccountStatusID"];
    $weburl = $Enom2->Values["WebhostURL"];
    $EUID = $Enom2->Values["Redir"];
    $redirect .= "{$weburl}/Login.asp?EUID={$EUID}";
    header("Location:  http://{$redirect}");
}
$page = "webhosting";
Пример #12
0
 } else {
     $countrycode = escape_data(urlencode($_POST['countrycode']));
 }
 if (empty($_POST['phone'])) {
     $phone = FALSE;
     $message .= '<br>A valid phone number is required</br>';
 } else {
     $phone = escape_data(urlencode($_POST['phone']));
 }
 if (isset($_POST['fax'])) {
     $fax = escape_data(urlencode($_POST['fax']));
 }
 if ($fname && $lname & $email && $add1 && $city && $zip && $country && $countrycode && $phone) {
     $orgname = urlencode($_POST['orgname']);
     $jtitle = urlencode($_POST['jtitle']);
     $Enom = new CEnomInterface();
     $Enom->AddParam("userid", $user_id);
     $Enom->AddParam("username", $username);
     $Enom->AddParam("enduserip", $enduserip);
     $Enom->AddParam("site", $sitename);
     $Enom->AddParam("sld", $sld);
     $Enom->AddParam("tld", $tld);
     $Enom->AddParam("command", "Purchase");
     //DNS
     if ($HTTP_POST_VARS["UseNameserver"] == "default") {
         $Enom->AddParam("usedns", "default");
         $use_dns = 1;
     } else {
         $use_dns = 0;
         for ($iNameServer = 1; $iNameServer < 4; $iNameServer++) {
             if ($HTTP_POST_VARS["NameServer" . $iNameServer] != "") {
Пример #13
0
	if($PhoneOn == 1){
		$PhoneText = 'Enabled (Turned On)';
		} elseif($PhoneOn == 0){
		$PhoneText = 'Disabled (Turned Off)';
		}

$domain = "sld=$sld&tld=$tld";

if ($DNS != 1){
	header ("Location:  $site_url/dmain.php?$domain");
	exit(); // Quit the script.
}


  		$Enom = new CEnomInterface;
		$Enom->AddParam( "uid", $enom_username );
		$Enom->AddParam( "pw", $enom_password );
		$Enom->AddParam( "sld", $sld );
		$Enom->AddParam( "tld", $tld );
  		$Enom->AddParam( "command", "GetDomainPhone" );
  		$Enom->AddParam( "site", $sitename );
  		$Enom->AddParam( "enduserip", $enduserip );
  		$Enom->DoTransaction();

		if ( $Enom->Values[ "ErrCount" ] != "0" ) {
			$message .= $Enom->Values[ "Err1" ];
				} else {
				$phonenumber  = $Enom->Values[ "phone-number"];
				$servicetype = $Enom->Values[ "service-type"];
					switch($servicetype)
Пример #14
0
<?php

$RegStatus = $_SESSION['RegStatus'];
if ($RegStatus == 1) {
    $Link = 'DomainMain.php';
} elseif ($RegStatus == 0) {
    $Link = 'DomainMainHosted.php';
}
include "include/sessions.php";
$sld = $_SESSION['sld'];
$tld = $_SESSION['tld'];
include "include/LoggedIn.php";
include "include/EnomInterface_inc.php";
// Get URL Interface object
$Enom = new CEnomInterface();
if ($HTTP_POST_VARS["action"] == "modify") {
    // Modify contact information
    // Set TLD and SLD of domain to register
    $Enom->AddParam("tld", $tld);
    $Enom->AddParam("sld", $sld);
    // Set account username and password
    $Enom->AddParam("uid", $username);
    $Enom->AddParam("pw", $password);
    //This is set up to send all four sets of contact data
    $contacttype = array("Registrant", "Admin", "Tech", "AuxBilling");
    for ($i = 0; $i <= 3; $i++) {
        if ($HTTP_POST_VARS["Opt" . $contacttype[$i]] == "UseRegistrant") {
            // Fill in $contacttype[$i] contact information
            $Enom->AddParam($contacttype[$i] . "EmailAddress", $HTTP_POST_VARS[$contacttype[0] . "EmailAddress"]);
            $Enom->AddParam($contacttype[$i] . "Fax", $HTTP_POST_VARS[$contacttype[0] . "Fax"]);
            $Enom->AddParam($contacttype[$i] . "Phone", $HTTP_POST_VARS[$contacttype[0] . "Phone"]);
Пример #15
0
     //locked
 } else {
     $lockstatus = '0';
     //Unlocked
 }
 if ($Enom->Values["status" . "{$i}"] == 'Expired') {
     $status = '0';
     //expired status
 } elseif ($Enom->Values["status" . "{$i}"] == 'RGP') {
     $status = '3';
     //RGP status
 } elseif ($Enom->Values["status" . "{$i}"] == 'Extended RGP') {
     $status = '4';
     //ERGP status
 }
 $Enom2 = new CEnomInterface();
 $Enom2->NewRequest();
 $Enom2->AddParam("uid", $enom_username);
 $Enom2->AddParam("pw", $enom_password);
 $Enom2->AddParam("enduserip", $enduserip);
 $Enom2->AddParam("site", $sitename);
 $Enom2->AddParam("PassedDomain", $DomainName);
 $Enom2->AddParam("command", "parsedomain");
 $Enom2->DoTransaction();
 $sld = $Enom2->Values["SLD"];
 $tld = $Enom2->Values["TLD"];
 $query = "select * from domains where sld = '{$sld}' and tld = '{$tld}' and e_domain_id = '{$e_domain_id}'";
 $result = @mysql_query($query);
 if (mysql_num_rows($result) == 0) {
     $SQL = "INSERT INTO domains (user_id, e_domain_id, sld, tld, exp_date, order_date, dns,  mail, webhosted, status, pop, idprotect, auto_renew, reg_lock, tv, parking, name_phone, name_map, lastupdate)\n\t\t\t\t\t\t\tVALUES ('1', '{$e_domain_id}', '{$sld}', '{$tld}', '{$expdate}', '{$orderdate}', '1', '0', '0', '{$status}', '0', '0', '0', '{$lockstatus}', '0', '0', '0', '0', NOW())";
     $RUN = @mysql_query($SQL);
Пример #16
0
    $Enom->AddParam("User_ID", $_SESSION['id']);
    $Enom->DoTransaction();
    //Checks the Error Flag
    switch ($Enom->Values["ErrCount"]) {
        case "1":
            // There was an Error
            include 'include/nsregerror.php';
            break;
        case "0":
            // There was no error
            include 'include/nsreg.php';
            break;
    }
}
if ($action == "updatens") {
    $Enom = new CEnomInterface();
    $Enom->NewRequest();
    $Enom->AddParam("uid", $username);
    $Enom->AddParam("pw", $password);
    $Enom->AddParam("ns", $nsname);
    $Enom->AddParam("oldip", $oldip);
    $Enom->AddParam("newip", $newip);
    $Enom->AddParam("command", "UpdateNameServer");
    $Enom->AddParam("enduserip", $enduserip);
    $Enom->AddParam("site", $sitename);
    $Enom->AddParam("User_ID", $_SESSION['id']);
    $Enom->DoTransaction();
    //Checks the Error Flag
    switch ($Enom->Values["ErrCount"]) {
        case "1":
            // There was an Error
Пример #17
0
 <?php
				  //Print the error message if there is one
	if(isset($message)) {echo '<span class=\"red\">', $message, '</span>';}?>		</b><p></p><table class="tableOO" cellSpacing="1" cellPadding="5" width="720" border="0" align="center">
		
	<!-- begin page content -->
			<tr> 
				<td colspan="4" align="center" valign="middle" class="titlepic"><span class="whiteheader">View/Modify Nameservers</span></td>
			</tr>
			<tr> 
				<td width="5%" height=50 align="center" valign="middle" >&nbsp;</td>
				<td width="40%" height=50 align="center" valign="middle"  colspan="2"><span class="main">
				<form method="post" action="<?php echo "DomainNs.php?sld=$sld&tld=$tld" ; ?>" id=form1 name=form1>
				<input type="hidden" name="action" value="modify">
									<?php
										// Create URL Interface class
										$Enom = new CEnomInterface;
									
										$Enom->NewRequest();
										$Enom->AddParam( "uid", $enom_username );
										$Enom->AddParam( "pw", $enom_password );
										$Enom->AddParam( "tld", $tld );
										$Enom->AddParam( "sld", $sld );
										$Enom->AddParam( "enduserip", $enduserip );
										$Enom->AddParam( "site", $sitename );
										$Enom->AddParam( "User_ID", $_COOKIE['id'] );
										$Enom->AddParam( "command", "getdns" );
										$Enom->DoTransaction();
										
										$dnstest = $Enom->Values[ "UseDNS" ];	
										
							// Make sure it was successful
Пример #18
0
    exit;
} else {
    $start = 1;
    $import = 0;
    $skipped = 0;
    while ($start < $RegisteredCount) {
        $DisplayTo = $start + 25;
        if ($DisplayTo > $RegisteredCount) {
            $DisplayTo = $RegisteredCount;
            $show = $DisplayTo - $start;
        } else {
            $show = 25;
        }
        echo "Domains {$start} - {$DisplayTo} out of {$RegisteredCount}<br>";
        for ($i = 1; $i <= $show; $i++) {
            $Enom2 = new CEnomInterface();
            $Enom2->NewRequest();
            $Enom2->AddParam("uid", $enom_username);
            $Enom2->AddParam("pw", $enom_password);
            $Enom2->AddParam("enduserip", $enduserip);
            $Enom2->AddParam("site", $sitename);
            $Enom2->AddParam("command", "GetDomains");
            $Enom2->AddParam("tab", "iown");
            $Enom2->AddParam("start", $start);
            //echo $Enom2->PostString.'<br>';
            $Enom2->DoTransaction();
            $e_domain_id = $Enom2->Values["DomainNameID" . "{$i}"];
            $sld = $Enom2->Values["sld" . "{$i}"];
            $tld = $Enom2->Values["tld" . "{$i}"];
            list($month, $day, $year) = split('[/]', $Enom2->Values["expiration-date" . "{$i}"]);
            if (strlen($day) != 2) {
Пример #19
0
 }
 if (empty($HTTP_POST_VARS['CCZip'])) {
     $CCZip = FALSE;
     $message = 'All Required fields are not filled out';
 } else {
     $CCZip = $HTTP_POST_VARS["CCZip"];
 }
 if (empty($HTTP_POST_VARS['CVV2'])) {
     $CVV2 = FALSE;
     $message = 'All Required fields are not filled out';
 } else {
     $CVV2 = $HTTP_POST_VARS["CVV2"];
 }
 if ($CreditCardNumber && $CreditCardExpMonth && $CreditCardExpYear && $CCName && $CardType && $CCAddress && $CCZip && $CVV2) {
     //Send purchase call to enom
     $Enom = new CEnomInterface();
     $Enom->NewRequest();
     $Enom->AddParam("tld", $tld);
     $Enom->AddParam("sld", $sld);
     $Enom->AddParam("uid", $username);
     $Enom->AddParam("pw", $password);
     $Enom->AddParam("EndUserIP", $enduserip);
     $Enom->AddParam("command", "getcontacts");
     $Enom->DoTransaction();
     //echo $Enom->PostString.'<br>';
     if ($Enom->Values["ErrCount"] != "0") {
         // Yes, get the first one
         $message = $Enom->Values["Err1"];
     } else {
         $RegistrantAddress1 = $Enom->Values["RegistrantAddress1"];
         $RegistrantAddress2 = $Enom->Values["RegistrantAddress2"];
Пример #20
0
<?php

include "include/sessions.php";
include "include/EnomInterface_inc.php";
$Enom = new CEnomInterface();
$Enom->AddParam("uid", "enom username");
$Enom->AddParam("pw", "enom password");
$Enom->AddParam("command", "GETAGREEMENTPAGE");
$Enom->DoTransaction();
$content = urldecode($Enom->Values['content']);
echo $content;
Пример #21
0
$user_id = $_COOKIE['id'];
$tld = $_GET["tld"];
$sld = $_GET["sld"];
$action = $_GET["action"];
if (!isset($_COOKIE['loggedin_user'])) {
    header("Location:  {$secure_site_url}/login.php?target=mailsettings&sld={$sld}&tld={$tld}&action={$action}");
    exit;
    // Quit the script.
}
include 'include/dbconfig.php';
if ($action == "go") {
    $mailchoice = $_GET["choice"];
    include "include/DomainFns_inc.php";
    include "include/EnomInterface_inc.php";
    //The table is not needed as they made a choice, so lets start the enom call
    $Enom = new CEnomInterface();
    $Enom->NewRequest();
    $Enom->AddParam("uid", $enom_username);
    $Enom->AddParam("pw", $enom_password);
    $Enom->AddParam("tld", $tld);
    $Enom->AddParam("sld", $sld);
    $Enom->AddParam("NewOptionID", $mailchoice);
    $Enom->AddParam("Service", "emailset");
    $Enom->AddParam("command", "serviceselect");
    $Enom->DoTransaction();
    if ($Enom->Values["ErrCount"] != "0") {
        // Yes, get the first one
        $message .= $Enom->Values["Err1"];
    } else {
        $query = "UPDATE domains SET mail='{$mailchoice}' WHERE sld='{$sld}' and tld='{$tld}' and user_id='{$user_id}'";
        $result = @mysql_query($query);
Пример #22
0
session_name('API-PHPSESSID');
session_start();
ob_start();
$username = $_COOKIE['loggedin_user'];
$user_id = $_COOKIE['id'];
$sld = $_GET['sld'];
$tld = $_GET['tld'];
if (!isset($_COOKIE['loggedin_user'])) {
    header("Location:  {$secure_site_url}/login.php?target=dmain&sld={$sld}&tld={$tld}");
    exit;
    // Quit the script.
}
require "include/dbconfig.php";
include "include/EnomInterface_inc.php";
$Enom = new CEnomInterface();
$Enom->AddParam("uid", $enom_username);
$Enom->AddParam("pw", $enom_password);
$Enom->AddParam("sld", $sld);
$Enom->AddParam("tld", $tld);
$Enom->AddParam("command", "GetSPFHosts");
$Enom->AddParam("site", $sitename);
$Enom->AddParam("enduserip", $enduserip);
$Enom->DoTransaction();
if ($Enom->Values["ErrCount"] != "0") {
    $message .= $Enom->Values["Err1"];
} else {
    $HostName = $Enom->Values["HostName1"];
    $hostid = $Enom->Values["hostid1"];
}
$action = $HTTP_POST_VARS["action"];
Пример #23
0
    header("Location:  https://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "login.php?target=change_whois");
    exit;
    // Quit the script.
}
require "include/dbconfig.php";
require "include/EnomInterface_inc.php";
$sld = $_GET["sld"];
$tld = $_GET["tld"];
$command = $_GET["command"];
$action = $HTTP_POST_VARS["action"];
if ($sld == '' || $tld == '') {
    header("Location:  {$site_url}/dmain.php");
    exit;
    // Quit the script.
}
$Enom = new CEnomInterface();
$Enom->AddParam("tld", $tld);
$Enom->AddParam("sld", $sld);
$Enom->AddParam("uid", $enom_username);
$Enom->AddParam("pw", $enom_password);
$Enom->AddParam("command", "getcontacts");
$Enom->DoTransaction();
// Get number of errors
$nNumErrors = $Enom->Values["ErrCount"];
if ($nNumErrors > 0) {
    // There were errors
    $message .= "There were errors:<br />";
    // Loop through all errors and print them out
    for ($i = 1; $i <= $nNumErrors; $i++) {
        $message .= "{$i}) {$Enom->Values["Err" . $i]}<br />";
    }
Пример #24
0
		              <span class="BasicText"><center><strong><u>Web Hosting Plans</u></strong></center></span>
		              <center>            <?php 
//Set $i equal to hosting package Number
$PackageCount = $Enom->Values["PackageCount"];
for ($i = 1; $i <= $PackageCount; $i++) {
    //Get Enon Variables
    $PackageID = $Enom->Values["PackageID" . "{$i}"];
    $PackageName = $Enom->Values["PackageName" . "{$i}"];
    $BandwidthGB = $Enom->Values["BandwidthGB" . "{$i}"];
    $WebStorageMB = $Enom->Values["WebStorageMB" . "{$i}"];
    $DatabaseType = $Enom->Values["DatabaseType" . "{$i}"];
    $POPMailBoxes = $Enom->Values["POPMailBoxes" . "{$i}"];
    $DBStorageMB = $Enom->Values["DBStorageMB" . "{$i}"];
    include "include/dbconfig.php";
    //Rename to Enom2 Since Looping the Variables
    $Enom2 = new CEnomInterface();
    $Enom2->AddParam("uid", $enom_username);
    $Enom2->AddParam("pw", $enom_password);
    $Enom2->AddParam("command", "CalculateAllHostPackagePricing");
    $Enom2->AddParam("PackageName{$i}", $PackageName);
    $Enom2->AddParam("enduserip", $enduserip);
    $Enom2->AddParam("site", $sitename);
    $Enom2->AddParam("User_ID", $_SESSION['id']);
    $Enom2->DoTransaction();
    $SellPrice = $Enom2->Values["SellPrice" . "{$i}"];
    //Change the way the Storage shows for Access Databases
    if ($DBStorageMB == '0') {
        $DBStorageMB = 'Access';
        $MB = "";
    } else {
        $MB = "MB";
Пример #25
0
                $WPPSEnabled2 = "checked";
            } else {
                $message = "There was an error checking for the lock status; try again later.";
            }
        }
    }
}
if ($HTTP_POST_VARS["action"] == "modify") {
    $Enom = new CEnomInterface();
    $wppsvar = $HTTP_POST_VARS["wppsvar"];
    if ($wppsvar == 0) {
        $wpps = 1120;
    } elseif ($wppsvar == 1) {
        $wpps = 1123;
    }
    $Enom = new CEnomInterface();
    $Enom->NewRequest();
    $Enom->AddParam("uid", $enom_username);
    $Enom->AddParam("pw", $enom_password);
    $Enom->AddParam("tld", $tld);
    $Enom->AddParam("sld", $sld);
    $Enom->AddParam("NewOptionID", $wpps);
    $Enom->AddParam("Service", "wpps");
    $Enom->AddParam("Update", "true");
    $Enom->AddParam("command", "serviceselect");
    $Enom->DoTransaction();
    if ($Enom->Values["ErrCount"] != "0") {
        // Yes, get the first one
        $message .= $Enom->Values["Err1"];
    } else {
        header("Location: dmain.php?sld={$sld}&tld={$tld}");
Пример #26
0
			if(strlen($HostPassword) < 6){
				   $message2 .= "<br>Your password $HostPassword  must be 6 characters";
				   $HostPassword = FALSE;
				} else {
					if (!preg_match("/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/", $HostPassword)) {
					  $message2 .= "<br>Your password does not meet complexity requirements";
					  $HostPassword = FALSE;
					}
				}
	} else {
		$HostPassword = FALSE;
		$message2 .= '<br>Your passwords do not match';
		}

	if($HostPassword){
		$Enom = new CEnomInterface;
		$Enom->NewRequest();
		$Enom->AddParam( "uid", $enom_username );
		$Enom->AddParam( "pw", $enom_password );
		$Enom->AddParam( "HostAccount", $HostAccount );
		$Enom->AddParam( "NewHostPW", $HostPassword );
		$Enom->AddParam( "ConfirmNewHostPW", $cPW2 );
		$Enom->AddParam( "enduserip", $enduserip );
		$Enom->AddParam( "site", $sitename );
		$Enom->AddParam( "User_ID", $_COOKIE['id'] );
		$Enom->AddParam( "command", "WebHostUpdatePassword" );
		$Enom->DoTransaction();

		if ( $Enom->Values[ "ErrCount" ] == "0" ) {
			$message2 .= "Succesfully Updated Host account $HostAccount's password";
			} else {
Пример #27
0
<?php

include "include/sessions.php";
$sld = $_SESSION['sld'];
$tld = $_SESSION['tld'];
include "include/DomainFns_inc.php";
include "include/LoggedIn.php";
include "include/EnomInterface_inc.php";
// Create URL Interface class
$Enom = new CEnomInterface();
//Grab current email address
$Enom->NewRequest();
$Enom->AddParam("uid", $username);
$Enom->AddParam("pw", $password);
$Enom->AddParam("tld", $tld);
$Enom->AddParam("sld", $sld);
$Enom->AddParam("command", "getdotnameforwarding");
$Enom->DoTransaction();
//error handling
if ($Enom->Values["ErrCount"] != "0") {
    // Yes, get the first one
    $expMsg = $Enom->Values["Err1"];
    $nameError = 1;
} else {
    $dotNameFor = $Enom->Values["address"];
}
$updateForward = $HTTP_POST_VARS["updateForward"];
if ($updateForward == 1) {
    $forwardto = $HTTP_POST_VARS["forwardto"];
    //change email address
    $Enom->NewRequest();
Пример #28
0
function ModifyDNS()
{
    global $HTTP_POST_VARS;
    global $username;
    global $password;
    global $tld;
    global $sld;
    $Ret = 0;
    // Create URL Interface object
    $Enom = new CEnomInterface();
    $Enom->AddParam("uid", $username);
    $Enom->AddParam("pw", $password);
    $Enom->AddParam("sld", $sld);
    $Enom->AddParam("tld", $tld);
    // Do they want to use our (eNom's) nameservers?
    if ($HTTP_POST_VARS["UseNameserver"] == "default") {
        // Set to use eNom DNS
        $Enom->AddParam("UseDNS", "default");
    } else {
        // Get number of DNS servers
        $nDNSCount = $HTTP_POST_VARS["DNSCount"];
        // Loop through all DNS servers
        for ($i = 1; $i <= $nDNSCount; $i++) {
            // Add this server
            $Enom->AddParam("NS" . $i, $HTTP_POST_VARS["DNS" . $i]);
        }
    }
    //Add IP address of end user
    $Enom->AddParam("EndUserIP", $enduserip);
    // Modify nameservers
    $Enom->AddParam("command", "modifyns");
    $Enom->DoTransaction();
    // Check if there were errors
    if ($Enom->Values["ErrCount"] != "0") {
        echo "Errors modifying nameservers: {$Enom->Values["Err1"]}";
    } else {
        // Modifying nameservers in an RRP function, check response from NSI
        if ($Enom->Values["RRPCode"] != "200") {
            echo "Errors modifying nameservers: {$Enom->Values["RRPText"]}";
        } else {
            // Success
            $Ret = 1;
        }
    }
    return $Ret;
}
Пример #29
0
 $username = $row[username];
 $full_name = $row[full_name];
 $host_username = $row[host_username];
 $host_password = $row[host_password];
 $email = $row[email];
 $package_id = $row[package_id];
 $package_name = $row[package_name];
 $price = $row[price];
 $next_renew = $row[next_renew];
 if ($currentdate == $next_renew) {
     $sql1 = "UPDATE webhosting SET status='3' WHERE user_id='{$userid}' AND host_username='******'";
     $sql2 = mysql_query($sql1);
     if ($sql2) {
         //If the result was ok - then Set the host account deletion flag
         require "../EnomInterface_inc.php";
         $Enom = new CEnomInterface();
         $Enom->AddParam("uid", $enom_username);
         $Enom->AddParam("pw", $enom_password);
         $Enom->AddParam("site", $sitename);
         $Enom->AddParam("HostAccount", $host_username);
         $Enom->AddParam("Delete", "1");
         $Enom->AddParam("Enable", "0");
         $Enom->AddParam("command", "CancelHostAccount");
         $Enom->DoTransaction();
         if ($Enom->Values["ErrCount"] != '0') {
             $Err1 = $Enom->Values["Err1"];
             //Error, send an email to the admin
             $subject8 = "{$CompanyName} ERROR - Delete Hosting";
             $body8 = "Hello {$CompanyName} support,\n\n\n";
             $body8 .= "The site recently encountered an error in attempting the following action:\n\n";
             $body8 .= "------------------------------------------------------------------\n";
Пример #30
0
     $Enom4 = new CEnomInterface();
     $Enom4->NewRequest();
     $Enom4->AddParam("uid", $enom_username);
     $Enom4->AddParam("pw", $enom_password);
     $Enom4->AddParam("HostAccount", $HostAccount);
     $Enom4->AddParam("Command", "WEBHOSTHELPINFO");
     $Enom4->DoTransaction();
     $Server = $Enom4->Values["HostURI"];
     $query = "INSERT INTO webhosting (user_id, username , host_username, host_password, full_name, email, package_name, product_id, package_id, db_type, db_storage, pop_boxes, disk_storage, bandwidth,  next_renew, date, order_id, price, status, IP)\n\t\t\t\t\t\tVALUES ('{$user_id}', '{$username}', '{$HostAccount}', '{$Password}', '{$full_name}', '{$email_addy}', '{$p_name}', '11', '{$host_package}', '{$dbtype}', '{$db_storage}', '{$POPMailBoxes}', '{$WebStorageMB}', '{$BandwidthGB}', '{$duedate}', '{$orderdate}', '{$OrderID}', '{$charge}', '0', '{$Server}')";
     $result = mysql_query($query);
     $sql_update = "UPDATE invoice_items SET status = '1' WHERE table_id='{$table_id}'";
     $result_update = mysql_query($sql_update);
     $message .= "Success! {$ret_command} submitted in Order ID {$OrderID}<br>";
     include "../emails/wh_order.php";
 } elseif ($prodid == 12) {
     $Enom2 = new CEnomInterface();
     $Enom2->NewRequest();
     $Enom2->AddParam("uid", $enom_username);
     $Enom2->AddParam("pw", $enom_password);
     $Enom2->AddParam("tld", $tld);
     $Enom2->AddParam("sld", $sld);
     $Enom2->AddParam("Command", "GetDomainInfo");
     $Enom2->DoTransaction();
     $domainID = $Enom2->Values["domainnameid"];
     $expiration = $Enom2->Values["expiration"];
     $query = "INSERT INTO domains (user_id , e_domain_id, sld, tld, exp_date, order_date, dns,  mail, webhosted, status, pop, idprotect, auto_renew, reg_lock, tv, parking, name_phone, name_map, password, lastupdate, e_order_id)\n\t\t\t\t\t\t\t\t  VALUES ('{$user_id}', {$domainID}, '{$sld}', '{$tld}', '{$expiration}', curdate(), '{$dns}', '0', '0', '2', '0', '0', '0', '0', '0', '0', '0', '0', 'NULL', current_timestamp(), '{$OrderID}')";
     $result = mysql_query($query);
     $sql_update = "UPDATE invoice_items SET status = '1' WHERE table_id='{$table_id}'";
     $result_update = mysql_query($sql_update);
     $message .= "Success! {$ret_command} submitted in Order ID {$OrderID} <br>";
 } elseif ($prodid == 15) {