vexusdev
BANNED
- Dec 13, 2008
- 284
- 108
So.. basically I run a video gallery and when one of the thumbnails is clicked it goes into a php function that makes the views counter go up and then displays the page.
So I decided to add a random chance of one of my banners being clicked(faked).. open a window to the affilate url, 1 of 5 of the banners URLS I collected off my website.
Now all this works.. but do you think when it opens in a new window..and I send them their using the captured URLS of banners that have been displayed on my website, it will count as a click?
I hope you guys understand what I'm saying.
Any ideas?
So I decided to add a random chance of one of my banners being clicked(faked).. open a window to the affilate url, 1 of 5 of the banners URLS I collected off my website.
Now all this works.. but do you think when it opens in a new window..and I send them their using the captured URLS of banners that have been displayed on my website, it will count as a click?
I hope you guys understand what I'm saying.
Code:
$rnum = rand(0,3);
if($rnum == 0) {
$rnum2 = rand(1,5);
if($rnum2 == 1) {
echo "<script
language=javascript>window.open('http://click.nyx.adbrite.com/mb/click.php?sid=0000000&banner_id=12569468&variation_i
d=1344105&uts=1231118069&cpc=302e303735343734333237393633373531&keyword_id=1474020&zk_id=40318379&ab=168362233&sscup
=2090711891fbd98bc2e9b7a214688a63&sscra=f61ca0fae584e67fa33a4bc590b4551c&ub=1165024362&guid=a43781cd3bc7aa6bf20a79a8
b3ecd0cd&rs=&r=')</script>";
} elseif($rnum2 == 2) {
echo "<script
language=javascript>window.open('http://click.nyx.adbrite.com/mb/click.php?sid=000000&banner_id=12567968&variation_i
d=1334285&uts=1231118156&cpc=302e303934343033303936353139323839&keyword_id=1474020&zk_id=40318379&ab=168362097&sscup
=0bff4d61862e47b04fc925d3ceb27bc1&sscra=f61ca0fae584e67fa33a4bc590b4551c&ub=1165024362&guid=218737ef0058effcc9b99961
e0adc2cd&rs=&r=')</script>";
} elseif($rnum2 == 3) {
//blah bla blah
//and so on!
Any ideas?