<?php require_once('db.php'); require_once('common.php'); require_once('config.php'); require_once('configseq.php'); require_once('session.php'); $v785136c3 = "$v986bef43/$vff16abcb"; $v73600783 = $v785136c3."/cache"; if(file_exists($v73600783)==false) mkdir($v73600783); $v73600783 = $v73600783."/view"; if(file_exists($v73600783)==false) mkdir($v73600783); $vc3e888ce = -1; $v77c345c8 = -1; $vfcb6f3e6 = -1; $v0666f0ac = n65285ffb("$v73600783/stat.txt", "r+"); if (flock($v0666f0ac, LOCK_EX)) { $v6f8f5771 = fread($v0666f0ac,filesize("$v73600783/stat.txt")); $v03c7c0ac = nb0e52560("\r\n",$v6f8f5771); $v0fc3cfbc = array(); foreach($v03c7c0ac as $v8ce4b16b=> $v9e3669d1) { $vaccc9105 = nb0e52560("-",$v9e3669d1); if($vaccc9105[0]+0>0) { $v0fc3cfbc[$vaccc9105[0]+0] = $v0fc3cfbc[$vaccc9105[0]+0]+1; $vc3e888ce += $vaccc9105[1]+0; $v77c345c8 += 1; } } ftruncate($v0666f0ac, 0); flock($v0666f0ac, LOCK_UN); } else { echo "Couldn't get the lock!"; } nbb1b916f($v0666f0ac); $v785136c3 = "$v986bef43/$vff16abcb"; $v73600783 = $v785136c3."/cache"; if(file_exists($v73600783)==false) mkdir($v73600783); $v73600783 = $v73600783."/index"; if(file_exists($v73600783)==false) mkdir($v73600783); $v0666f0ac = n65285ffb("$v73600783/stat.txt", "r+"); if (flock($v0666f0ac, LOCK_EX)) { $v6f8f5771 = fread($v0666f0ac,filesize("$v73600783/stat.txt")); $v03c7c0ac = nb0e52560("\r\n",$v6f8f5771); foreach($v03c7c0ac as $v8ce4b16b=> $v9e3669d1) { $vaccc9105 = nb0e52560("-",$v9e3669d1); $vc3e888ce += $vaccc9105[1]+0; $vfcb6f3e6 += 1; } ftruncate($v0666f0ac, 0); flock($v0666f0ac, LOCK_UN); } else { echo "Couldn't get the lock!"; } nbb1b916f($v0666f0ac); print_r($v0fc3cfbc); foreach($v0fc3cfbc as $v8ce4b16b=> $v9e3669d1) { if($v9e3669d1==-1) $v9e3669d1 = 0; $v1b1cc7f0 = "UPDATE content SET con_hits=con_hits+$v9e3669d1 WHERE site_id=$v9365d6e7 AND con_id=$v8ce4b16b LIMIT 1"; $vb4a88417 = n88e22353($v1b1cc7f0) or die(n6a40f46d(nb6defb5f()." AT $v1b1cc7f0")); if($_GET['showme']==1) echo $v1b1cc7f0."<br>"; } $v0b9b5ee8 = nc4da638b(n6c5b05b8("Y-m-d H:i:s")) + $v511381b1*3600; $v0b9b5ee8 = nb0e52560("-",n0da57f08("Y-m-d",$v0b9b5ee8)); $v0b9b5ee8 = $v0b9b5ee8[0]*390+$v0b9b5ee8[1]*32+$v0b9b5ee8[2]+0; if($vc3e888ce==-1) $vc3e888ce = 0; if($v77c345c8==-1) $v77c345c8 = 0; if($vfcb6f3e6==-1) $vfcb6f3e6 = 0; if($v77c345c8+$vfcb6f3e6+$vc3e888ce >0) { $v1b1cc7f0 = "INSERT INTO stats SET site_id=$v9365d6e7,stt_index=$vfcb6f3e6, stt_day=$v0b9b5ee8, stt_pageview=$v77c345c8+$vfcb6f3e6,stt_content=0, stt_newsview=$v77c345c8, stt_query_num=0, stt_page_time=0,stt_visit=$vc3e888ce ON DUPLICATE KEY UPDATE stt_index=stt_index+$vfcb6f3e6, stt_pageview=stt_pageview+$v77c345c8+$vfcb6f3e6, stt_newsview=stt_newsview+$v77c345c8, stt_visit=stt_visit+$vc3e888ce"; $vb4a88417 = n88e22353($v1b1cc7f0) or die(n6a40f46d(nb6defb5f()." AT $v1b1cc7f0")); if($_GET['showme']==1) echo $v1b1cc7f0."<br>"; } ?>