$serverpoint = $params->get('point'); fputs($fp,"GET /status2.xsl?mount=/$serverpoint HTTP/1.0\r\nUser-Agent: Icecast2 XSL Parser (Mozilla Compatible)\r\n\r\n"); //get status2.xsl
<?php /** * ICECAST - A Joomla internet radio statistic module * @version 1.0.9 * @package mod_icecast.zip * @copyright (C) 2009 - 2010 by Gronpipmaster and sli */ defined('_JEXEC') or die('Restricted access'); // no direct access $link = $ip.':'.$port.'/'.$serverpoint.'.'.$serverpointtip; JHTML::script('update.js', 'media/mod_icecast/'); ?> <div class="icecast<?php echo $params->get('moduleclass_sfx'); ?>"> <script type="text/javascript">var siteroot = "<?php echo $baseurl ?>";</script> <span class='icecast_title' style='display:none'><?php echo $module->id ?></span> <b><?php echo $ice2_station ?></b> <div class="icacast-song"><?php echo JText::_( 'GAME' );?><br /><b class="icecast-song"><?php echo $item->cur_song?></b></div> <div class="icacast-play"> <a href="http://<?php echo $link?>"> <img src="<?php echo $baseurl?>/media/mod_icecast/play.png" title="<?php echo JText::_( 'ALT_IMG' );?>" alt="<?php echo JText::_( 'ALT_IMG' );?>"></a> </div> <div class="icacast-list"><?php echo JText::_( 'PEOPLE' );?> <b class="icecast-listeners"><?php echo $item->listfake ?></b></div> <div class="icacast-bitrate"><?php echo JText::_( 'BITRATE' );?> <b><?php echo $bitrate?></b></div> </div>