Ik heb hem wat aangepast:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL] [COLOR= #DD0000]../_include.php[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$spel[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT ronde FROM spel WHERE id = 1"[/COLOR][COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$ips[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
[COLOR= #DD0000]82.94.203.80[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]82.94.203.81[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]82.94.203.82[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]82.94.203.83[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]82.94.203.84[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]82.94.203.85[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]82.94.203.86[/COLOR]
[COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/in_array"]in_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$ips[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
INSERT INTO
klikbottom
(
link,
kliks
)
VALUES
(
"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]link[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",
2000
)"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE ronde SET jackpot = jackpot + 1, bellers = bellers + 1 WHERE ronde = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$spel[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ronde[/COLOR][COLOR= #007700]])[/COLOR] OR [URL="http://www.php.net/DIE"]DIE[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]OK[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]NOTOK[/COLOR][COLOR= #007700];
}[/COLOR]
?>
Kun je niet een bedrag van € 0,01 instellen om hem te testen met je huistelefoon?
Voor het one2xs belsysteem gebruiken we ook Mollie zoals je wellicht weet, en daar heb ik het bedrag voor op 0,01 of iets anders laags gezet zodat je het toch kunt testen.
Als ik het script zo zie dan moet hij werken, maar ik weet dat natuurlijk ook niet zeker. Hoe lang je ook programmeert, je blijft fouten maken, en je moet gewoon alles testen wat je maakt.
Zeg t maar als je systeem af is, dan haal ik dit script wel uit mn post.