Code:
<?php
header("Content-Type: image/png");
$text = $_POST['texting'];
$text2 = $_POST['texting2'];
$text3 = $_POST['texting3'];
$text4 = $_POST['texting4'];
$text5 = $_POST['texting5'];
$raced = $_POST['race'];
$raced = $_REQUEST['race'];
If ( $raced == "Krieger") {
$im = imagecreatefrompng("Krieger.png");
}
If ( $raced == "Sura") {
$im = imagecreatefrompng("sura.png");
}
If ( $raced == "Ninja") {
$im = imagecreatefrompng("ninja.png");
}
If ( $raced == "Shamane") {
$im = imagecreatefrompng("shamane.png");
}
$color = imagecolorallocate($im, 255, 255, 255);
$color2 = imagecolorallocate($im, 255, 255, 255);
$width = imagesx($im);
$height = imagesy($im);
$font = 3;
$font2 = 5;
$text = $_REQUEST['texting'];
$text2 = $_REQUEST['texting2'];
$text3 = $_REQUEST['texting3'];
$text4 = $_REQUEST['texting4'];
$text5 = $_REQUEST['texting5'];
$leftTextPos = ( $width - imagefontwidth(5)*strlen($text)-140);
$leftTextPos2 = ( $width - imagefontwidth(5)*strlen($text2)-110);
$leftTextPos3 = ( $width - imagefontwidth(5)*strlen($text3)-230);
$leftTextPos4 = ( $width - imagefontwidth(5)*strlen($text4)-250);
$leftTextPos5 = ( $width - imagefontwidth(5)*strlen($text5)-220);
$text = $_REQUEST['texting'];
$text2 = $_REQUEST['texting2'];
$text3 = $_REQUEST['texting3'];
$text4 = $_REQUEST['texting4'];
$text5 = $_REQUEST['texting5'];
imagestring($im, $font2, $leftTextPos, $height-92, "$text", $color);
imagestring($im, $font, $leftTextPos2, $height-57, "Gilde: $text2", $color2);
imagestring($im, $font, $leftTextPos3, $height-73, "Level: $text3", $color);
imagestring($im, $font, $leftTextPos4, $height-57, "Rang: $text4", $color2);
imagestring($im, $font, $leftTextPos5, $height-40, "Reich: $text5", $color);
imagepng($im);
imagedestroy($im);
?>