Location: PHPKode > projects > CNStats > cnstats/cnt-gif1x1.php
<?php define("ISCNSTATS","1");if(file_exists("config.php"))include"config.php";$_6282e779=false;if(is_array($COUNTER["excludeip"])&&is_array($COUNTER["excludemask"])){while(list($_8a90aba9,$_97dfba65)=each($COUNTER["excludeip"])){$_5567710b=ip2long($_97dfba65);$_c9db130c=ip2long($COUNTER["excludemask"][$_8a90aba9]);if((ip2long($_SERVER["REMOTE_ADDR"])&$_c9db130c)==($_5567710b&$_c9db130c)){$_6282e779=true;break;}}}if(isset($STATS_CONF["disabled"]))if($STATS_CONF["disabled"]=="yes")$_6282e779=true;if($_6282e779){header("Pragma: no-cache");header("Cache-control: no-cache");header("Content-type: image/gif");$_5caea3f9=pack("CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC",0x47,0x49,0x46,0x38,0x39,0x61,0x01,0x00,0x01,0x00,0x80,0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x21,0xF9,0x04,0x01,0x00,0x00,0x00,0x00,0x2C,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x00,0x02,0x02,0x44,0x01,0x00,0x3B);print$_5caea3f9;return;}error_reporting(E_ALL&~E_NOTICE);if(empty($STATS_CONF["cookieprefix"]))$STATS_CONF["cookieprefix"]="cns";$_daa937b9=intval($_COOKIE[$STATS_CONF["cookieprefix"]."cc"]);if($_GET["second"]!="1"&&$_daa937b9==0){header("P3P: policyref=\"/w3c/p3p.xml\", CP=\"UNI\"");setcookie($STATS_CONF["cookieprefix"]."cc",time(),mktime(23,59,59,date("m"),date("d"),date("Y")+1),"/",$STATS_CONF["cookiedomain"]);header("Location: ./cnt-gif1x1.php?second=1&".$_SERVER["QUERY_STRING"]);header("Content-Length: 32");header("Pragma: no-cache");header("Cache-control: no-cache");print"<html><body>Moved</body></html>";exit;}if($_daa937b9!=0)$_GET["c"]=1;else$_GET["c"]=0;function _6b85cf5a($_5caea3f9){if(get_magic_quotes_gpc())return StripSlashes($_5caea3f9);else return $_5caea3f9;}function _1424f089($_8cfe579f){return !strlen(trim($_9ebeb2a9,"1234567890abcdefABCDEF"));}function _c4e24300($_f47645ae){GLOBAL$STATS_CONF;if(!isset($STATS_CONF["sitecharset"]))$STATS_CONF["sitecharset"]="ISO-8859-1";$_f18ac390="";$_e66c3671=0;$_9606c2fe=strlen($_f47645ae);do{$_76d32be0=false;if($_e66c3671<$_9606c2fe-5){if($_f47645ae[$_e66c3671]=="%"&&$_f47645ae[$_e66c3671+1]=="u"&&_1424f089($_f47645ae[$_e66c3671+2])&&_1424f089($_f47645ae[$_e66c3671+3])&&_1424f089($_f47645ae[$_e66c3671+4])&&_1424f089($_f47645ae[$_e66c3671+5])){$_1d775834=hexdec(substr($_f47645ae,$_e66c3671+2,4));if($_1d775834<0x0080){$_f18ac390.=chr($_1d775834);}elseif($_1d775834<0x0800){$_f18ac390.=chr((($_1d775834&0x07c0)>>6)|0xc0);$_f18ac390.=chr(($_1d775834&0x3f)|0x80);}else{$_f18ac390.=chr((($_1d775834&0xf000)>>12)|0xe0);$_f18ac390.=chr((($_1d775834&0x0fc0)>>6)|0x80);$_f18ac390.=chr(($_1d775834&0x3f)|0x80);}$_e66c3671+=6;$_76d32be0=true;}}if(!$_76d32be0){if($_e66c3671<$_9606c2fe-2){if($_f47645ae[$_e66c3671]=="%"&&_1424f089($_f47645ae[$_e66c3671+1])&&_1424f089($_f47645ae[$_e66c3671+2])){$_1d775834=hexdec(substr($_f47645ae,$_e66c3671+1,2));if($_1d775834>=127){$_f18ac390.=iconv($STATS_CONF["sitecharset"],"utf-8",chr($_1d775834));}else$_f18ac390.=chr($_1d775834);$_e66c3671+=3;$_76d32be0=true;}}}if(!$_76d32be0){$_f18ac390.=iconv($STATS_CONF["sitecharset"],"utf-8",$_f47645ae[$_e66c3671]);$_e66c3671++;}}while($_e66c3671<$_9606c2fe);return $_f18ac390;}$STATS_CONF=Array("noclose"=>"","sqlinstructions"=>Array(),"sqlprefix"=>"cns_","graph"=>$_bdee64b7,"is_cookie"=>$_fe64f41b);$COUNTER=Array("excludeip"=>Array(),"excludemask"=>Array(),"excludeurl"=>Array(),"timeoffset"=>0,"sqlwritelog"=>"","HTTPheaders"=>Array());$STATS_CONF["is_cookie"]=intval($_GET["c"]);if(substr($_GET["p"],0,9)=="http%3A//"){$_GET["r"]=urldecode($_GET["r"]);$_GET["p"]=urldecode($_GET["p"]);$_GET["t"]=urldecode($_GET["t"]);}$STATS_CONF["graph"]=1;if($_GET["p"]!="undefined"&&!empty($_GET["p"]))$STATS_CONF["page"]=StripSlashes($_GET["p"]);else$STATS_CONF["page"]=$_SERVER["HTTP_REFERER"];$STATS_CONF["page"]=urlencode(htmlspecialchars(str_replace(" ","+",$STATS_CONF["page"])));if($_GET["r"]!="undefined"&&!empty($_GET["r"]))$STATS_CONF["referer"]=htmlspecialchars(str_replace(" ","+",$_GET["r"]));else$STATS_CONF["referer"]="";if($_GET["t"]!="undefined"&&!empty($_GET["t"])){$STATS_CONF["title"]=$_GET["t"];$STATS_CONF["title"]=_c4e24300($STATS_CONF["title"]);$STATS_CONF["title"]=_6b85cf5a($STATS_CONF["title"]);}else$STATS_CONF["title"]="";if($_GET["e"]!="undefined"&&!empty($_GET["e"])){$_82079eb1=strpos($_GET["e"],".");if($_82079eb1>0)$STATS_CONF["res"]=(intval(substr($_GET["e"],0,$_82079eb1))<<16)+intval(substr($_GET["e"],$_82079eb1+1));else$STATS_CONF["res"]=0;}if($_GET["d"]!="undefined"&&!empty($_GET["d"])){$STATS_CONF["depth"]=intval($_GET["d"]);}if($_GET["is404"]=="1")$GLOBALS["CNSTATS404"]="yes";else$GLOBALS["CNSTATS404"]="no";if(isset($_GET["uf1"]))$STATS_CONF["userfield1"]=$_GET["uf1"];else unset($STATS_CONF["userfield1"]);if(isset($_GET["uf2"]))$STATS_CONF["userfield2"]=$_GET["uf2"];else unset($STATS_CONF["userfield2"]);if(isset($_GET["uf3"]))$STATS_CONF["userfield3"]=$_GET["uf3"];else unset($STATS_CONF["userfield3"]);include"cnt.php";header("Pragma: no-cache");header("Cache-control: no-cache");header("Content-type: image/gif");$_5caea3f9=pack("CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC",0x47,0x49,0x46,0x38,0x39,0x61,0x01,0x00,0x01,0x00,0x80,0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x21,0xF9,0x04,0x01,0x00,0x00,0x00,0x00,0x2C,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x00,0x02,0x02,0x44,0x01,0x00,0x3B);print$_5caea3f9;?>
Return current item: CNStats