Poradnik spoko ale mam pytanko opłaca sie kupowac pacca do 56 knighta? który nigdy nie mial pacca?
CaLmErA RooX!
<?php
$lines = file("play.txt");
$artist = trim($lines[1]);
$title = trim($lines[2]);
$play = trim($lines[3]);
if ($play) $header = "W Winampie gra:";
else $header = "W Winampie gra:";
if (strlen($artist)>35) $artist = substr($artist, 0, 35)."...";
if ($artist == "-"){
$artist=substr($title, 0, strpos($title, "-")+1);
$title=substr($title, strpos($title, "-")+1, strlen($title));
}
if (strlen($title)>35) $title = substr($title, 0, 35)."...";
$max = max(strlen($artist), strlen($title));
$im = imagecreatefrompng("comigra.png"); //image that generated image bases on
$font = 2;
$artist_width = strlen($artist) * imagefontwidth($font);
$title_width = strlen($title) * imagefontwidth($font);
$background = imagecolorallocate($im,0,0,0);
$text_color = imagecolorallocate($im, 000,000,0);
$ax = 220-($artist_width/2);
$tx = 220 -($title_width/2);
$y=18;
imagestring ($im, $font, 120-(strlen($header) * imagefontwidth($font)/2), $y - imagefontheight($font)-1, $header, $text_color);
imagestring ( $im, $font, $ax, $y, $artist, $text_color);
imagestring ( $im, $font, $tx, $y+imagefontheight($font)+1, $title, $text_color);
header("Content-type: image/png");
imagejpeg($im);
?>
YouTube WyświetleniaCytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
YouTube Subskrypcje
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki