Well I'm creating a site, where users earn points by completing offers, and by completing the system it gives points.
However I have the following code:
<?php
$oid = $_GET["oid"];
$amount = $_GET["amount"];
$id = $_GET["userid"];
$payout = $_GET["payout"];
$sig = $_GET["sig"];
$key = "Minha key";
$secret = md5($oid + "-" + $id + "-" + $key);
$postback = 1;
if($secret == $sig){
echo $postback;
}
?>
In other words, if the sig is equal to the secret, the user is credited with points, however I am testing directly from the offeror's website and this is not working, that is to say that sig is different from secret , that means there's something wrong with the secret.
I was wondering if function md5 is respecting the parameters, or if something is wrong.
Key = 756ddad67f428a1db92ee0a2870005a4
Here is where I got this:
Just pull down they find.
Thank you.