Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Obrazek ale jak??
Flipi
post
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 25.06.2003
Skąd: Jastrzębie Zdrój

Ostrzeżenie: (0%)
-----


[php:1:4ecde5b3c8]<?php
Header("Content-type: image/png");
if ($sp=="true"){
$gifek=imagecreatefrompng("images/plik1.png");
}
if ($sp=="false"){
$gifek=imagecreatefrompng("images/plik2.png");
}
$czarny=ImageColorAllocate($gifek,0,0,0);
$bialy=ImageColorAllocate($gifek,255,255,255);
if ($motto1 != "" && $motto2 != ""){
$box_motto1 = ImageTTFBBox(15,0,"TIMESI.TTF", $motto1);
ImageTTFText($gifek, 15,0,(560-($box_motto1[2] +$box_motto1[0])),40, $czarny, "TIMESI.TTF", $motto1);
$box_motto2 = ImageTTFBBox(15,0,"TIMESI.TTF", $motto2);
ImageTTFText($gifek, 15,0,(560-($box_motto2[2] +$box_motto2[0])),60, $czarny, "TIMESI.TTF", $motto2);
}
if ($motto1 == "" && $motto2 != ""){
$box_motto2 = ImageTTFBBox(15,0,"TIMESI.TTF", $motto2);
ImageTTFText($gifek, 15,0,(560-($box_motto2[2] +$box_motto2[0])),40, $czarny, "TIMESI.TTF", $motto2);
}
if ($motto2 == "" && $motto1 != ""){
$box_motto1 = ImageTTFBBox(15,0,"TIMESI.TTF", $motto1);
ImageTTFText($gifek, 15,0,(560-($box_motto1[2] +$box_motto1[0])),40, $czarny, "TIMESI.TTF", $motto1);
}
if ($naglowek1 != "" && $naglowek2 != ""){
$box_naglowek1 = ImageTTFBBox(20,0,"TIMESI.TTF", $naglowek1);
ImageTTFText($gifek, 20,0,(600-($box_naglowek1[2] + $box_naglowek1[0]))/2 ,100, $czarny, "TIMESI.TTF", $naglowek1);
$box_naglowek2 = ImageTTFBBox(20,0,"TIMESI.TTF", $naglowek2);
ImageTTFText($gifek, 20,0,(600-($box_naglowek2[2] + $box_naglowek2[0]))/2 ,125, $czarny, "TIMESI.TTF", $naglowek2);
}
if ($naglowek1 == "" && $naglowek2 != ""){
$box_naglowek2 = ImageTTFBBox(20,0,"TIMESI.TTF", $naglowek2);
ImageTTFText($gifek, 20,0,(600-($box_naglowek2[2] + $box_naglowek2[0]))/2 ,125, $czarny, "TIMESI.TTF", $naglowek2);
}
if ($naglowek2 == "" && $naglowek1 != ""){
$box_naglowek1 = ImageTTFBBox(20,0,"TIMESI.TTF", $naglowek1);
ImageTTFText($gifek, 20,0,(600-($box_naglowek1[2] + $box_naglowek1[0]))/2 ,125, $czarny, "TIMESI.TTF", $naglowek1);
}
$box_nam = ImageTTFBBox(26,0,"TIMESBI.TTF", $nam);

if ($sp=="true"){
ImageTTFText($gifek, 26,0,(600-($box_nam[2] +$box_nam[0]))/2,230, $czarny, "TIMESBI.TTF", $nam);
}
if ($sp=="false"){
ImageTTFText($gifek, 26,0,(600-($box_nam[2] +$box_nam[0]))/2,200, $czarny, "TIMESBI.TTF", $nam);
}
if ($stopka1 != "" && $stopka2 != ""){
$box_stopka1 = ImageTTFBBox(20,0,"TIMESI.TTF", $stopka1);
ImageTTFText($gifek, 20,0,(600-($box_stopka1[2] + $box_stopka1[0]))/2 ,280, $czarny, "TIMESI.TTF", $stopka1);
$box_stopka2 = ImageTTFBBox(20,0,"TIMESI.TTF", $stopka2);
ImageTTFText($gifek, 20,0,(600-($box_stopka2[2] + $box_stopka2[0]))/2 ,307, $czarny, "TIMESI.TTF", $stopka2);
}
if ($stopka1 == "" && $stopka2 != ""){
$box_stopka2 = ImageTTFBBox(20,0,"TIMESI.TTF", $stopka2);
ImageTTFText($gifek, 20,0,(600-($box_stopka2[2] + $box_stopka2[0]))/2 ,280, $czarny, "TIMESI.TTF", $stopka2);
}
if ($stopka2 == "" && $stopka1 != ""){
$box_stopka1 = ImageTTFBBox(20,0,"TIMESI.TTF", $stopka1);
ImageTTFText($gifek, 20,0,(600-($box_stopka1[2] + $box_stopka1[0]))/2 ,280, $czarny, "TIMESI.TTF", $stopka1);
}
$box_podpis = ImageTTFBBox(15,0,"TIMESI.TTF", $podpis);
ImageTTFText($gifek, 15,0,(560-($box_podpis[2] +$box_podpis[0])),367, $czarny, "TIMESI.TTF", $podpis);
imagepng($gifek);
?>[/php:1:4ecde5b3c8]

i nic się nie wyświetla co jest nie tak??
Proszę o pomoc.

Pozdrawiam
Flipi
Go to the top of the page
+Quote Post
Seth
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 335
Pomógł: 6
Dołączył: 7.03.2002

Ostrzeżenie: (0%)
-----


php >> Skrypty

Nastepnym razem prosze pomyslec dwa razy gdzie umieszczasz temat.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 07:23