<?php error_reporting(E_ALL&~E_NOTICE);if(is_file("config.php")){include"config.php";if(version_compare(phpversion(),"4.2.0",">="))$_2cbdec2e=@mysql_connect($STATS_CONF["sqlhost"],$STATS_CONF["sqluser"],$STATS_CONF["sqlpassword"],TRUE);else$_2cbdec2e=@mysql_connect($STATS_CONF["sqlhost"],$STATS_CONF["sqluser"],$STATS_CONF["sqlpassword"]);mysql_select_db($STATS_CONF["dbname"]);if(empty($STATS_CONF["sqlprefix"]))$STATS_CONF["sqlprefix"]="cns_";$_6c09ff9d=mysql_query("SELECT t_hits,hits,hosts FROM ".$STATS_CONF["sqlprefix"]."counter")or die(mysql_error());$STATS_CONF=mysql_fetch_array($_6c09ff9d,MYSQL_ASSOC);header("Content-type: image/png");$_c6e5dff4=ImageCreateFromPng("button.png");$_8985ba28=ImageColorAllocate($_c6e5dff4,0,0,0);$_665648e9=ImageColorAllocate($_c6e5dff4,$COUNTER["inkR"],$COUNTER["inkG"],$COUNTER["inkB"]);ImageString($_c6e5dff4,2,86-6*strlen($STATS_CONF["t_hits"]),1,$STATS_CONF["t_hits"],$_665648e9);ImageString($_c6e5dff4,1,85-5*strlen($STATS_CONF["hits"]),13,$STATS_CONF["hits"],$_665648e9);ImageString($_c6e5dff4,1,85-5*strlen($STATS_CONF["hosts"]),20,$STATS_CONF["hosts"],$_665648e9);ImagePng($_c6e5dff4);ImageDestroy($_c6e5dff4);}else{header("Content-type: image/png");$_c6e5dff4=ImageCreateFromPng("button.png");$_8985ba28=ImageColorAllocate($_c6e5dff4,0,0,0);$_665648e9=ImageColorAllocate($_c6e5dff4,$COUNTER["inkR"],$COUNTER["inkG"],$COUNTER["inkB"]);ImageString($_c6e5dff4,2,86-6*8,1,"error 12",$_665648e9);ImagePng($_c6e5dff4);ImageDestroy($_c6e5dff4);}?>
