1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
|
<?php
$text = $_POST["Text"];
$sigbild = $_POST["SIG[]"];
if ($sigbild == "")
{
echo "<center>";
echo "Du musst ein Bild auswählen! Gehe zurück und wähle eines aus";
echo "<form action='creator.php'>";
echo "<input type='submit' name='submit' value='Zurück' />";
echo "</form>";
echo "</center>";
}
if ($sigbild == "SongokuSignatur")
{
Header("Content-Type: image/png");
$width = 450;
$height = 150;
$img = ImageCreateFromJPEG('DBZ.jpg');
$black = ImageColorAllocate($img, F, 0, 0); festlegen
$font_height = ImageFontHeight(3);
$font_width = ImageFontWidth(3);
$image_height = ImageSY($img);
$image_width = ImageSX($img);
$length = $font_width*strlen($text);
#$image_center_x = ($image_width/2)-($length/2);
#$image_center_y = ($image_height/2)-($font_height/2);
ImageString($img, 3, 20, 27, $text, $black);
#ImagePNG($img); # Hier wird das Bild PNG zugewiesen
#ImageDestroy($img); # Hier wird der Speicherplatz für andere Sachen geereinigt
}
if ($sigbild == "SasukeSignatur")
{
Header("Content-Type: image/png");
$width = 450;
$height = 150;
$img = ImageCreateFromJPEG('Sasuke.jpg');
$black = ImageColorAllocate($img, F, 0, 0); festlegen
$font_height = ImageFontHeight(3);
$font_width = ImageFontWidth(3);
$image_height = ImageSY($img);
$image_width = ImageSX($img);
$length = $font_width*strlen($text);
#$image_center_x = ($image_width/2)-($length/2);
#$image_center_y = ($image_height/2)-($font_height/2);
ImageString($img, 3, 20, 27, $text, $black);
#ImagePNG($img); # Hier wird das Bild PNG zugewiesen
#ImageDestroy($img); # Hier wird der Speicherplatz für andere Sachen geereinigt
}
?> |