<?php
error_reporting(0);
$scdef = "Radijas neveikia";      // Default station name to display when server or stream is down
$scip = "83.142.230.165";             // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)
$scport = "28754";                  // port of shoutcast server
$scpass = "nesakysiu xD";             // password to shoutcast server
$maxusers = "100";                  //Kiek vienu sykiu klausosi zmoniu
//End configuration
error_reporting(0);
$scsuccs = NULL;
$page = NULL;
[b]include('config_radio.php');[/b] //you may edit this path to fit your server environment otherwise leave it alone
$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
 if(!$scip) {
  $scsuccs=1;
echo''.$scdef.' ';
 }
if (!$scsuccs=1) {
 fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
 while(!feof($scfp)) {
  $page .= fgets($scfp, 1000);