set with dumy value $_GET['submission'] = "undefine"; } $submission = $_GET['submission']; if (!isset($_GET['tekst'])) { //If not isset -> set with dumy value $_GET['tekst'] = "Twój tekst"; } $tekst = $_GET['tekst']; if (!isset($_GET['tlo'])) { //If not isset -> set with dumy value $_GET['tlo'] = "undefine"; } $tlo = $_GET['tlo']; if ($submission == "Kod") { echo "Kod na forum (prosimy o nie zmienianie go):\n[url=http://forum.drivecenter.pl][img]http://forum.drivecenter.pl/userbar/userbar.php?tekst=".$tekst."&tlo=".$tlo."[/img][/url]"; } else { function imagettfstroketext(&$image, $size, $angle, $x, $y, &$textcolor, &$strokecolor, $fontfile, $text, $px) { for($c1 = ($x-abs($px)); $c1 <= ($x+abs($px)); $c1++) for($c2 = ($y-abs($px)); $c2 <= ($y+abs($px)); $c2++) $bg = imagettftext($image, $size, $angle, $c1, $c2, $strokecolor, $fontfile, $text); return imagettftext($image, $size, $angle, $x, $y, $textcolor, $fontfile, $text); } header("Content-type: image/png"); $obraz = imagecreatefrompng($tlo.".png"); $czcionka_biala = imagecolorallocate($obraz, 255, 255, 255); $czcionka_czarna = imagecolorallocate($obraz, 0, 0, 0); $font = 'visitor.ttf'; imagettfstroketext($obraz, 10, 0, 10, 13, $czcionka_biala, $czcionka_czarna, $font, $tekst, 1); imagettfstroketext($obraz, 10, 0, 265, 13, $czcionka_biala, $czcionka_czarna, $font, "DRIVECENTER.PL", 1); imagepng($obraz); imagedestroy($obraz); } ?>