Ich hoffe ihr könnt mir helfen. Ich habe ein Signatur Generator Script gefunden und etwas verändert. Nun ich habe nur ein Problem. Er speichert die Bilder nicht ab. Also ich hätte das gerne so das er die Ordner in einem Angbebenen Pfad abspeichert. Ich hoffe das kann einer von euch machen.
Index.php
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> <br> <body bgcolor="#000000"> <center><font color="#FFFFFF ">Speicher das Bild auf deiner Festplatte und lade es anschliesend hoch!</font></center> <center> <form action="siggy.php" method="post"> <table border="0"> <tr><td><small><big><font color="#FFFFFF ">CharName:</font></big></td><td> <input name="texting" type="text" maxlength="16"></small></td></tr> <tr><td><small><big><font color="#FFFFFF "> Clan:</font></big></td><td><input name="texting2" type="text" maxlength="11"></small></td></tr> <td><small><big><font color="#FFFFFF "> Level:</font></big></td><td><input name="texting3" type="text" maxlength="2"></small></td></tr> <tr><td><small><big><font color="#FFFFFF "> Rang:</font></td><td><input name="texting4" type="text" maxlength="10"></small></td></tr> <tr><td><small><big><font color="#FFFFFF "> Reich:</font></big></td><td><input name="texting5" type="text" maxlength="4"></small></td></tr> <tr><td> <font color="#FFFFFF ">Bild:</font></td><td> <select name="race"> <option>Krieger</option> <option>Sura</option> <option>Ninja</option> <option>Shamane</option> </select><br> </td></tr> </table> <input name="submit" value="Signatur Erstellen" type="submit"> </form> </center> <br> <center> <font size="3" color="blue">© Blue-Motion-ProGamer</font> </center> </body> </html>
Siggy.php
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); ?>
Ich hoffe mir kann jemand helfen.
MFG: Jak14