“Google”)));
//$postfields[“currency”] = “1”;

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$data = curl_exec($ch);
curl_close($ch);

$data = explode(“;”,$data);
foreach ($data AS $temp) {
$temp = explode(“=”,$temp);
$results[$temp[0]] = $temp[1];
}

/*
if ($results[“result”]==”success”) {
# Result was OK!
echo “Client added”;
} else {
# An error occured
echo “The following error occured: “.$results[“message”];
}

echo “
“;
*/

// ———————————————— Get client id ————————————————-

//$con = mysql_connect(“162.243.79.218″,”tbdb”,”S6kohA4I”) or die(mysql_error());
//mysql_select_db(“tricwhmcs”);

$result = mysql_query(“SELECT id FROM tblclients where email=’$email'”);

$data = mysql_fetch_array($result);
$userid = $data[“id”];
/*echo $userid;
echo “
“;
*/

// ———————————————— Add order ————————————————-

$postfields[“action”] = “addorder”;
$postfields[“clientid”] = “$userid”;
$postfields[“pid”] = “4”;
$postfields[“clientip”] = $_SERVER[‘REMOTE_ADDR’];
$postfields[“noemail”] = “true”;

//$postfields[“domain”] = “whmcs.com”;
//$postfields[“billingcycle”] = “monthly”;
//$postfields[“addons”] = “1,3,9”;
//$postfields[“customfields”] = base64_encode(serialize(array(“1″=>”Google”)));
//$postfields[“domaintype”] = “register”;
//$postfields[“regperiod”] = “1”;
$postfields[“paymentmethod”] = “paypal”;

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$data = curl_exec($ch);
curl_close($ch);

$data = explode(“;”,$data);
foreach ($data AS $temp) {
$temp = explode(“=”,$temp);
$results[$temp[0]] = $temp[1];
}

/*
if ($results[“result”]==”success”) {
# Result was OK!
echo “Order added.”;
} else {
# An error occured
echo “The following error occured: “.$results[“message”];
}
*/

// ———————————————— Get order id ————————————————-

$result = mysql_query(“SELECT id FROM tblorders where userid=’$userid'”);

$data = mysql_fetch_array($result);
$orderid = $data[“id”];
/* echo $orderid;
echo “
“;
*/
// ———————————————— Accept order ————————————————-

$postfields[“action”] = “acceptorder”;
$postfields[“orderid”] = “$orderid”;
$postfields[“autosetup”] = true;
$postfields[“sendemail”] = true;

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 100);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
$data = curl_exec($ch);
curl_close($ch);

$data = explode(“;”,$data);
foreach ($data AS $temp) {
$temp = explode(“=”,$temp);
$results[$temp[0]] = $temp[1];
}

/*
if ($results[“result”]==”success”) {
# Result was OK!
echo “Order Accepted.”;
} else {
# An error occured
echo “The following error occured: “.$results[“message”];
}

echo “
“;
*/
// ———————————————— Update client status ————————————————-
$retval = mysql_query(“UPDATE tblclients SET status=’Active’ WHERE id=’$userid'”);

// ———————————————— Affiliate id record ————————————————-

$refer = $_COOKIE[“WHMCSAffiliateID”];

if ($refer != NULL) {
$retval = mysql_query(“UPDATE tblclients SET refer=’$refer’ WHERE id=’$userid'”);
}

?>

Completed!

Congratulations!

Your account is now active and ready to use. Please check your email inbox for welcome email and login credential.
If you can’t find it. Please check your spam folder or junk mail box.



Welcome back, Old friend

We believe you are already a member. Please login here
Click forgot your password if you have forgotten it.
If you believe you have never sign up with us before. Please contact us

Start Your Free Trial

No Credit Card Required – 100% Free Signup Now

Watch Netflix, Hulu, BBC, Zattoo, 4oD, Demand 5 Anywhere on Earth.



Warning: Your email must be valid

TrickByte Smart DNS Feature

What You Can’t Miss

60+ Supported Channels

Netflix, Hulu, BBC, 4oD, Demand 5 and Many More. New supported channels are added every month

Learn More

Work With Many Devices

TrickByte works with all major devices iPhone, iPad, Android, Apple TV, Amazon Fire TV and Many More!

Learn More

Low Price

Trickbyte offer 100% free. You can try longer and save more with us!

Learn More