-4
Well I am creating a site, where users earn points when completing offers, and when completing the system gives points.
Yet 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 Sig is equal to secret, the user is credited with points, however I am testing directly from the offertoro site and this is not working, I mean Sig is different from secret, it means that there is something wrong in secret.
I was wondering if Function md5, is respecting the parameters, or if there’s something wrong.
Key = 756ddad67f428a1db92ee0a2870005a4
Here’s the website where I got this:
Just pull it down and they’ll find.
Thank you.
Missing offer and User ID. And this line has error:
$id = $_GET["userid"];
– Bacco
I already did it! the error was accurate in the "_" that was missing! Thank you for helping me.
– Gonçalo
Thank you ;) For the next I put more details.
– Gonçalo