Posted on: 06/09/05 11:15am
By: Anonymous (pikipokl)
function phpblock_hits() { <?php include ("./config.inc.php"); if ($COUNT_CFG['use_db']) { include ("./mysql.class.php"); } include ("./counter.class.php"); $counter = new dcounter(); $visits = $counter->show_counter(); /* Returns an associative array */ ?> Vsi obiski: <?php echo $visits['total']; ?> <br/> <a href="javascript:void(window.open('visitors.php','Visitors','scrollbars=yes,width=420,height=210'))" class="links">Obiski</a> danes: <?php echo $visits['visits_today']; ?> }
Posted on: 06/09/05 12:40pm
By: machinari
function phpblock_hits() { include ("./config.inc.php"); if ($COUNT_CFG['use_db']) { include ("./mysql.class.php"); } include ("./counter.class.php"); $counter = new dcounter(); $visits = $counter->show_counter(); /* Returns an associative array */ $retval = 'Vsi obiski: ' . $visits['total']; $retval .= '<br/>'; $retval .= '<a href="javascript:void(window.open('visitors.php','Visitors','scrollbars=yes,width=420,height=210'))" class="links">Obiski</a> danes: ' . $visits['visits_today']; return $retval; }
Posted on: 06/09/05 02:43pm
By: Anonymous (pikipokl)
Fatal error: Cannot instantiate non-existent class: dcounter in /home/mbrega19/public_html/geeklog/system/lib-custom.php on line 152 ( $counter = new dcounter(); )
Posted on: 06/09/05 03:17pm
By: machinari
Posted on: 06/09/05 04:48pm
By: Anonymous (pikipokl)
function dcounter() { global $COUNT_TBL,$COUNT_CFG; if ($COUNT_CFG["use_db"]) { $this->db = new dcounter_sql(); $this->db->connect(); $this->table = $COUNT_TBL; } $this->ip = getenv("REMOTE_ADDR"); $this->host = gethostbyaddr($this->ip); $this->config = $COUNT_CFG; $this->use_db = ($COUNT_CFG['use_db']) ? true : false; }
Posted on: 06/09/05 05:12pm
By: machinari