File size: 665B
<?php
require('maincode.php');
$fp=fopen($fcont,"r");
$count=fread($fp,filesize($fcont));
fclose($fp);
$fp=fopen($ftoday,"r");
$today=fread($fp,filesize($ftoday));
fclose($fp);
if(isset($_COOKIE['PROtS_Count'])) $cookie_count = explode("::", $_COOKIE['PROtS_Count']);
else $cookie_count[2]=1;
$Online=count(file($fonline));
$host_num=count(file($fhost));
$img = ImageCreateFromPNG("data/count.png");
$color1 = ImagecolorAllocate($img, 183,101,5);
Imagestring($img,1,36,20, $count, $color1);
Imagestring($img,1,38,31, $host_num, $color1);
Imagestring($img,1,100,31, $Online, $color1);
header("content-type: image/png");
imagepng($img);
exit();
?>