/**
* Shoutcast Molok - A Joomla 1.0.8 shoutcast module
* @version 1.0
* @package mod_shoutcastextended.zip
* @copyright (C) 2005 by Molok - All rights reserved!
*/
# Don't allow direct acces to the file
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$radioname = $params->get( 'radioname', 'FungKur.FM' );
$host = $params->get( 'host', 'fungkurfm.mine.nu' );
$port = $params->get( 'port', '8000' );
$chooseplayer = $params->get( 'chooseplayer', 'Choose Player' );
$listener = $params->get( 'listener', 'Listener' );
$from = $params->get( 'from', 'from' );
$peakmenu = $params->get( 'peakmenu', 'Peak' );
$serverstatus = $params->get( 'serverstatus', 'Server Status' );
$currentsong = $params->get( 'currentsong', 'Current Song' );
$fp=@fsockopen($host,$port,&$errno,&$errstr,10);
if (!$fp) {
echo "Connection Putus";
} else {
fputs($fp,"GET /7 HTTP/1.1\nUser-Agent:Mozilla\n\n");
for($i=0; $i<1; $i++) {
if(feof($fp)) break;
$fp_data=fread($fp,31337);
usleep(500000);
}
$fp_data=ereg_replace("^.*","",$fp_data);
$fp_data=ereg_replace(".*","",$fp_data);
list($current,$status,$peak,$max,$reported,$bit,$song) = explode(",", $fp_data, 7);
if ($status == "1") {
echo "$chooseplayer
";
echo "listen listen ";
echo "listen listen
";
echo " $radioname
";
echo " $listener: $current $from $max ($reported Unique)
$peakmenu: $peak
$serverstatus: Online
Bitrate: $bit Kbps
$currentsong: $song
";
} else {
echo " $radioname
Offline ";
} }
?>
next code
Shoutcast Molok Extended
fungkur
April 2006
(C) 2005 Molok
http://www.gnu.org/copyleft/gpl.html GNU/GPL
fungkur@yahoo.com
http://www.fungkurs-network.net1.0.8
http://yoursite.com/modules/mod_shoutcastextended/ or
http://yoursite.com/joomla/modules/mod_ ... textended/
NOTE!! if those links are not working, check your mime-setting in cPanel
Credit to Molok!
This is a extended Version of Shoutcast Molok Module by Arnold Wender
Original Version - Visit Mundo Bizarro
Extended Version - Visit fungkur's Network
]]-->
mod_shoutcastextended.php
mod_shoutcastextended/winamp.gif
mod_shoutcastextended/wmplayer.gif
mod_shoutcastextended/realplayer.gif
mod_shoutcastextended/itunes.gif
mod_shoutcastextended/listen.ram
mod_shoutcastextended/listen.asx
mod_shoutcastextended/listen.m3u