<?php include ("***"); $nick = mysql_real_escape_string($_GET['nick']);//Pobieranie zmiennej nick + zabezpieczenie przed SQL Injection } $id = '1'; $Font_File = 'minecraft.ttf'; // Czcionka $Background_Picture = 'img/sign.png'; // Tło $final_image = imageCreateFromPng($Background_Picture); $white = imagecolorallocate($final_image, 255, 255, 255); // Kolor Biały // Kolor reputacji w zależności od ilości $nick_kolor = imagecolorallocate($final_image, 0, 0, 0); // Kolor Zielony // Kolor nicku w zależności od grupy (Admin = Czerwony, Mod = Zielony, Reszta = Biały) $user_color = imagecolorallocate($final_image, 0, 255, 0); // Kolor Zielony - Mod // Tekst imagettftext($final_image, 10, 0, 84, 25, $white, $Font_File, $nick); // Wynik imagettftext($final_image, 8, 0, 1, 1, $white, $Font_File, ''); imagePng($final_image); ?>
Wszystko działa ale chce aby wyświetlał się też domyślny avatar (img/char.png) i był on położony na 71, 8 czy da się tak zrobić?