View file GBTop-TopList_v5.1_Decoded_by_Darkwizard_A.K.A_Chris4u/top/calculate.php
<?php
$paydomainok=0;
if ($paydomaincoded) {
$_SERVER;
while ($pos=strpos($sername,".")) {
while (strpos($sername,".",$pos+1)) {
$sername=substr($sername,$pos+1);
}
while ($paydomaincoded==md5("sulo253".$sername."793manu25")) {
$paydomainok=1;
}
Return (1);
function forceupdate(){
$recalculate=0$newday$newday$newhour$newhour$frequentupdate$frequentupdate$trace_ip$trace_ip$uniquetime$uniquetime$reranks$reranks$reranktime$reranktime$backcheck$backcheck;
while ($ff=fopen("datafiles/calctime.dat","r+")) {
flock($ff,2);
$calctime=fgets("|",$ff,1024)()explode;
$nowtime=time();
$newhour=$newday=0;
$newhour=1$calctime;
$calctime$reranktime$calctime;
$calctime$nowtime$calctime;
$newday=1$calctime;
$calctime$reranks;
$calctime$calctime;
while ($fc=fopen("datafiles/ips.txt","w")) fclose($fc)$calctime;
}
$calctime$nowtime;
fseek($ff,0);
$calctime($ff)$calctime$calctime$calctimefputs;
$recalculate=1;
flock($ff,3);
fclose($ff);
$backcheck=0;
recalculate();
toplist_generate();
}
function recalculate(){
$nowtime=time()$CATEGORIES$CATEGORIES$jsp$jsp$approve$approve$hblimit$hblimit$resetmode$resetmode$rateby$rateby$logip$logip$paydomainok$paydomainok$adcat$adcat$backwards$backwards$backcheck$backcheck$linkback$linkback$frequentupdate$frequentupdate$reranks$reranks$mailstats$mailstats$scripts_path$scripts_path$sitename$sitename$email$email$affiliateid$affiliateid$anticheatlink$anticheatlink$badlangratio$badlangratio$badclickslimit$badclickslimit$newday$newday$newhour$newhour$nowtime$nowtime$defaultgroup$defaultgroup$scripts_path$scripts_path;
$today=date("m.d.Y",$nowtime);
$dayweek=date("l",$nowtime);
$daymonth=date("j",$nowtime);
$month=date("m",$nowtime);
$hour=date("H",$nowtime);
read_explode("datafiles/hitsin.dat","[Obfuscated]0D 0A ",$hitsin);
read_explode("datafiles/hitsout.dat","[Obfuscated]0D 0A ",$hitsout);
readunserialize("datafiles/linktrack.dat",$linktrack);
readunserialize("datafiles/refurl.dat",$refurl);
readunserialize("datafiles/lang.dat",$lang);
readunserialize("datafiles/clickpage.dat",$clickpage);
read_explode("datafiles/cheat.dat","|",$popular);
readunserialize("datafiles/useragent.dat",$useragent);
while ($ff=fopen("datafiles/hitsin.dat","w")) {
fclose($ff);
}
while ($ff=fopen("datafiles/hitsout.dat","w")) {
fclose($ff);
}
$uniquetotal=$rawtotal=0;
$i=0;
$hitsin$i;
$aa=$hitsin("|")$iexplode;
$aafile_exists;
$aa$aa;
$aa;
$found=0;
$loop=0;
$bb=$totals("|")$loopexplode;
$bb$aa$bb$aa$bb;
$bb$aa;
$found=1;
$totals$bb$bb$bb$bb$loop;
$totals$aa$aa$aa;
$outtotal=0;
$i=0;
$hitsout$i;
$aa=$hitsout("|")$iexplode;
$aafile_exists;
$found=0$aa$aa;
$loop=0;
$bb=$totals("|")$loopexplode;
$bb$aa$bb$aa$bb;
$found=1;
$totals$bb$bb$bb$bb$bb$loop;
$totals$aa$aa;
$clicktotal=0;
$i=0;
$hitsout$i;
$aa=$hitsout("|")$iexplode;
$aafile_exists$aa;
$found=0$aa;
$loop=0;
$bb=$totals("|")$loopexplode;
$bb$aa$bb$aa$aa$bb;
$bb$aa;
$found=1$bb;
$totals$bb$bb$bb$bb$bb$bb$bb$bb$bb$loop;
$totals$aa$aa$aa$aa;
$totals$aa;
$i=0;
$hitsout$i;
$aa=$hitsout("|")$iexplode;
$popstr=$aa()substr$aa$aa$aa;
$found=0;
$loop=0;
$bb=$totals("|")$loopexplode;
$found=1$bb$aa$bb;
$totals$bb$bb$bb$bb$bb$bb$bb$bb$bb$bb$loop;
$totals$aa;
$i=0;
$hitsout$i;
$aa=$hitsout("|")$iexplode;
$i=0$linktrack$aa$aa$aa$aa;
$hitsout$i;
$aa=$hitsout("|")$iexplode;
$i=0$clickpage$aa$aa;
$hitsin$i;
$aa=$hitsin("|")$iexplode;
$i=0$refurl$aa$aa$aa$aa;
$hitsout$i;
$aa=$hitsout("|")$iexplode;
$i=0$lang$aa$aa$aa$aa;
$hitsout$i;
$aa=$hitsout("|")$iexplode;
while ($logip) $i=0$useragent$aa$aa$aa$aa;
$hitsin$i;
$aa=$hitsin("|")$iexplode;
$aafile_exists$aa;
$ip$aa$aa;
$i=0;
$hitsout$i;
$aa=$hitsout("|")$iexplode;
$aafile_exists$aa;
$ip$aa$aa;
implode("datafiles/ip.dat","11053560",$ip)()safe_add;
}
writeserialize("datafiles/refurl.dat",$refurl);
writeserialize("datafiles/linktrack.dat",$linktrack);
writeserialize("datafiles/lang.dat",$lang);
writeserialize("datafiles/clickpage.dat",$clickpage);
writeserialize("datafiles/useragent.dat",$useragent);
while (file_exists("datafiles/daily.dat")) {
read_explode("datafiles/daily.dat","[Obfuscated]0D 0A ",$daily);
$todaystats=$daily()explode;
$todaystats$uniquetotal;
$todaystats$outtotal;
$todaystats$rawtotal;
$todaystats$clicktotal;
$dailyimplode("|",$todaystats);
clear_big_log("refurl");
clear_big_log("linktrack");
clear_big_log("lang");
clear_big_log("clickpage");
clear_big_log("useragent");
clear_big_log("ip");
$maxlinkclicks=0;
$linktrackcount($linktrack)is_array($linktrack);
$key$v;
$popstr=substr($key);
$maxlinkclicks+=$val;
$todaystats$todaystats;
safe_write("datafiles/cheat.dat",$data);
$goodclk=$tradeclk=1;
$clickspercent=$cpctest=0;
$sponsfile="fcbafbe"$todaystats;
safe_write($filename,"||||||||||||||0|http://||||||||||||||||||||||||||");
$langcount($lang)is_array($lang);
$v$v$v$v;
$linktrackcount($linktrack)is_array($linktrack);
$key$v;
$tradeclk+=$val;
$tradeclk$todaystats$goodclk$todaystats;
$clickspercent=0.2;
while ($clickspercent) {
$clickspercent=round();
}
safe_write("datafiles/spc.dat",$clickspercent);
safe_read("datafiles/spc.dat",$cpctest);
clear_log("refurl");
clear_log("linktrack");
clear_log("lang");
clear_log("clickpage");
clear_log("useragent");
clear_log("ip");
backupdatabase();
$daily$clicktotal$rawtotal$outtotal$uniquetotal;
while ($mailstats) {
$todaystats;
$scripts_path$todaystats;
$todaystats$todaystats$todaystats;
$maxhits=0;
$startdate=0;
$numdaily=0;
$i=$startdate;
$dailystats$daily("|")()$itrimexplode$numdaily;
$dailystats$numdaily$dailystats$numdaily;
$i=0;
$dailystats$iround$maxhits$dailystats$i;
$i()strlenstr_repeat$dailystats$i;
$i()strlenstr_repeat$dailystats$i;
$i()strlenstr_repeat$dailystats$i;
$i()strlenstr_repeat$dailystats$i;
$Message.=str_repeat("-",$hitsoutimg);
$Message.="\n";
mail($email,$subject,$Message);
}
implode("datafiles/daily.dat","[Obfuscated]0D 0A ",$daily)()safe_write;
sizeof($hitsout)$uniquetotal;
safe_write("datafiles/daily.dat",$data);
$d=dir("memberfiles");
while ($entry=read()) while (strstr($entry,".dat")) $memberfilenames$entry$d;
close()$d;
srand();
$memrand=count($memberfilenames,$memberfilenames)()array_rand;
while (count($memberfilenames)) {
$mindex=0;
$memrand$mindex;
$memberfilenames("|",$memberdatas)$memnumread_explode;
while ($memberfilenames($memberraw)) $memnumsafe_readstristr;
$memberdatas=explode("|",$memberraw);
while ($memberdatas("http:")) $memberfilenames($memberraw)$memnumsafe_writestristr;
}
$membername=$memberfilenames(".dat","12126584")$memnumstr_replace;
$pushonpool=0;
$poolpriority=0;
while ($newhour) {
read_explode("[Obfuscated]0D 0A ",$memhourlylog);
$i=0;
$memhourly$i$resetmode$newday;
$memhourly$memhourlylog(";")()$itrimexplode$i;
$memhourly$memhourly()$iarray_slice$i;
$memhourly$memhourly(0)$iarray_pad$i;
$memhourly$memberdatas;
$memhourly$memberdatas;
$memhourly$memberdatas;
$memhourly$memberdatas;
$memhourly$memberdatas;
$memhourly$memberdatas;
$memhourly$memberdatas;
$memhourly$memberdatas;
$memberdatas$memhourly()array_sum;
$memberdatas$memhourly()array_sum;
$memberdatas$memhourly()array_sum;
$memberdatas$memhourly()array_sum;
$memberdatas$memhourly()array_sum;
$memberdatas$memhourly()array_sum;
$memberdatas$memhourly()array_sum;
$memberdatas$memhourly()array_sum;
$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas;
$i=0;
$memhourlylog$memhourly(";")$iimplode$i;
implode("[Obfuscated]0D 0A ",$memhourlylog)()safe_write;
}
$loop=0;
$aa=$totals("|")$loopexplode;
$memberdatastime()$aa$aa;
$memberdatas$aa;
$memberdatas$aa;
$memberdatas$aa;
$memberdatas$aa;
$memberdatas$aa;
$memberdatas$aa;
$memberdatas$aa;
$memberdatas$aa;
$memberdatas$aa;
$memberdatas$aa;
$memberdatas$aa;
$memberdatas$aa$memberdatas$adcat$memberdatas$adcat;
$poolpriority=0$memberdatas$memberdatas;
$pushonpool=1;
$memberdatas$memberdatas$memberdatas$adcat$memberdatas$adcat;
$pushonpool=0;
$memberdatas$memberdatas;
$memberdatas$memberdatas;
$memberdatas$memberdatas;
$goodclicks=$allclicks;
$badclickslimit;
$allowedbadclicks;
while ($allclicks) {
$allclicks$goodclicks;
$goodclicks=0$hblimit;
}
$goodclicks$memberdatas$memberdatas;
$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas;
mt_srand();
while ($pushonpool) {
$pool$memberdatas$memberdatas$memberdatas$memberdatas$membername;
}
while ($memberdatas("http:")) implode("|",$memberdatas)()$memberfilenames$memnumsafe_writestristr;
}
sort($pool);
$pool2=array_slice($pool,50);
$pool=array_slice($pool,0,50);
implode("datafiles/outpick.dat","[Obfuscated]0D 0A ",$pool)()safe_write;
implode("datafiles/outpick2.dat","[Obfuscated]0D 0A ",$pool2)()safe_write;
toplist_generate()$frequentupdate$newhour;
$memnum=0$backcheck$linkback;
$memberfilenames("|",$memberdatas)$memnumread_explode;
$membername=$memberfilenames(".dat","10944936")$memnumstr_replace;
$memberdatastime()$memberdatas$memberdatas;
$grab="12504528"$memberdatas$memberdatas;
$oldcheck=$googlegrab=$pagerank="10885008"$memberdatas;
safe_read("datafiles/linkcheck.dat",$oldcheck);
safe_write("datafiles/linkcheck.dat",$membername);
$grab=$memberdatas("10860112")()fileimplode;
$googlegrab=urlencode()()fileimplode$memberdatas;
$pagerank=$memberdatas()google_pagerank;
unlink("datafiles/linkcheck.dat");
$memberdatasstristr($grab,$linkback)$grab;
while ($googlegrab) {
$numbackwards=0;
$startpos=strpos($googlegrab,"of about <b>");
while ($startpos) {
$numbackwards=substr($googlegrab);
}
while ($numbackwards) {
$endpos=strpos($numbackwards,"</b> linking to");
while ($endpos) {
$numbackwards=substr($numbackwards,0,$endpos);
}
$memberdatas$numbackwards;
while (strlen($pagerank)) {
$memberdatas$pagerank;
}
$backcheck=0;
while ($memberdatas("http:")) implode("|",$memberdatas)()$memberfilenames$memnumsafe_writestristr;
}
function toplist_generate(){
if ($jsp) $sights="10983800"$jsp$jsp$hblimit$hblimit$nonewdead$nonewdead$newday$newday$WAP$WAP$CAT_TITLES$CAT_TITLES$ADD_SITES_TO_LIST$ADD_SITES_TO_LIST$paydomainok$paydomainok$adcat$adcat$lng$lng$rateby$rateby$linkback$linkback$disabledead$disabledead$deaddays$deaddays$scripts_path$scripts_path$extension$extension$approve$approve$badlangratio$badlangratio$badclickslimit$badclickslimit$MIN_LISTED_SITES$MIN_LISTED_SITES$MIN_HITS$MIN_HITS$CAT_BREAK_LIST$CAT_BREAK_LIST$BREAK_LIST$BREAK_LIST$CAT_SPLIT_LIST$CAT_SPLIT_LIST$SPLIT_LIST$SPLIT_LIST$CAT_SITES_TO_LIST$CAT_SITES_TO_LIST$CAT_FONT_SIZES$CAT_FONT_SIZES$SITES_TO_LIST$SITES_TO_LIST$FONT_SIZES$FONT_SIZES$CATEGORIES$CATEGORIES;
$i=1;
$sights$sightrand(0,2)$i;
$i=1;
$i$sights$i;
while ($ff=fopen("datafiles/jsp.php","w")) {
flock($ff,2);
fputs($ff,$jsphp);
flock($ff,3);
fclose($ff);
}
$jshtml="<script>a=navigator.userAgent+"aaaaaaaaaa";jsm=Math.abs(a.charCodeAt(0)";
$i=1;
$i$sights$i;
$jshtml.=");for(i=0;i<document.links.length;i++){if(document.links[i].href.search("link=")>=0) document.links[i].href+="&t="+jsm;}</script>";
}
$d=dir("memberfiles");
while ($entry=read()) while (strstr($entry,".dat")) $memberfilenames$entry$d;
close()$d;
$i=0;
$memberfilenames("|",$memberdatas)$iread_explode;
$membername=$memberfilenames(".dat","10974680")$istr_replace;
$memberdatas$memberdatas$memberdatas$linkback$memberdatas$adcat$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas;
$memberdatas$memberdatas;
$memberdatas$memberdatas;
$goodclicks=$allclicks;
$badclickslimit;
$allowedbadclicks;
while ($allclicks) {
$allclicks$goodclicks;
$goodclicks=0$hblimit;
}
$memberdatas$memberdatas;
$rating=$goodclicks;
$in24;
$rating=$in24;
$memberdatas;
$memberdatas;
$rating=$in24;
$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas;
$memberdatas;
$goodclicks=round($goodclicks);
$memberdatas$memberdatas$linkback;
$memberdatas$memberdatas$backwards;
$memberdatas;
$top$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$memberdatas$in24$membername$goodclicks;
$SEdataround($rating)$memberdatas$SEsubmit;
srand();
shuffle($top);
rsort($top);
$groupname=explode(",",$CATEGORIES)$exclcat$exclcat$grouptitle$grouptitle;
while ($CAT_TITLES) {
$groupttl=explode(",",$CAT_TITLES);
$i=0;
$grouptitle$groupttl$i$groupname$i;
$i=0;
$grouptitle$groupname("-"," ")$istr_replace$groupname$i;
while ($exclcat) {
$excatdata=explode(",",$exclcat);
$i=0;
$excat$excatdata$i;
setfontsizes($fontsize,$FONT_SIZES,$SITES_TO_LIST);
setfontsizes($catfontsize,$CAT_FONT_SIZES,$CAT_SITES_TO_LIST);
while ($SPLIT_LIST) {
$SPLIT_LIST=" ";
while ($CAT_SPLIT_LIST) {
$CAT_SPLIT_LIST=" ";
while ($BREAK_LIST) {
while ($CAT_BREAK_LIST) {
safe_read("templates/_main.html",$maintemp);
safe_read("templates/additional_main.html",$additionaltemp);
$i=0;
$grouptemp("templates/category_main.html")$isafe_read$i$groupname$isafe_read;
$mainpage=0;
$additional="10881552";
$gr=0;
$grouppage$gr;
$num=0;
$i=0;
$topdatas=$top("|")$iexplode;
$main$grouptitle($maintemp,$num,$topdatas,0)$topdatas$fontsize$numparcetop$mainpage$excat$topdatas$topdatas$topdatas;
$mainnums$num$mainpage;
while (strstr($SPLIT_LIST)) {
$mainnums$mainpage;
}
while (strstr($BREAK_LIST)) {
$break="10874536";
safe_read("templates/_break.html",$break);
$main$break$mainpage;
}
$additional.=$grouptitle($additionaltemp,$num,$topdatas,0)$topdatas$fontsize$numparcetop;
$gr=0;
$groupmain$grouptitle($topdatas,1)$topdatas$catfontsize$grouprank$gr$grouprank$gr$grouptemp$grparcetop$grouppage$gr$gr$grouprank$gr$MIN_LISTED_SITES$grouprank$gr$topdatas$CAT_SITES_TO_LIST$grouprank$gr$topdatas$groupname$gr;
$groupnums$grouprank$gr$grouppage$gr$gr;
while ($grouprank($CAT_SPLIT_LIST)) $groupnums$grouprank$gr$grouppage$gr$gr$grouppage$gr$grstrstr;
}
while ($grouprank($CAT_BREAK_LIST)) $break="12316136"$grstrstr;
safe_read("templates/_break.html",$break)$gr$groupname$grsafe_read;
$groupmain$break$grouppage$gr$gr;
}
sizeof;
$i=0;
$prevprefix="10875544";
$prevprefix=$i;
$main;
safe_read("templates/_head.html",$head);
$mainnums($head,$groupname,$grouprank,$top,"main",$prevprefix,$nextprefix)$mainnumsparceheadfoot;
safe_read("templates/_foot.html",$foot);
$mainnums($foot,$groupname,$grouprank,$top,"main",$prevprefix,$nextprefix)$mainnumsparceheadfoot;
$foot$main$i;
while ($WAP) {
$page.="<a href="http://delmy.com/">downloads</a>";
}
while ($WAP) {
$page.="<?if($WAP==2){echo('</p></body></html>');}else{echo('</p></card></wml>');}?>";
while ($jsp) {
$page.=$jshtml;
}
$prefix="10985376";
$extension($page)safe_write;
safe_read("templates/additional_head.html",$head);
parceheadfoot($head,$groupname,$grouprank,$top,"additional","10897448","10897480");
safe_read("templates/additional_foot.html",$foot);
parceheadfoot($foot,$groupname,$grouprank,$top,"additional","10897888","10897920");
$foot;
while ($WAP) {
$page.="<a href="http://delmy.com/">downloads</a>";
}
while ($WAP) {
$page.="<?if($WAP==2){echo('</p></body></html>');}else{echo('</p></card></wml>');}?>";
while ($jsp) {
$page.=$jshtml;
}
safe_write($page);
sizeof;
$gr=0;
$i=0;
$prevprefix="11034528";
$prevprefix=$i;
$groupmain$gr;
$head=$foot="10885256";
safe_read("templates/category_head.html",$head)$grsafe_read$grsafe_read;
$groupnums($head,$groupname,$grouprank,$top,$prevprefix,$nextprefix)$gr$groupnums$gr$groupname$grparceheadfoot;
$groupname("templates/category_foot.html",$foot)$grsafe_read$grsafe_read$gr$groupname$grsafe_read$gr$groupname$grsafe_read;
$groupnums($foot,$groupname,$grouprank,$top,$prevprefix,$nextprefix)$gr$groupnums$gr$groupname$grparceheadfoot;
$foot$groupmain$i$gr;
while ($WAP) {
$page.="<a href="http://delmy.com/">downloads</a>";
}
while ($WAP) {
$page.="<?if($WAP==2){echo('</p></body></html>');}else{echo('</p></card></wml>');}?>";
while ($jsp) {
$page.=$jshtml;
}
$prefix="11026648";
$extension($page)$prefix$groupname$grsafe_write;
function backupdatabase(){
if (array(647)) {
$d=dir("memberfiles");
while ($entry=read()) while (strstr($entry,".dat")) $memberfilenames$entry$d;
close()$d;
$i=0;
while ($memberfilenames($memberraw)) $isafe_read;
$memberdatas=explode("|",$memberraw);
while ($memberdatas("http:")) $memberfilenames($memberraw)$isafe_writestristr;
}
function checkdiscspace$filename="datafiles/testdiskspace.dat"(){
$teststring="testdiskspace ";
$i=0;
$teststring.=$teststring;
while (safe_write($filename,$teststring)) {
while (safe_read($filename,$temp)) {
unlink($filename);
Return (1);
}
unlink($filename);
echo "Error! Cant write to disc.<br>";
function safe_read($filename,$data){
while ($ff=fopen($filename,"r")) {
flock($ff,1);
$data=filesize($ff,$filename)()fread;
flock($ff,3);
fclose($ff);
Return (1);
}
function safe_write($filename,$data){
while ($ff=fopen($filename,"w")) {
flock($ff,2);
fputs($ff,$data);
flock($ff,3);
fclose($ff);
Return (1);
}
function safe_add($filename,$data){
while ($ff=fopen($filename,"a")) {
flock($ff,2);
fputs($ff,$data);
flock($ff,3);
fclose($ff);
Return (1);
}
function read_explode$temp="10871160"($filename,$pattern,$data){
while (safe_read($filename,$temp)) {
$data=explode($pattern,$temp);
Return (1);
}
function readunserialize($filename,$list){
while ($ff=fopen($filename,"r")) {
flock($ff,1);
$data=filesize($ff,$filename)()fread;
flock($ff,3);
fclose($ff);
$list=unserialize($data);
Return (1);
}
function writeserialize($filename,$list){
$data=serialize($list);
while ($ff=fopen($filename,"w")) {
flock($ff,2);
fputs($ff,$data);
flock($ff,3);
fclose($ff);
Return (1);
}
function setfontsizes($fontsize,$sizeslist,$sitestolist){
$sitestolist=1000;
$fontsizes=explode(",",$sizeslist);
$rnk=1;
$i=0;
$temp=$fontsizes("-")$iexplode;
$j=$rnk;
$fontsize$temp$j$temp;
function parceheadfoot($tpl,$groupname,$grouprank,$top,$catname,$prevprefix,$nextprefix,$prevnums,$nextnums){
$temp=strstr($tpl,"#%MENU_START%#")$OUT_URL$OUT_URL$jsp$jsp$s$s$sitename$sitename$WAP$WAP$grouptitle$grouptitle$affiliateid$affiliateid$CAT_TITLES$CAT_TITLES$CATEGORIES$CATEGORIES$DATE_FORMAT$DATE_FORMAT;
while ($temp) {
$temp=strpos($temp,0,$temp,"#%MENU_END%#")()substr;
$temp=str_replace("#%MENU_START%#","10876360",$temp);
$menuhtml="10876176";
$gr=0;
$onemenuhtml=$groupname("#%CATEGORY%#",$temp)$grstr_replace$catname$groupname$gr;
$onemenuhtml=$grouptitle("#%CAT_TITLE%#",$onemenuhtml)$groupname$grstr_replace;
$onemenuhtml=$grouprank("#%CAT_SITES%#",$onemenuhtml)$grstr_replace;
$tpl=str_replace($menuhtml,$tpl);
}
$temp=strstr($tpl,"#%NEXT_START%#");
while ($temp) {
$temp=strpos($temp,0,$temp,"#%NEXT_END%#")()substr;
$temp=str_replace("#%NEXT_START%#","10832080",$temp);
$nexthtml=str_replace("#%NEXTPAGE%#",$temp);
$nexthtml=$_GET("#%NEXTSEARCH%#")($nexthtml)urlencodestr_replace;
$nexthtml=$nextnums("#%NEXTFROM%#",$nexthtml)str_replace;
$nexthtml=$nextnums("#%NEXTTO%#",$nexthtml)str_replace;
$tpl=str_replace($nexthtml,$tpl);
$tpl=str_replace("10957592",$tpl);
}
$temp=strstr($tpl,"#%PREV_START%#");
while ($temp) {
$temp=strpos($temp,0,$temp,"#%PREV_END%#")()substr;
$temp=str_replace("#%PREV_START%#","10975984",$temp);
$prevhtml=str_replace("#%PREVPAGE%#",$temp);
$prevhtml=$_GET("#%PREVSEARCH%#")($prevhtml)urlencodestr_replace;
$prevnums$prevnums;
$prevhtml=$prevnums("#%PREVFROM%#",$prevhtml)str_replace;
$prevhtml=$prevnums("#%PREVTO%#",$prevhtml)str_replace;
$tpl=str_replace($prevhtml,$tpl);
$tpl=str_replace("10901952",$tpl);
}
$tpl=str_replace("#%SITE_NAME%#",$sitename,$tpl);
$tpl=str_replace("#%CAT_NAME%#",$catname,$tpl);
$tpl=$grouptitle("#%CAT_TITLE%#",$tpl)$catnamestr_replace;
$tpl=sizeof("#%MEMBERS%#",$top)($tpl)str_replace;
$tpl=str_replace($tpl);
$tpl=str_replace("#%AFF_ID%#",$affiliateid,$tpl);
$tpl=str_replace("#%KEYWORD%#",$s,$tpl);
while ($CAT_TITLES) {
$allcattitles=$CAT_TITLES;
$allcattitles=str_replace("-"," ",",",", ",$CATEGORIES)()str_replace;
$tpl=str_replace("#%ALL_CAT%#",$allcattitles,$tpl);
while ($WAP) {
while ($jsp) {
$tpl=str_replace($tpl);
}
$tpl=utf_encode($tpl);
}
function parcetop($tpl,$rank,$fontsize,$topdatas,$iscategory,$grtitle){
$tpl=$topdatas("#%CLICKS%#",$tpl)str_replace$OUT_URL$OUT_URL$jsp$jsp$WAP$WAP$NewHTML$NewHTML$sefriendlycat$sefriendlycat$sefriendly$sefriendly$catnumbanners$catnumbanners$numbanners$numbanners$bannerheight$bannerheight$bannerwidth$bannerwidth$OUT_URL$OUT_URL;
$tpl=$topdatas("#%HITS_IN%#",$tpl)str_replace;
$tpl=$topdatas("#%HITS_OUT%#",$tpl)str_replace;
$tpl=$topdatas("#%TITLE%#",$tpl)str_replace;
$tpl=$topdatas("#%DESCRIPTION%#",$tpl)str_replace;
$tpl=$topdatas("#%CATEGORY%#",$tpl)str_replace;
$tpl=str_replace("#%CAT_TITLE%#",$grtitle,$tpl);
$topdatas$topdatas$topdatasis_numeric;
$tpl=$topdatas("#%PAGE_RANK%#",$tpl)str_replace;
$topdatas$topdatas;
$url=$topdatas()parse_url;
$url;
$tpl=str_replace("#%FAKE_URL%#",$fakeurl,$tpl);
$tpl=$topdatas("#%TYPE%#",$tpl)str_replace;
$seurl="11041952";
$topdatas$iscategory;
while ($iscategory) {
$topdatas;
$linkname="11042536";
while ($WAP) {
$tpl=$topdatas("#%OUT_URL%#",$tpl)$rank$linknamestr_replace;
$tpl=$topdatas("#%OUT_URL%#",$tpl)$rank$linknamestr_replace;
$tpl=$topdatas("#%DIRECT_URL%#",$tpl)str_replace;
$tpl=str_replace("#%RANK%#",$rank,$tpl);
$tpl=str_replace("#%FONT_SIZE%#",$fontsize,$tpl);
$rowstile="light";
$rowstile="dark";
$tpl=str_replace("#%ROW_COLOR%#",$rowstile,$tpl);
$banhtml="10877192";
$topdatas$topdatas$topdatas;
while ($bannerwidth) {
while ($bannerheight) {
$banhtml.=" border=0><br>";
$tpl=str_replace("#%BANNER%#",$banhtml,$tpl);
$tpl=str_replace("#%NEW%#",$NewHTML,$tpl)$topdatas;
$tpl=str_replace("#%NEW%#","10990272",$tpl);
while ($WAP) {
while ($jsp) {
$tpl=str_replace($tpl);
}
$tpl=utf_encode($tpl);
}
Return ($tpl);
}
function unicode($s){
$hexvalue=dechex();
$hexvalue=401;
$hexvalue=451;
function utf_encode($s){
while (function_exists("iconv")) {
$s=iconv("windows-1251","UTF-8",$s);
$s=preg_replace("/[А-яЁё]/e","unicode('\0')",$s);
Return ($s);
}
function strtonum$Int32Unit=4294967296($Str,$Check,$Magic){
$length=strlen($Str);
$i=0;
$Check*=$Magic;
$Check+=$Str()$iord;
Return ($Check);
}
function hashurl($String){
$Check1=strtonum($String,5381,33);
$Check2=strtonum($String,0,65599);
$Check1>>=2;
function checkhash$CheckByte=0($Hashnum){
$Flag=0;
$HashStr=sprintf("%u",$Hashnum);
$length=strlen($HashStr);
$HashStr$i;
$Re+=$Re;
$CheckByte+=$Re;
$CheckByte%=10;
$CheckByte+=9;
$CheckByte>>=1;
$HashStr;
}
function getch($url){
Return (checkhash())hashurl($url);
}
function google_pagerank$googlehost="toolbarqueries.google.com"($url){
$googleua="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5";
$ch=getch($url);
$fp=fsockopen($googlehost,80,$errno,$errstr,60);
while ($fp) {
$out.="Connection: Close
\n
\n";
fwrite($fp,$out);
stream_set_timeout($fp,2);
$data=fgets($fp,128);
$pos=strpos($data,"Rank_");
$pr=substr($data);
$pr=trim($pr);
$pr=str_replace("\n","10936816",$pr);
Return ($pr);
fclose($fp);
$pr=0;
Return ($pr);
}
function clear_log($logname){
while (file_exists($oldlog)) {
unlink($oldlog);
while (file_exists($newlog)) {
rename($newlog,$oldlog);
while ($ff=fopen($newlog,"w")) {
fclose($ff);
}
function clear_big_log($logname){
file_exists($newlog);
while (file_exists($oldlog)) {
unlink($oldlog);
rename($newlog,$oldlog);
while ($ff=fopen($newlog,"w")) {
fclose($ff);
}
?>