Hallo,
Ik ben net begonnen met een Eurobellen API maar nu probeer ik hem te testen via de testmode en dan krijg ik steeds deze fout: Pincode validatie mislukt (ERR1)
Weet iemand wat ik fout doe?
Ik ben net begonnen met een Eurobellen API maar nu probeer ik hem te testen via de testmode en dan krijg ik steeds deze fout: Pincode validatie mislukt (ERR1)
Weet iemand wat ik fout doe?
[COLOR= #0000BB]<?php
$ebcheck[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"http://www.eurobellen.nl/bel/check.php?test=faexu&userid=9cmuijt&ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"&ebpin="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ebpin[/COLOR][COLOR= #007700]]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ebcheck[/COLOR][COLOR= #007700]!=[/COLOR][COLOR= #DD0000]"OK"[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Pincode validatie mislukt ($ebcheck)"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
?>
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE `users` SET credits=credits+8 WHERE `id` = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
?>
echo "De 8 credits zijn aan uw account toegevoegd. Wij wensen u veel plezier ermee!";
Heb het eerder deze dag getest met een ander script (belspel op geldezeltje) en toen werkte die testmode met de code 0199 wel.