Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1.  
  2. <html>
  3. <meta http-equiv="refresh" content="120" >
  4. <body>
  5. <font color="#FF0000" size="+2"><marquee direction="left" loop="6" width= ­"90%" height="35px">
  6. <?php
  7.  
  8. /* ----------- Server configuration ---------- */
  9.  
  10. $ip = "StreamIP";
  11. $port = "StreamPort";
  12.  
  13. /* ----- No need to edit below this line ----- */
  14. /* ------------------------------------------- */
  15.  
  16. $fp = @fsockopen($ip,$port,$errno,$errstr,1);
  17. if (!$fp)
  18. {
  19. echo "Connection refused"; // Displays when sever is offline
  20. }
  21. else
  22. {
  23. fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
  24. while (!feof($fp))
  25. {
  26. $info = fgets($fp);
  27. }
  28. $info = str_replace('</body></html>', "", $info);
  29. $split = explode(',', $info);
  30. if (empty($split[6]) )
  31. {
  32. echo "De RDS heeft de deejay uitgeschakeld vandaar dat het niet zichtbaar is"; // Displays when sever is online but no song title
  33. }
  34. else
  35. {
  36. $title = str_replace('\'', '`', $split[6]);
  37. $title = str_replace(',', ' ', $title);
  38. echo "$title"; // Displays song
  39. }
  40. }
  41. ?>
  42. </marquee>
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement