Jakub Kučera 6 Odesláno: 24. Listopad, 2013 Share Odesláno: 24. Listopad, 2013 Dobrý den, našel jsem si php skript na tvorbu hráčských signatur z scriptfiles složky <?php session_start(); include "all/include.php"; ?> <?php if(!$_SESSION["lognuty"]) { echo '<meta http-equiv="refresh" content="0;url=index.php" />'; } ?><?php /* * Sign Generator * by `Internal * www.Vgames.co.il */ include_once("functions.php"); $sign = !isset($_GET['s']) ? 1 : $_GET['s']; $nick = !isset($_GET["name"]) ? "None" : $_GET['name']; // Connection & Website Settings $ftpad = "93.185.105.251"; $ftpuser = "samp_7836"; $ftppass = "mojeheslo"; $comm = "SAMP"; $weburl = "www.life.papoera.eu"; $usersdir = "/Hraci"; // $ftpcon = ftp_connect($ftpad,21) or die("Could not connect to $ftpad, please contact the webmaster."); $login = ftp_login($ftpcon,$ftpuser,$ftppass); $nick = "Expertik"; $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/$nick.ini") == -1 || $nick == "None") { imagettftext($rImg,15,0,10,20,$cor_red,"Sansation_Bold.ttf",urldecode("Uzivatel nenalezen.")); imagettftext($rImg,13,0,235,145,$cor_blue,"Sansation_Bold.ttf",urldecode($weburl)); } else { ftp_pasv($ftpcon,true); $fhandle = fopen("tempsign_".hash('sha256',"$nick").".tmp","w+"); ftp_fget($ftpcon,$fhandle,"$usersdir/$nick.ini",FTP_ASCII); $str = parse_ini_file2("tempsign_".hash('sha256',"$nick").".tmp"); fclose($fhandle); imagettftext($rImg,15,0,10,20,$cor_red,"Sansation_Bold.ttf",urldecode("$comm Statistika:")); imagettftext($rImg,11,0,10,40,$cor_black,"Sansation_Bold.ttf",urldecode($nick)); imagettftext($rImg,10,0,10,60,$cor_wh,"Sansation_Bold.ttf",urldecode("Penize: ".$str['Penize'])); imagettftext($rImg,10,0,150,60,$cor_wh,"Sansation_Bold.ttf",urldecode("Banka: ".$str['Banka'])); imagettftext($rImg,10,0,10,75,$cor_wh,"Sansation_Bold.ttf",urldecode("Ridicak: ".$str['Ridicsky Prukaz'])); imagettftext($rImg,10,0,150,75,$cor_wh,"Sansation_Bold.ttf",urldecode("Vyplata: ".$str['Vyplata'])); imagettftext($rImg,10,0,10,90,$cor_wh,"Sansation_Bold.ttf",urldecode("Letecak: ".$str['Pilotni Licence'])); imagettftext($rImg,10,0,150,90,$cor_wh,"Sansation_Bold.ttf",urldecode("Marihuana: ".$str['Marihuana'])); imagettftext($rImg,10,0,10,105,$cor_wh,"Sansation_Bold.ttf",urldecode("Umrel: ".$str['Umrel'])); imagettftext($rImg,10,0,150,105,$cor_wh,"Sansation_Bold.ttf",urldecode("Skin: ".$str['Skin'])); imagettftext($rImg,10,0,10,120,$cor_wh,"Sansation_Bold.ttf",urldecode("Nahrano hodin: ".$str['Hodiny'])); imagettftext($rImg,10,0,150,120,$cor_wh,"Sansation_Bold.ttf",urldecode("Zbrojak: ".$str['Zbrojni prukaz'])); imagettftext($rImg,13,0,175,145,$cor_blue,"Sansation_Bold.ttf",urldecode("$weburl")); imagettftext($rImg,10,0,10,145,$cor_wh,"Sansation_Bold.ttf",urldecode("Nahrano minut: ".$str['Minuty'])); } ftp_close($ftpcon); unset($str); unlink("tempsign_".hash('sha256',"$nick").".tmp"); unset($ftpad); unset($ftpuser); unset($ftppass); unset($ftpcon); unset($login); header('Content-type: image/png'); imagepng($rImg); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="sk" lang="sk" xmlns="http://www.w3.org/1999/xhtml"> <!--------------> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-language" content="sk" /> <meta name="author" content="Smok3RS" url="www.smoke.yw.sk" /> <link rel="stylesheet" type="text/css" href="all/css/index.css" /> <title>Papoera Life - Již Brzy</title> </head> <!--------------> <body> a vypadá to potom takto : http://life.papoera.eu/administrace/sign1.php . A já bych potřeboval udělat že místo toho $nick = "Expertik" by prostě uživatel napsal např. www.life.papoera.eu/stats/status.php=Expertik Děkuji Jakub Kučera Link to comment Share on other sites More sharing options...
0 Arthom 6 Odesláno: 24. Listopad, 2013 Share Odesláno: 24. Listopad, 2013 $nick = $_GET['nick']; Pouzitie: www.life.papoera.eu/stats/status.php?nick=Expertik Link to comment Share on other sites More sharing options...
0 Jakub Kučera 6 Odesláno: 24. Listopad, 2013 Author Share Odesláno: 24. Listopad, 2013 děkuji Link to comment Share on other sites More sharing options...
Dotaz
Jakub Kučera 6
Dobrý den, našel jsem si php skript na tvorbu hráčských signatur z scriptfiles složky
a vypadá to potom takto : http://life.papoera.eu/administrace/sign1.php .
A já bych potřeboval udělat že místo toho $nick = "Expertik" by prostě uživatel napsal např.
www.life.papoera.eu/stats/status.php=Expertik
Děkuji Jakub Kučera
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now