
<html> 
<head> 
	
<META http-equiv=content-type content=text/html;charset=iso-8859-9>
<META http-equiv=content-type content=text/html;charset=windows-1254>
<META http-equiv=content-type content=text/html;charset=x-mac-turkish>
 
 
<link href="/radyo/css/live.css" rel="stylesheet" type="text/css" />
</head>
<body> 
<? 
///---------------------\\ 
$ip = "radyo ip"; 
$port = "radyo port"; 
$sifre = "radyosifre"; 
//\---------------------// 
$d = fsockopen($ip, $port, $err, $errno, 30); 
if ($d) 
{ 
   fputs($d, "GET /statistics HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n"); 
   while (!feof($d)) 
   { 
      $sayfa .= fgets($d,4000); 
   }    
   preg_match("/<SERVERTITLE>(.+)<\/SERVERTITLE>/",$sayfa,$dj); 
   preg_match("/<SERVERGENRE>(.+)<\/SERVERGENRE>/",$sayfa,$radyo); 
   preg_match("/<SONGTITLE>(.+)<\/SONGTITLE>/",$sayfa,$sarki); 

   echo "<div style='padding-left: 10px;
    padding-right: 10px;
    background: #C8D0D6;
    margin-top: 5px;
    border: 1px solid #C8D0D6;
    width: 248px;font-weight: 600;'>Radyo Sunucu Durumu Bilgisi</div><div style='padding-left: 10px;
    padding-right: 10px;
    background: #F1F4F6;
    border: 1px solid #C8D0D6;
    width: 248px;'>Online</div><div style='    padding-left: 10px;
    padding-right: 10px;
    background: #C8D0D6;
    border: 1px solid #C8D0D6;
    width: 248px;font-weight: 600;'>Şu an Çalan Parça Bilgisi</div><div style='padding-left: 10px;
    padding-right: 10px;
    background: #F1F4F6;
    border: 1px solid #C8D0D6;
    width: 248px;overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    '>".urldecode($sarki[0])."</div></font><div style='padding-left: 10px;
    padding-right: 10px;
    background: #C8D0D6;
    border: 1px solid #C8D0D6;
    width: 248px;
    font-weight: 600;'>Çalan Şarkı Fotoğrafı</div><div style='background: #F1F4F6;
    border: 1px solid #C8D0D6;
    width: 188px;
    border-bottom: 3px solid #CFCFD0;
    padding-bottom: 7px;
    padding-left: 80px;'> <iframe style='padding-top: 10px;
    ' src='/plugin/parcagosterici/index.php' scrolling='no' frameborder='0' align='center' height = '104' width = '106' name='test' border='0'>
</iframe></div>
	 <div style='margin-top: 6px;
    margin-left: 82px;
    margin-bottom: 10px;'><a style='    background: #DE5151;
    padding: 3px;
    margin-top: 15px;
    color: whitesmoke;
    border-radius: 2px;
    border-bottom: 2px solid #AD3131;padding-left:10px;padding-right:10px;' href='https://www.youtube.com/results?search_query=$sarki[0]'>Youtube'da bul</a></div>"; 
   fclose($d); 
} else { 
   echo "<B>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<font size='1' face='verdana' color='white'>BozukRadyo:</b> <font color='#c71717'>Offline</font></font>"; 
   fclose($d); 
} 
?> 
 
</body> 
</html>