Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /usr/home/darklove/htdocs/radio_stats.php on line 12 Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /usr/home/darklove/htdocs/radio_stats.php on line 12 Notice: Undefined variable: scsuccs in /usr/home/darklove/htdocs/radio_stats.php on line 17 Notice: Undefined variable: page in /usr/home/darklove/htdocs/radio_stats.php on line 20 Notice: Undefined offset: 5 in /usr/home/darklove/htdocs/radio_stats.php on line 25 Notice: Undefined offset: 11 in /usr/home/darklove/htdocs/radio_stats.php on line 41
<?php /* ===================================================== Модуль Shoutcast Status v1.0 Автор: Dj-XGT Модификация: Dj-XGT ===================================================== */ if(!defined('DATALIFEENGINE')) { die("Hacking attempt!"); } include('rconfig.php'); $scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30); if(!$scfp) { $scsuccs=1; $radio = ''.$scdef.' is Offline'; } 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); } ###################################################################################################################### /////////////////////////часть 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "MAXLISTENERS", "BITRATE"); $y=0; while($loop[$y]!=''){ $pageed = ereg_replace(".*<$loop[$y]>", "", $page); $scphp = strtolower($loop[$y]); $$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed); if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE) $$scphp = urldecode($$scphp); //$radio = '$'.$scphp.' = '.$$scphp.'<br>'; $y++; } ###################################################################################################################### ###################################################################################################################### /////////////////////////часть 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //Песня $pageed = ereg_replace(".*<SONGHISTORY>", "", $page); $pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed); $songatime = explode("<SONG>", $pageed); $r=1; while($songatime[$r]!=""){ $t=$r-1; $playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]); $playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]); $song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]); $song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]); $song[$t] = urldecode($song[$t]); $dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page); $dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed); $r++; } //end song info fclose($scfp); } //Показывать if($streamstatus == "1"){ $radio = ' <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel=stylesheet href="{THEME}/css/style.css" type="text/css"> <font> <b><small>Статус <a href="http://artgames.com.ua/radio/listen.m3u">Radio</a>:</b> <font size="2" color="green"><b>RadiOnline</b></font></small><br> <b><small>Слушатели:</b> '.$currentlisteners.' / '.$maxlisteners.'</small><br> <b><small>Bitrate:</b> '.$bitrate.'kbps</small><br> <b><small>Сейчас играет:</b> '.$song[0].'</small><br> </font> '; } if($streamstatus == "0") { $radio = ' <meta http-equiv="Content-Type" content="text/html; charset=windows-1234"> <link rel=stylesheet href="{THEME}/css/style.css" type="text/css"> <center> <b>Статус:</b> <font color="red"><b>OFFLINE</b></font></center> '; } ?>
<?php $scname = "ArtGames"; $scip = "82.193.114.64"; $scport = "8000"; $scpass = "xxxxxxxxxxxxxxxx"; $web = "ArtGames.com.ua"; ?>
$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30); if(!$scfp) { $scsuccs=1; $radio = ''.$scdef.' is Offline'; }
<OBJECT ID='WinMedia' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' CODEBASE='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' width=156 height=20 standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> <PARAM NAME='FileName' VALUE='http://91.193.33.247:8000/'> <PARAM NAME='AutoStart' Value='false'> <PARAM NAME='ShowControls' Value='true'> <PARAM NAME='ShowPositionControls' VALUE='0'> <PARAM NAME='ShowTracker' VALUE='0'> <PARAM NAME='ShowStatusBar' VALUE='0'> <Embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='' Name=MediaPlayer AutoStart=0 Width=156 Height=20 autostart=1 ShowControls=1 </embed> </OBJECT>