<?php
header("Content-type: image/gif");
$site = Core::query("SELECT * FROM `user_sites` WHERE `id` = ?", array($_GET['get'])) -> fetch(); /* СВОЙ ЗАПРОС В БД*/
$img = H.'/counts/'.$site['count_big'].'.gif'; /* СВОЙ ПУТЬ К КАРТИНКАМ*/
$image = imagecreatefromgif($img);
$hit = 71 - (strlen($site['hit']) * 7);
$hosts = 71 - (strlen($site['host']) * 7);
$black = imagecolorallocate($image, 0, 0, 0);
$font = __DIR__. '/Visitor.ttf'; /* СВОЙ ШРИФТ И ГРУЗИТЬ ЕГО ТУДА ГДЕ ПРОПИСЫВАЕТЕ ЭТОТ КОД*/
imagettftext($image, 9, 0, $hit, 19, $black, $font, $site['hit']);
imagettftext($image, 9, 0, $hosts, 9, $black, $font, $site['host']);
imagegif($image);
imageDestroy($image);
?>