get_count($contentid); if(!$r) exit; if ($PHPCMS['category_count']) { require_once 'count.class.php'; $count = new count(); $count->add($contentid); } extract($r); if($model != 'down') { $c->hits($contentid); } else { echo "\$('#todaydowns').html('$hits_day');"; echo "\$('#weekdowns').html('$hits_week');"; echo "\$('#monthdowns').html('$hits_month');"; } } elseif($specialid) { require_once 'comment/api/comment_api.class.php'; $count = new comment_api(); $comments = $count->get_count($specialid); $hits = 0; } ?> $('#hits').html(''); $('#comments').html(''); $('#comments_top').html('');