markman641
08-23-2011, 12:38 AM
Hello, i have the following code: <?
include ("config.php");
//here we will use get variables.
$snuid = $_GET['%yti%'];
$campid = $_GET['%campaignid%'];
$points = $_GET['%rate%'];
$ip = $_SERVER['%REMOTE_ADDR%'];
$sts = $_GET['%credit%'];
if ($ip == "174.120.27.187" || "174.120.146.43" && $sts="1")
{
//INSERT LOGIC TO CREDIT POINTS TO USERS
mysql_query("UPDATE members SET pokerpoints=pokerpoints+".$points." WHERE username='".$snuid."'");
mysql_query("UPDATE members SET totalpointsearned=totalpointsearned+".$points." WHERE username='".$snuid."'");
mysql_query("INSERT into recentpoints (message) VALUES ('$snuid has just cashed out for $points Bankroll Bucks')");
mysql_close();
}
else
{
die ("query failed");
}
?>
this script is a postback script for proleads/loypalpubs, and its supposed to credit the YTI(username) when someone completes an offer, but its not working and I dont know why.
include ("config.php");
//here we will use get variables.
$snuid = $_GET['%yti%'];
$campid = $_GET['%campaignid%'];
$points = $_GET['%rate%'];
$ip = $_SERVER['%REMOTE_ADDR%'];
$sts = $_GET['%credit%'];
if ($ip == "174.120.27.187" || "174.120.146.43" && $sts="1")
{
//INSERT LOGIC TO CREDIT POINTS TO USERS
mysql_query("UPDATE members SET pokerpoints=pokerpoints+".$points." WHERE username='".$snuid."'");
mysql_query("UPDATE members SET totalpointsearned=totalpointsearned+".$points." WHERE username='".$snuid."'");
mysql_query("INSERT into recentpoints (message) VALUES ('$snuid has just cashed out for $points Bankroll Bucks')");
mysql_close();
}
else
{
die ("query failed");
}
?>
this script is a postback script for proleads/loypalpubs, and its supposed to credit the YTI(username) when someone completes an offer, but its not working and I dont know why.