<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("blank.png"); $color = imagecolorallocate ($im, 255, 255, 255); imagettftext ($im, 6, 0, 20, 30, $color, "ft.ttf", "1"); imagettftext ($im, 14, 45, 20, 60, $color, "ft.ttf", "2"); imagettftext ($im, 14, 0, 20, 90, $color, "ft.ttf", "3"); imagettftext ($im, 14, 170, 45, 120, $color, "ft.ttf", "4"); imagepng ($im); imagedestroy ($im); ?>
<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("blank.png"); $color = imagecolorallocate ($im, 255, 255, 255); $file_name='http://wasteland.su:8080/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $current="track".$mass [16]; imagettftext ($im, 6, 0, 15, 20, $color, "ft.ttf",$current); imagepng ($im); imagedestroy ($im); ?>
<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("blank.png"); $color = imagecolorallocate ($im, 255, 255, 255); $file_name='http://wasteland.su:8080/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $current=$mass [16]; $cm=explode(" - ", $current); imagettftext ($im, 6, 0, 15, 20, $color, "ft.ttf","Artist: ".$cm[1]); imagettftext ($im, 6, 0, 15, 30, $color, "ft.ttf","Song: ".$cm[2]); imagepng ($im); imagedestroy ($im); ?>
<!--LOOP(queue,1)--> <!--LOOP_HEADER--> <!--LOOP_ROW--> $queue.artist$ $queue.combine$ $queue.title$ <!--LOOP_FOOTER--> <!--LOOP_END-->
Jimi Hendrix Jimi Hendrix - Pali Gap Pali Gap
<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("blank.png"); $color = imagecolorallocate ($im, 255, 255, 255); $file_name='http://wasteland.su:8080/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $current=$mass [16]; $cm=explode(" - ", $current); $file_name='zago.php'; $r=fopen($file_name,'r'); $text=fread($r,filesize($file_name)); fclose($r); $mas=explode("\r\n", $text); imagettftext ($im, 6, 0, 15, 20, $color, "ft.ttf","Artist: ".$cm[1]); imagettftext ($im, 6, 0, 15, 30, $color, "ft.ttf","Song: ".$cm[2]); imagettftext ($im, 6, 0, 15, 40, $color, "ft.ttf","Next track: ".$mas[3]); imagettftext ($im, 6, 0, 15, 50, $color, "ft.ttf","Next artist: ".$mas[2]); imagettftext ($im, 6, 0, 15, 60, $color, "ft.ttf","Next song: ".$mas[4]); imagepng ($im); imagedestroy ($im); ?>
<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("blank.png"); $color = imagecolorallocate ($im, 255, 255, 255); $file_name='http://wasteland.su:8080/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $current=$mass [16]; $listens=$mass [9]; $cm=explode(" - ", $current); $file_name='zago.php'; $r=fopen($file_name,'r'); $text=fread($r,filesize($file_name)); fclose($r); $mas=explode("\r\n", $text); imagettftext ($im, 6, 0, 15, 20, $color, "ft.ttf","Artist: ".$cm[1]); imagettftext ($im, 6, 0, 15, 30, $color, "ft.ttf","Song: ".$cm[2]); imagettftext ($im, 6, 0, 15, 40, $color, "ft.ttf","Next artist: ".$mas[2]); imagettftext ($im, 6, 0, 15, 50, $color, "ft.ttf","Next song: ".$mas[4]); imagettftext ($im, 6, 0, 15, 60, $color, "ft.ttf","Listns: ".$listens); imagepng ($im); imagedestroy ($im); ?>
<?php $ml=0; ?>
<?php header ("Content-type: image/png"); $im = ImageCreateFromPng("blank.png"); $color = imagecolorallocate ($im, 255, 255, 255); $file_name='http://wasteland.su:8080/status2.xsl'; $r=fopen($file_name,'r'); $text=fread($r,1000); fclose($r); $mass=explode(",", $text); $current=$mass [16]; $listens=$mass [9]; $cm=explode(" - ", $current); include "max.php"; if ($listens>$max) { $txtout='<?php'."\r\n"; $txtout=$txtout. '$max=' .$listens. ";\r\n"; $txtout=$txtout."\r\n".'?>'; $fp = fopen ("max.php", "w"); fwrite($fp,$txtout); fclose($fp); $max=$listens; } $file_name='zago.php'; $r=fopen($file_name,'r'); $text=fread($r,filesize($file_name)); fclose($r); $mas=explode("\r\n", $text); imagettftext ($im, 6, 0, 15, 20, $color, "ft.ttf","Artist: ".$cm[1]); imagettftext ($im, 6, 0, 15, 30, $color, "ft.ttf","Song: ".$cm[2]); imagettftext ($im, 6, 0, 15, 40, $color, "ft.ttf","Next artist: ".$mas[2]); imagettftext ($im, 6, 0, 15, 50, $color, "ft.ttf","Next song: ".$mas[4]); imagettftext ($im, 6, 0, 15, 60, $color, "ft.ttf","Listns: ".$listens); imagettftext ($im, 6, 0, 15, 70, $color, "ft.ttf","Max listens: ".$max); imagepng ($im); imagedestroy ($im); ?>
imagettftext
putenv('GDFONTPATH=' . realpath('.'));
function antara($string, $start, $end){ $string = " ".$string; $ini = strpos($string,$start); if ($ini == 0) return ""; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); } $text = antara($text,'/82','/');
$file_name='http://fmhost.ru:7557/status2.xsl?mount=/82';
$file_name='zago.php';