Tutorial Hướng dẫn Add post back OR, RED(Gain Corporation) cho 1 số code

duymuoi

Junior
Joined
Sep 30, 2010
Messages
97
Reactions
90
MR
0.000
Vừa rồi thấy khá nhiều bạn hỏi về postback của 2 net này. mình vừa addd xong cho code dạng này bạn nào cần thì lấy nha
đây là hình ảnh admin của site này
hinh.png

các bạn chỉ cần dowload file này về rồi up lên host giải nén. sau đó khi add offer của net OR và Red chính là cái Gain Corporation
link: https://www.mediafire.com/?e1r83sxqpm7gplx
 
Thì mình mới nhờ bạn cho mình cái postback gain corporation của code f1. Nếu bạn có thì cho mình với. Cảm ơn bạn nhiều lắm.
<?php
/**
*** W3Offers.biz Postback System
*** Work stably with all CPA platform
*** Developed by W3Offers.biz Admin
*/

// Input database information
include("config.php");

//$ipFrom = $_SERVER['REMOTE_ADDR'];
// Get information from Network
//$offerId = $_GET['offer_id'];
$trackingID = $_REQUEST['subid'];

//$test1 = $trackingID.'_1';
//mysql_query("INSERT INTO test(id,m) VALUES('','$test1')");

// Get Click Information
$queryClick = mysql_query("SELECT * FROM clicks WHERE trackingID='".$trackingID."' ORDER BY id DESC LIMIT 0,1") or die(mysql_error());
if(mysql_num_rows($queryClick) != 0) {
//$test2 = $trackingID.'_2';
//mysql_query("INSERT INTO test(id,m) VALUES('','$test2')");
$info = mysql_fetch_array($queryClick);
$offerId = $info['offerId'];
$offerIdOffer = $info['offerIdOffer'];
$offerName = $info['offerName'];
$offerCC = $info['offerCC'];
$offerNwk = $info['offerNwk'];
$points = $info['points'];
$ip = $info['ip'];
$port = $info['port'];
$protocol = $info['protocol'];
$hostName = $info['hostName'];
$userAgent = $info['userAgent'];
$userId=$info['userName'];
$date = date("Y-m-d H:i:s");
} else {
exit();
}

//Check if User exists
$checkUser = mysql_query("SELECT * FROM members WHERE userName='".$userId."'");
// If User exists
if(mysql_num_rows($checkUser) !=0){
//Update Leads Information
mysql_query("UPDATE members SET points=points+".$points." WHERE userName ='".$userId."'");
mysql_query("UPDATE members SET leadedOffers=leadedOffers+1 WHERE userName ='".$userId."'");
mysql_query("INSERT INTO leads(id, offerId, offerIdOffer, offerName, points, offerCC, offerNwk, ip, port, protocol, hostName, userAgent, userName, date) VALUES('','$offerId','$offerIdOffer','$offerName','$points','$offerCC','$offerNwk','$ip','$port','$protocol','$hostName','$userAgent','$userId','$date')");
mysql_query("INSERT INTO shoutbox(id, userName, offerName, offerNwk, points, date, message) VALUES('','$userId','$offerName','$offerNwk','$points','$date','')");
echo 1;
//$test3 = $trackingID.'_3';
//mysql_query("INSERT INTO test(id,m) VALUES('','$test3')");
} else {
//If User does NOT exists
echo 0;
}
mysql_close();
?>
 
<?php
/**
*** W3Offers.biz Postback System
*** Work stably with all CPA platform
*** Developed by W3Offers.biz Admin
*/

// Input database information
include("config.php");

//$ipFrom = $_SERVER['REMOTE_ADDR'];
// Get information from Network
//$offerId = $_GET['offer_id'];
$trackingID = $_REQUEST['subid'];

//$test1 = $trackingID.'_1';
//mysql_query("INSERT INTO test(id,m) VALUES('','$test1')");

// Get Click Information
$queryClick = mysql_query("SELECT * FROM clicks WHERE trackingID='".$trackingID."' ORDER BY id DESC LIMIT 0,1") or die(mysql_error());
if(mysql_num_rows($queryClick) != 0) {
//$test2 = $trackingID.'_2';
//mysql_query("INSERT INTO test(id,m) VALUES('','$test2')");
$info = mysql_fetch_array($queryClick);
$offerId = $info['offerId'];
$offerIdOffer = $info['offerIdOffer'];
$offerName = $info['offerName'];
$offerCC = $info['offerCC'];
$offerNwk = $info['offerNwk'];
$points = $info['points'];
$ip = $info['ip'];
$port = $info['port'];
$protocol = $info['protocol'];
$hostName = $info['hostName'];
$userAgent = $info['userAgent'];
$userId=$info['userName'];
$date = date("Y-m-d H:i:s");
} else {
exit();
}

//Check if User exists
$checkUser = mysql_query("SELECT * FROM members WHERE userName='".$userId."'");
// If User exists
if(mysql_num_rows($checkUser) !=0){
//Update Leads Information
mysql_query("UPDATE members SET points=points+".$points." WHERE userName ='".$userId."'");
mysql_query("UPDATE members SET leadedOffers=leadedOffers+1 WHERE userName ='".$userId."'");
mysql_query("INSERT INTO leads(id, offerId, offerIdOffer, offerName, points, offerCC, offerNwk, ip, port, protocol, hostName, userAgent, userName, date) VALUES('','$offerId','$offerIdOffer','$offerName','$points','$offerCC','$offerNwk','$ip','$port','$protocol','$hostName','$userAgent','$userId','$date')");
mysql_query("INSERT INTO shoutbox(id, userName, offerName, offerNwk, points, date, message) VALUES('','$userId','$offerName','$offerNwk','$points','$date','')");
echo 1;
//$test3 = $trackingID.'_3';
//mysql_query("INSERT INTO test(id,m) VALUES('','$test3')");
} else {
//If User does NOT exists
echo 0;
}
mysql_close();
?>

Tks dipphong rất nhiều. Mình đã làm dc. Thật ra code này mình đã có nhưng mà do để IP nên không postback được. Vừa bỏ IP là ok liền. Chắc là do bạn đem đến may mắn cho mình. ;););):D:D:D
 

Announcements

Today's birthdays

Forum statistics

Threads
424,926
Messages
7,152,687
Members
177,485
Latest member
edjinnuort

Most discussed of week

Most discussed of week

Back
Top Bottom