openside("RS RADIO"); //Radio panele made by Varlius! :) //Html spalvu kodas font color ir kodas, galit ju ieskoti http://www.hey.lt... ir jas pasikeisti :) //Prasideda panele, online ofline uzrassas. // Cpakeisti galite savo uzrasus ijungta/isjungta // $online = "Ijungta!!!"; // ijuntos radijos uzrasas $offline = "Radija isjungta..."; // Displays when stream is offline // don't edit below // $ip = "213.239.220.22"; $port = "11988"; $fp = @fsockopen($ip,$port,$errno,$errstr,1); if (!$fp) { $status = $offline; } else { fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n"); while (!feof($fp)) { $info = fgets($fp); } $split = explode(',', $info); if ($split[1] == "0" ) { $status = $offline; } else { $status = $online; } } echo "Statusas: "; echo $status; echo ""; echo"Statusas"; echo '
'; // Dainos tekstas $ip = "213.239.220.22"; $port = "11988"; $fp = @fsockopen($ip,$port,$errno,$errstr,1); if (!$fp) { $title = "Serveris isjungtas! Pertrauka! "; } else { fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n"); while (!feof($fp)) { $info = fgets($fp); } $info = str_replace('', "", $info); $split = explode(',', $info); if (empty($split[6]) ) { $title = "Dainos pavadinimas nerastas... "; } else { $count = count($split); $i = "6"; while($i<=$count) { if ($i > 6) { $title .= ", " . $split[$i]; } else { $title .= $split[$i]; } $i++; } } } $title = substr($title, 0, -2); echo "Busena: "; echo $title; echo ""; echo "
"; // Klausytoju rodymas $ip = "213.239.220.22"; $port = "11988"; $fp = @fsockopen($ip,$port,$errno,$errstr,1); if (!$fp) { $listeners = "0;"; } else { fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n"); while (!feof($fp)) { $info = fgets($fp); } $split = explode(',', $info); if ($split[1] == "0" ) { $listeners = "0"; } else { $listeners = $split[0]; } } echo "Klaytoju: "; echo $listeners; echo ""; // Dainos rodymas $ip = "213.239.220.22"; $port = "11988"; $fp = @fsockopen($ip,$port,$errno,$errstr,1); if (!$fp) { $title = "Serveris isjungtas, dabar nera jokiu dainu. "; } else { fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n"); while (!feof($fp)) { $info = fgets($fp); } $info = str_replace('', "", $info); $split = explode(',', $info); if (empty($split[6]) ) { $title = "Daina neturi savo duomenu! "; } else { $count = count($split); $i = "6"; while($i<=$count) { if ($i > 6) { $title .= ", " . $split[$i]; } else { $title .= $split[$i]; } $i++; } } } $title = substr($title, 0, -2); echo "
"; echo "Daina: "; echo $title; echo ""; // Klaymosi mygdukai bei nuorodos echo "
"; echo "Klausytis: "; echo "Pasiringti"; echo ""; closeside(); Cia su spalvom html koduote uzrasas