<?php
header("Cache-Control:no-store,no-cache,must-revalidate"); header('Content-type: image/gif'); require_once('status/gd-gradient-fill.php');
$width = "355";
$height = "22";
$startcolor = "8FFF82";
$endcolor = "FF0000";
$direction = "vertical";
$pic = new gd_gradient_fill($width,$height,$direction,$startcolor,$endcolor,$step);
$czcionka = 'status/fonts/LCD.ttf';
$white = imagecolorallocate($pic, 0, 0, 0);
$red = imagecolorallocate($pic, 255, 0, 0);
// no i tutaj tekst
imagettftext($pic, 9, 0, 23, 9, $white, $czcionka, $server['s']['name']);
imagettftext($pic, 9, 0, 26, 20, $white, $czcionka, $server['b']['ip'] . ':' . $server['b']['c_port']);
imagettftext($pic, 9, 0, 155, 20, $red, $czcionka, $server['s']['players'].'/'.$server['s']['playersmax']);
imagettftext($pic, 9, 0, 195, 20, $white, $czcionka, $lgsl_config['text']['map']);
ImageGIF($pic);
ImageDestroy($pic);
?>
Dane w zmiennych $server['s']['name'] itd. sa na 100% poprawne. Jezeli zamiast gradientu dam jakies inne tlo, wszystko dziala bardzo dobrze.