Xin pro giúp đỡ postback BLVD.

zzofferzz

Junior
Joined
Sep 18, 2013
Messages
34
Reactions
5
MR
0.000
Em xài code My Voucher Geek nhưng postback BLVD ko được. Các bác xem giúp em chỉnh trong account blvd như hình đã đúng chưa ạ. Cho em hỏi luôn như trong hình là em chỉnh rate 5-5 đúng ko ạ? Cám ơn các bác.
Code file postback thì như này:
<?php

/*
* Blvd-Media Group Postback Script.
* Support Contact: [email protected].
* Widget: RewardTool.
* Script: MyVoucherGeek - Edit GeekSP.
* Postback Version: 1.0.0.
* Develope by Steven Phan.
*/

// Include Configuration & DB Connection.
include("../../config.php"); // Your Configuration.
include("../../includes.php"); // Your Includes.
// BLVD Media Group.
$blvdmediagroup_setup = mysql_query("SELECT * FROM blvdmediagroup_setup");
$row_blvdmediagroup = mysql_fetch_array($blvdmediagroup_setup);
$BLVDMediaGroup_PubId = $row_blvdmediagroup[BLVDMediaGroup_PubId];
$BLVDMediaGroup_Password = $row_blvdmediagroup[BLVDMediaGroup_Password];
/*--------------------------------------------------*/
// Authenticate Session Via Blvd-Media Password.
if (($BLVDMediaGroup_Password == $_REQUEST['Validate']) || ($BLVDMediaGroup_Password == $BLVDMediaGroup_Password)) {
$net_id = 'BMG';
$ip = $_SERVER['REMOTE_ADDR'];
$campid = mysql_real_escape_string($_REQUEST['CampId']);
$subid = mysql_real_escape_string($_REQUEST['SubId']); // Username Of The User That Earned The Reward(s).
$earn = mysql_real_escape_string($_REQUEST['Earn']); // Amount That The User Has Earned.
$campaign_name = mysql_real_escape_string($_REQUEST['CampaignName']); // The campaign name.
//$query_getuserid = mysql_query("SELECT id from members WHERE username = '".$subid."'") or die(mysql_error());
//foreach(mysql_fetch_array($query_getuserid) as $userid);
$query_checkRef = mysql_query("SELECT referral_ID from members WHERE username = '".$subid."'") or die(mysql_error());
foreach(mysql_fetch_array($query_checkRef) as $ref_id_user);
if ($ref_id_user >= 1)
{
mysql_query("UPDATE members SET points = points + ".$earn." WHERE username = '".$subid."'");
mysql_query("UPDATE members SET completed_surveys = completed_surveys + 1 WHERE username = '".$subid."'");
mysql_query("INSERT INTO credit_logs(net_id, user_id, offer_id, offer_name, points, ip_completed) VALUES ('$net_id', '$subid', '$campid', 'BLVD Media Group - $campaign_name', '$earn', '$ip')");
mysql_query("UPDATE members SET points = points + ".$refer_points." WHERE id = '".$ref_id_user."'");
mysql_close();
echo "RewardTool&reg; Crediting Success: ".$subid." earned ".$earn." points\n and is referred by".$ref_id_user;
}
else
{
mysql_query("UPDATE members SET points = points + ".$earn." WHERE username = '".$subid."'");
mysql_query("UPDATE members SET completed_surveys = completed_surveys + 1 WHERE username = '".$subid."'");
mysql_query("INSERT INTO credit_logs(net_id, user_id, offer_id, offer_name, points, ip_completed) VALUES ('$net_id', '$subid', '$campid', 'BLVD Media Group - $campaign_name', '$earn', '$ip')");
mysql_close();
echo "RewardTool&reg; Crediting Success: ".$subid." earned ".$earn." points.";
}
}
else {
echo "RewardTool&reg; Error: Validation Not Accepted";
exit;
}

?>
 

Attachments

  • postback.JPG
    postback.JPG
    55.3 KB · Views: 100

Announcements

Today's birthdays

Forum statistics

Threads
427,564
Messages
7,212,819
Members
179,817
Latest member
noithatnhadepuma

Most discussed of week

Most discussed of week

Back
Top Bottom