can any1 help me about this?
i am using ad4earn script, i can't get it working
the code 4m where the publisher earning being generated:
<?php
include "inc/def.php";
$ukey=secureget('id');
$ckey=secureget('ckey');
$getu = mysql_query("SELECT * FROM users WHERE skey='$ukey'");
$getu1 = mysql_fetch_array($getu);
$advuid = $getu1['id'];
$bal = $getu1['bal'];
$pbal = $getu1['pbal'];
$points = $getu1['adbalance'];
$getux = mysql_query("SELECT * FROM comp WHERE play='1'");
$getux1 = mysql_fetch_array($getux);
$advcid = $getux1['id'];
$cuid = $getux1['uid'];
$referrer = getenv('HTTP_REFERER');
if(strlen($referrer)>5){
$advurl = $getux1['url'];
}else{
$advurl = "http://mysiteurl.com";
}
$getuxxx = mysql_query("SELECT * FROM users WHERE id='$cuid'");
$getuxxx1 = mysql_fetch_array($getuxxx);
$cpnt = $getuxxx1['point'];
$cid1 = $getuxxx1['id'];
$today = date("F j Y");
$ip = $_SERVER['REMOTE_ADDR'];
$ua = $_SERVER['HTTP_USER_AGENT'];
$tm=date("U");
$ip = $_SERVER['REMOTE_ADDR'];
$ref = getenv('HTTP_REFERER');
$lastclick = mysql_fetch_array(mysql_query("SELECT tm FROM clicks WHERE ip='$ip'"));
$flood = $lastclick[0]+500;
$addclick = mysql_query("INSERT INTO clicks (uid,compid,ip,ua,time,tm,ref) VALUES ('$advuid','$advcid','$ip','$ua','$today','$tm','$ ref')") or die("ERRRORR !! UNABLE TO PROCESS PROCESS...");
if($addclick){
$chk=mysql_fetch_array(mysql_query("SELECT active FROM users WHERE skey='$ukey'"));
$reqst = mysql_fetch_array(mysql_query("SELECT pbal FROM users WHERE skey='$ukey'"));
if($chk[0]==0){
$add = $reqst[0]+0.00;
}else if($chk[0]==2){
$add = $reqst[0]+0.00;
}else{
$add = $reqst[0]+0.20;
}
$sql = mysql_query("UPDATE users SET pbal='$add' WHERE skey='$ukey'");
$cut = mysql_fetch_array(mysql_query("SELECT blns FROM comp WHERE play='1'"));
if($chk[0]==0){
$cutit = $cut[0]-0;
}else if($chk[0]==2){
$cutit = $cut[0]-0;
}else{
$cutit = $cut[0]-2;
}
$updt1 = mysql_query("UPDATE comp SET blns ='$cutit' WHERE play='1'");
}
header("location:$advurl");
?>
repeated clicks are being counted with same ip and browser......Can any1 help it out to solve the problem!!!!!!!!!
how 2 make anticheat here???????
i will be waited 2 hear from seniors and all CT members..
i am using ad4earn script, i can't get it working
the code 4m where the publisher earning being generated:
<?php
include "inc/def.php";
$ukey=secureget('id');
$ckey=secureget('ckey');
$getu = mysql_query("SELECT * FROM users WHERE skey='$ukey'");
$getu1 = mysql_fetch_array($getu);
$advuid = $getu1['id'];
$bal = $getu1['bal'];
$pbal = $getu1['pbal'];
$points = $getu1['adbalance'];
$getux = mysql_query("SELECT * FROM comp WHERE play='1'");
$getux1 = mysql_fetch_array($getux);
$advcid = $getux1['id'];
$cuid = $getux1['uid'];
$referrer = getenv('HTTP_REFERER');
if(strlen($referrer)>5){
$advurl = $getux1['url'];
}else{
$advurl = "http://mysiteurl.com";
}
$getuxxx = mysql_query("SELECT * FROM users WHERE id='$cuid'");
$getuxxx1 = mysql_fetch_array($getuxxx);
$cpnt = $getuxxx1['point'];
$cid1 = $getuxxx1['id'];
$today = date("F j Y");
$ip = $_SERVER['REMOTE_ADDR'];
$ua = $_SERVER['HTTP_USER_AGENT'];
$tm=date("U");
$ip = $_SERVER['REMOTE_ADDR'];
$ref = getenv('HTTP_REFERER');
$lastclick = mysql_fetch_array(mysql_query("SELECT tm FROM clicks WHERE ip='$ip'"));
$flood = $lastclick[0]+500;
$addclick = mysql_query("INSERT INTO clicks (uid,compid,ip,ua,time,tm,ref) VALUES ('$advuid','$advcid','$ip','$ua','$today','$tm','$ ref')") or die("ERRRORR !! UNABLE TO PROCESS PROCESS...");
if($addclick){
$chk=mysql_fetch_array(mysql_query("SELECT active FROM users WHERE skey='$ukey'"));
$reqst = mysql_fetch_array(mysql_query("SELECT pbal FROM users WHERE skey='$ukey'"));
if($chk[0]==0){
$add = $reqst[0]+0.00;
}else if($chk[0]==2){
$add = $reqst[0]+0.00;
}else{
$add = $reqst[0]+0.20;
}
$sql = mysql_query("UPDATE users SET pbal='$add' WHERE skey='$ukey'");
$cut = mysql_fetch_array(mysql_query("SELECT blns FROM comp WHERE play='1'"));
if($chk[0]==0){
$cutit = $cut[0]-0;
}else if($chk[0]==2){
$cutit = $cut[0]-0;
}else{
$cutit = $cut[0]-2;
}
$updt1 = mysql_query("UPDATE comp SET blns ='$cutit' WHERE play='1'");
}
header("location:$advurl");
?>
repeated clicks are being counted with same ip and browser......Can any1 help it out to solve the problem!!!!!!!!!
how 2 make anticheat here???????
i will be waited 2 hear from seniors and all CT members..
Comment