Hey ich hab hier mal nen simplen Signaturen Maker erstellt, wie findet ihr ihn?
Spoiler anzeigen
image.php
PHP
<?php
header('Content-type: image/png');
$im = @imagecreatefrompng('bg.png');
$white = imagecolorallocate($im, 0, 0, 0);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 255, 255, 255);
$USERNAME=$_GET['username'];
$ERSTELLT=$_GET['erstellt'];
$BD=$_GET['bd'];
$PLACE=$_GET['place'];
$RETRO=$_GET['retro'];
$FB=$_GET['fb'];
$SKYPE=$_GET['skype'];
$MAIL=$_GET['mail'];
$text = $USERNAME;
$text2 = $ERSTELLT;
$text3 = $BD;
$text4 = $PLACE;
$text5 = $RETRO;
$text6 = $FB;
$text7 = $SKYPE;
$text8 = $MAIL;
$font = 'tahoma.ttf';
imagettftext($im, 7, 0, 150, 24, $black, $font, $text);
imagettftext($im, 7, 0, 150, 24, $black, $font, $text);
imagettftext($im, 7, 0, 162, 49, $black, $font, $text2);
imagettftext($im, 7, 0, 162, 49, $black, $font, $text2);
imagettftext($im, 7, 0, 186, 75, $black, $font, $text3);
imagettftext($im, 7, 0, 186, 75, $black, $font, $text3);
imagettftext($im, 7, 0, 166, 99, $black, $font, $text4);
imagettftext($im, 7, 0, 166, 99, $black, $font, $text4);
imagettftext($im, 7, 0, 152, 124, $black, $font, $text5);
imagettftext($im, 7, 0, 152, 124, $black, $font, $text5);
imagettftext($im, 7, 0, 172, 149, $black, $font, $text6);
imagettftext($im, 7, 0, 172, 149, $black, $font, $text6);
imagettftext($im, 7, 0, 152, 174, $black, $font, $text7);
imagettftext($im, 7, 0, 152, 174, $black, $font, $text7);
imagettftext($im, 7, 0, 152, 199, $black, $font, $text8);
imagettftext($im, 7, 0, 152, 199, $black, $font, $text8);
imagepng($im);
imagedestroy($im);
?>
Alles anzeigen
index.php
PHP
<form method="post">
Name:<br>
<input type="text" name="username"><br>
Erstellt:<br>
<input type="text" name="erstellt"><br>
Geburtstag:<br>
<input type="text" name="bd"><br>
Wohnort:<br>
<input type="text" name="place"><br>
Retro:<br>
<input type="text" name="retro"><br>
Facebook:<br>
<input type="text" name="fb"><br>
Skype:<br>
<input type="text" name="skype"><br>
Mail:<br>
<input type="text" name="mail"><br>
<input type="submit" name="submit">
</form>
<?php
if (isset($_POST['submit'])) {
?>
<img src="image.php?username=<?php echo $_POST['username']; ?> &erstellt=<?php echo $_POST['erstellt']; ?>
&bd=<?php echo $_POST['bd']; ?>
&place=<?php echo $_POST['place']; ?>
&retro=<?php echo $_POST['retro']; ?>
&fb=<?php echo $_POST['fb']; ?>
&skype=<?php echo $_POST['skype']; ?>
&mail=<?php echo $_POST['mail']; ?>
">
<?php
}
?>
Alles anzeigen
Läuft nur auf PHP 5
Hintergrund by iCello