$xml -> steamID, "Sid" => $xml -> steamID64, "online" => $xml -> onlineState, "avatar" => $xml -> avatarIcon, ); return $Steam_array; } } // pobranie STEAM_ID $steamID=$_GET['id']; // ew. konwersja w razie potrzeby if(!preg_match('/^d+$/u',$steamID)){ $steamID=preg_replace('/^steam_/ui','',$steamID); if(preg_match('/^d:d:d+$/u',$steamID)) $steamID=GetID($steamID); else die("ERR 01 :: Niepoprawne STEAM_ID"); } // pobranie danych o użytkowniku $name = GetPlayerInfo($steamID); //$name = GetPlayerInfo("76561198030298845"); // IMG // utworzenie obrazka z tla $im = imagecreatefrompng("SteamBg1.png"); // kolor bialy $grey = imagecolorallocate($im, 150, 150, 150); // czcionki define('TEMPESTA', 'tempesta.ttf'); define('TAHOMA', 'tahoma.ttf'); define('VERDANA', 'verdana.ttf'); define('TAHOMA_BOLD', 'tahoma_bold.ttf'); // okreslenie typu zawartosci header('Content-type: image/png'); $num=-1; foreach($name as & $i){ switch(++$num){ case 0:{ // nick imagettftext($im, 10, 0, 220, 50, $grey, VERDANA, $i); break; } case 1:{ // SteamID imagettftext($im, 10, 0, 220, 75, $grey, VERDANA, $i); break; } case 2:{ // SteamID imagettftext($im, 10, 0, 220, 100, $grey, VERDANA, $i); break; } } } imagepng($im); imagedestroy($im); ?>