Hi.
Ich wollte Gerne, das user sich eine Sigantur machen können die im Server angemeldet sind...
Ich hab hier mal Index Code
PHP
<?php
include_once("functions.php");
$sign = !isset($_GET['s']) ? 1 : $_GET['s'];
$uname = !isset($_GET["name"]) ? "None" : $_GET['name'];
// Connection & Website Settings
$ftpad = "188.40.86.76";
$ftpuser = "svr732@samp4.me";
$ftppass = "PASSWORT";
$comm = "[RLG] Server";
$weburl = "www.RLG-Page.de.ms";
$usersdir = "/scriptfiles/users";
//
$ftpcon = ftp_connect($ftpad,21) or die("Could not connect to $ftpad, please contact the webmaster.");
$login = ftp_login($ftpcon,$ftpuser,$ftppass);
$uname = "[RLG]Zepp";
$rImg = ImageCreateFromPNG("./signs/$sign.png");
$cor_black = imagecolorallocate($rImg,0,0,0);
$cor_blue = imagecolorallocate($rImg,0,0,255);
$cor_lblue = imagecolorallocate($rImg,30,144,255);
$cor_green = imagecolorallocate($rImg,69,139,116);
$cor_red = imagecolorallocate($rImg,220,20,65);
$cor_wh = imagecolorallocate($rImg,255,255,255);
if(ftp_size($ftpcon,"$usersdir/$uname.ini") == -1 || $uname == "None")
{
imagettftext($rImg,15,0,10,20,$cor_red,"Sansation_Bold.ttf",urldecode("User can not be found."));
imagettftext($rImg,13,0,235,145,$cor_blue,"Sansation_Bold.ttf",urldecode($weburl));
}
else
{
ftp_pasv($ftpcon,true);
$fhandle = fopen("tempsign_".hash('sha256',"$uname").".tmp","w+");
ftp_fget($ftpcon,$fhandle,"$usersdir/$uname.ini",FTP_ASCII);
$str = parse_ini_file2("tempsign_".hash('sha256',"$uname").".tmp");
fclose($fhandle);
imagettftext($rImg,15,0,10,20,$cor_red,"Sansation_Bold.ttf",urldecode("$comm Stats:"));
imagettftext($rImg,11,0,10,40,$cor_black,"Sansation_Bold.ttf",urldecode($uname));
imagettftext($rImg,10,0,10,60,$cor_wh,"Sansation_Bold.ttf",urldecode("Level: ".$str['Level']));
imagettftext($rImg,10,0,10,75,$cor_wh,"Sansation_Bold.ttf",urldecode("Handynr.: ".$str['PhoneNr']));
imagettftext($rImg,10,0,10,90,$cor_wh,"Sansation_Bold.ttf",urldecode("Leader: ".$str['Leader']));
imagettftext($rImg,10,0,10,105,$cor_wh,"Sansation_Bold.ttf",urldecode("Premiummember: ".$str['DonateRank']));
imagettftext($rImg,10,0,10,120,$cor_wh,"Sansation_Bold.ttf",urldecode("Spielzeit: ".$str['GesamtZeit']));
imagettftext($rImg,13,0,170,145,$cor_blue,"Sansation_Bold.ttf",urldecode("$weburl"));
}
ftp_close($ftpcon);
unset($str);
// unlink("tempsign_".hash('sha256',"$uname").".tmp");
unset($ftpad);
unset($ftpuser);
unset($ftppass);
unset($ftpcon);
unset($login);
header('Content-type: image/png');
imagepng($rImg);
?>
Alles anzeigen
Dieses $uname = "[RLG]Zepp"; ist der Acc welcher beim Index.php angezeigt wird.
Kann ich das irgendwie machen das z.b Idex2.php das da ein textfeld ist, Wo ich nameeingebe und dann kommt die Sigantur als Bild? geht das irgendwie?