<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>SHOUTCast AutoDJ</title>
        <description>Alguem sabe fazer um AutoDJ em PHP para SHOUTCast? tenho acesso Shell.</description>
        <link>/phorum/read.php?9,163931,163931#msg-163931</link>
        <lastBuildDate>Sun, 12 Jul 2026 03:07:32 +0000</lastBuildDate>
        <generator>Phorum 5.2.10</generator>
        <item>
            <guid>/phorum/read.php?9,163931,194705#msg-194705</guid>
            <title>Re: SHOUTCast AutoDJ</title>
            <link>/phorum/read.php?9,163931,194705#msg-194705</link>
            <description><![CDATA[Tem como deletar esse tipo de publicação?]]></description>
            <dc:creator>...</dc:creator>
            <category>Integração do PHP</category>
            <pubDate>Mon, 10 Jun 2019 14:24:07 +0000</pubDate>
        </item>
        <item>
            <guid>/phorum/read.php?9,163931,194704#msg-194704</guid>
            <title>Re: SHOUTCast AutoDJ</title>
            <link>/phorum/read.php?9,163931,194704#msg-194704</link>
            <description><![CDATA[Tem como deletar essas publicações antigas?]]></description>
            <dc:creator>...</dc:creator>
            <category>Integração do PHP</category>
            <pubDate>Mon, 10 Jun 2019 14:23:33 +0000</pubDate>
        </item>
        <item>
            <guid>/phorum/read.php?9,163931,165131#msg-165131</guid>
            <title>Re: SHOUTCast AutoDJ</title>
            <link>/phorum/read.php?9,163931,165131#msg-165131</link>
            <description><![CDATA[acho que esse script deve ajudar com status:<br />
<br />
&lt;?php <br />
<br />
//Configuration <br />
$streaming = http://www.criawebs.com.br<br />
<br />
$scdef = &quot;Radio&quot;;               // Default station name to display when server or stream is down <br />
<br />
$scip = &quot;&quot;; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port) <br />
<br />
$scport = &quot;&quot;;                   // port of shoutcast server <br />
<br />
$scpass = &quot;&quot;;                 // password to shoutcast server <br />
<br />
//End configuration <br />
<br />
<br />
<br />
$scfp = fsockopen(&quot;$scip&quot;,&quot;$scport&quot;);<br />
<br />
if(!$scfp) { <br />
<br />
  $scsuccs=1; <br />
<br />
echo''.$scdef.' Offline'; <br />
<br />
} <br />
<br />
if($scsuccs!=1){ <br />
<br />
fputs($scfp,&quot;GET /admin.cgi?pass=$scpass&amp;mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n&quot;); <br />
<br />
while(!feof($scfp)) { <br />
<br />
  $page .= fgets($scfp, 1000); <br />
<br />
} <br />
<br />
<br />
<br />
$loop = array(&quot;STREAMSTATUS&quot;, &quot;BITRATE&quot;, &quot;SERVERTITLE&quot;, &quot;CURRENTLISTENERS&quot;); <br />
<br />
$y=0; <br />
<br />
while($loop[$y]!=''){ <br />
<br />
  $pageed = ereg_replace(&quot;.*&lt;$loop[$y]&gt;&quot;, &quot;&quot;, $page); <br />
<br />
  $scphp = strtolower($loop[$y]); <br />
<br />
  $$scphp = ereg_replace(&quot;&lt;/$loop[$y]&gt;.*&quot;, &quot;&quot;, $pageed); <br />
<br />
  if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE) <br />
<br />
   $$scphp = urldecode($$scphp); <br />
<br />
<br />
<br />
<br />
<br />
  $y++; <br />
<br />
} <br />
<br />
<br />
<br />
$pageed = ereg_replace(&quot;.*&lt;SONGHISTORY&gt;&quot;, &quot;&quot;, $page); <br />
<br />
$pageed = ereg_replace(&quot;&lt;SONGHISTORY&gt;.*&quot;, &quot;&quot;, $pageed); <br />
<br />
$songatime = explode(&quot;&lt;SONG&gt;&quot;, $pageed); <br />
<br />
$r=1; <br />
<br />
while($songatime[$r]!=&quot;&quot;){ <br />
<br />
  $t=$r-1; <br />
<br />
  $playedat[$t] = ereg_replace(&quot;.*&lt;PLAYEDAT&gt;&quot;, &quot;&quot;, $songatime[$r]); <br />
<br />
  $playedat[$t] = ereg_replace(&quot;&lt;/PLAYEDAT&gt;.*&quot;, &quot;&quot;, $playedat[$t]); <br />
<br />
  $song[$t] = ereg_replace(&quot;.*&lt;TITLE&gt;&quot;, &quot;&quot;, $songatime[$r]); <br />
<br />
  $song[$t] = ereg_replace(&quot;&lt;/TITLE&gt;.*&quot;, &quot;&quot;, $song[$t]); <br />
<br />
  $song[$t] = urldecode($song[$t]); <br />
<br />
  $dj[$t] = ereg_replace(&quot;.*&lt;SERVERTITLE&gt;&quot;, &quot;&quot;, $page); <br />
<br />
  $dj[$t] = ereg_replace(&quot;&lt;/SERVERTITLE&gt;.*&quot;, &quot;&quot;, $pageed); <br />
<br />
$r++; <br />
<br />
} <br />
<br />
//end song info <br />
<br />
<br />
<br />
fclose($scfp); <br />
<br />
} <br />
<br />
<br />
<br />
<br />
<br />
if($streamstatus == &quot;1&quot;){ <br />
<br />
?&gt;<br />
<br />
&lt;a href=&quot;#&quot; title=&quot;Atualizar Locutor&quot; onclick=&quot;atualiza_dados('dj','http://habbix.com.br/stats/dj.php')&quot;&gt;&lt;font face=&quot;Verdana&quot; size=&quot;1&quot; color=&quot;ffffff&quot;&gt;&lt;? echo $servertitle; ?&gt;&lt;/font&gt;&lt;/a&gt;<br />
<br />
&lt;?<br />
<br />
}elseif($streamstatus == &quot;0&quot;) <br />
<br />
{ <br />
<br />
?&gt;<br />
<br />
&lt;a href=&quot;#&quot; title=&quot;Atualizar Locutor&quot; onclick=&quot;atualiza_dados('dj','stats/dj')&quot;&gt;Offline!&lt;/a&gt;<br />
<br />
&lt;?<br />
<br />
}else{<br />
<br />
?&gt; <br />
<br />
&lt;a href=&quot;#&quot; title=&quot;Atualizar Locutor&quot; onclick=&quot;atualiza_dados('dj','stats/dj')&quot;&gt;Atualize...&lt;/a&gt;<br />
<br />
&lt;? <br />
<br />
}<br />
<br />
?&gt;]]></description>
            <dc:creator>Thiago</dc:creator>
            <category>Integração do PHP</category>
            <pubDate>Sun, 13 Sep 2009 13:59:46 +0000</pubDate>
        </item>
        <item>
            <guid>/phorum/read.php?9,163931,164700#msg-164700</guid>
            <title>Re: SHOUTCast AutoDJ</title>
            <link>/phorum/read.php?9,163931,164700#msg-164700</link>
            <description><![CDATA[estou precisando saber tb]]></description>
            <dc:creator>Fabio</dc:creator>
            <category>Integração do PHP</category>
            <pubDate>Sun, 30 Aug 2009 18:01:16 +0000</pubDate>
        </item>
        <item>
            <guid>/phorum/read.php?9,163931,163972#msg-163972</guid>
            <title>Re: SHOUTCast AutoDJ</title>
            <link>/phorum/read.php?9,163931,163972#msg-163972</link>
            <description><![CDATA[Bem, terrivel a sua ajuda...<br />
Comercializar conhecimento, <br />
ainda mais de aplicativos que roda em plataformas com licença GNU.<br />
<br />
e não estou afim de contratar um serviço e sim aprender.]]></description>
            <dc:creator>Ciro M. Brandão</dc:creator>
            <category>Integração do PHP</category>
            <pubDate>Thu, 06 Aug 2009 04:26:41 +0000</pubDate>
        </item>
        <item>
            <guid>/phorum/read.php?9,163931,163962#msg-163962</guid>
            <title>Re: SHOUTCast AutoDJ</title>
            <link>/phorum/read.php?9,163931,163962#msg-163962</link>
            <description><![CDATA[Olá,<br />
<br />
Eu sei :D<br />
<br />
Entre em contato comigo para maiores detalhes, pois cobro pelo serviço.<br />
eu@netobr.com<br />
http://www.ergosum.com.br]]></description>
            <dc:creator>Aristides da Silva Neto</dc:creator>
            <category>Integração do PHP</category>
            <pubDate>Thu, 06 Aug 2009 00:03:40 +0000</pubDate>
        </item>
        <item>
            <guid>/phorum/read.php?9,163931,163931#msg-163931</guid>
            <title>SHOUTCast AutoDJ</title>
            <link>/phorum/read.php?9,163931,163931#msg-163931</link>
            <description><![CDATA[Alguem sabe fazer um AutoDJ em PHP para SHOUTCast? tenho acesso Shell.]]></description>
            <dc:creator>Ciro M. Brandão</dc:creator>
            <category>Integração do PHP</category>
            <pubDate>Tue, 04 Aug 2009 17:23:35 +0000</pubDate>
        </item>
    </channel>
</rss>
