Warning: set_time_limit(): Cannot set time limit in safe mode in /home/www/dynamic/uv.ro/pubory.uv.ro/public_html/pub/index.php on line 526 v2/ReadMe.txt0000755000000000000000000000740310760344730010204 0ustar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - RADIO PLAYER v2.0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This is a popup radio player for SHOUTcast servers. The embed's are hidden in iframes with autostarts, so the pricipal is very simple. It also uses an ajax script to update the song title. Autodetect the users players and plugins and chooses the most fitting. It can switch between Real Player, Windows Media Player, QuickTime or Winamp ActiveX player. Feel free to use it however you want, all I want is that you keep the author meta tag. --------------------------------------------------------------------- Instructions: All you need is to edit config.php to your ShoutCast server adress/ip and port, no password is needed. --------------------------------------------------------------------- New for v2.0: This new Version is almost completly renewed. The player detect the best player for the user or he/she can select which one to use. Added QuickTime and Winamp ActiveX as selectable embed players. Supports AAC streams with a AAC plugin for WMP or usage of AOL's Winamp ActiveX embed player. New design on the skin with easier skinnable interface (Photoshop files included). --------------------------------------------------------------------- History: - Version 2.0 - This new Version is almost completly renewed. The player detect the best player for the user or he/she can select which one to use. Added QuickTime and Winamp ActiveX as selectable embed players. Supports AAC streams with a AAC plugin for WMP or usage of AOL's Winamp ActiveX embed player. New design on the skin with easier skinnable interface (Photoshop files included). February 24, 2008 Niklas Pull aka Little Frog - Version 1.1 - Mayor update. New more userfriendly version for users and developers. A stand-alone php class for obtaining information from the ShoutCast server without having to use password. Removed some general "dead" code. Added some alternative skins. Also put in a new Ajax script and modified the cache controll so the dynamic song update also works in IE. (NOTE: This version does not work as a module for mx-systems). February 4, 2008 Niklas Pull aka Little Frog - Version 1.07 - Upgrade that allows to play icyx aac plus streams in IE and FF. January 22, 2008 OryNider - Version 1.05 - "This is version 1.05 Beta with some changes." January 21, 2008 OryNider - Version 1.04 - Fixed some problems With WMP 9 (Windows 98 SE) October 23, 2006 OryNider - Version 1.04 beta 1 - In contrib/no_pass/ you have a version of getinfo.php that is not using a password to get info from the shotcast server. The info is readed from 7.html and the station name from config.php. You dont need to upload the contrib folder. To use it upload contrib/no_pass/getinfo.php replaceing the original file. October 23, 2006 OryNider - Version 1.03 - Forced media player mode for NetScape using MIME type="audio/mpeg" in the Mac script. October 22, 2006 OryNider - Version 1.02 - Rewriten wmp script by OryNider in JavaScript for Firefox. In Firefox and Linux when media mode user normaly will be propted to install a plugin, but since this is hidden in iframes user will have to install the plugin manualy. October 21, 2006 OryNider - Version 1.01 - Fixed real mode by OryNider for Firefox. October 7, 2006 OryNider - Verion 1.00 - Original version with all base code created by Niklas Pull May 17, 2006 Niklas Pull aka Little Frog --------------------------------------------------------------------- v2/detectScript.htm0000755000000000000000000002507110760341306011452 0ustar v2/img0000755000000000000000000000000012147254610006772 5ustar v2/img/close.jpg0000755000000000000000000000071310757117400010664 0ustar JFIFddDuckyKAdobed      i2!"#AaSD'!a ?-C/tQe  E؀ym}'[[]oRT0EXh%`|Y+3md"~Y0%Ǧ+Ž̛$dJz%y.٣v2/img/equalizer_play.gif0000755000000000000000000002730710760336150012601 0ustar GIF89a_0?PTp}KOkUXsjnvzNRlLPkLRlfjaeZ_zlpeiPTnhlX\wY]xLPlglz~tvV]yNPlVZvrvdiotfhV[uY^xVZt]b|OTnSXsUZt\`zZ^x`dSVqW\wQUpqv_d~osUYsswx{uyv|ptV[tSVrKPkVZuZa}dj^eMQlLQlOSmSWr! NETSCAPE2.0! ?,_0pH,Ȥh:tJZvz`%w.cyNVxMۯ ewF|{z2?|0g1E?1g//D?g+/+C?g3-3-B-?H ?g ?gw)`KH qЁ;`E?.VQI R\` ,9s8Y85;{CМ?y"ͩLPX#ꏪRbi!XDXa {Zlˎ5à %2` zn^~X^ g$| b L63e?>oFZ^Ǟaط=AC6lݯ?n-. 15>=ޡ[ǀϗ=K|>5˟#8鷟X߂.ƒP '!  nBH^BJ‹.*`c5C8Ž/)8#% FL O2ÓQB)•S4餖RrY?p eaeR `@tWGG=%I#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6?-wrMwpx]sg+} uJ#~tҍ;8rWr˙Kp.[%|)[~{rL:!kpk./>+o[>-? ʊ?Xb߽*`ºc랋=ֿ>gf}K[~2׬gZ2 EVkpSf5AAQPQ“<)WuzSDBPPQNlt IE⒎% IiL[rR,= 5GH!B$!u(4R$&:qD3Z6DU1D1ulc&I'= >$0g1|cIȇx! ?,_0pH,Ȥrl:ШtJZجvzxhy{~{}|--T PLOLNMLF::? YM 'L,?',,,YM'L88?!!Y l"_|~QaC~ 8da&)V Ca&=B~eȗ)i*Iq?>),E,yҡI ᡪXAW[R\V՚V,U[i}+I۹i pw/_$~@/ #8ܗ_ ?f Ya˅ 1MKSӮQn-;jڮ_f];ְeΚmթUXBFZ9ПkQ5xacWQCs>^_`gx߃*( 5A!HՇ"Ç ~Crzbȡ!018#5"L`D?@XnA#Z H= Id ?H,[(r>]H!StJDz@ ?.PU돭RկcŪ5۲Uz5{5;v2/img/index.html0000755000000000000000000000425412143440606011054 0ustar Index of /radioplayer/v2/img
BluePink BluePink
XHost
Oferim servicii de instalare, configurare si monitorizare servere linux (router, firewall, dns, web, email, baze de date, aplicatii, server de backup, domain controller, share de retea) de la 50 eur / instalare. Pentru detalii accesati site-ul BluePink.


Index of /radioplayer/v2/img

Last Updated: Saturday, May 11th, 2013


File name Size Last update Description
[..]<DIR>5/11/2013, 16:3Parent directory
close.jpg4592/21/2008, 0:43
equalizer.psd1207292/24/2008, 21:57
equalizer_play.gif11,9752/24/2008, 21:50
equalizer_stop.gif5452/24/2008, 21:52
play.jpg1,1642/20/2008, 23:30
play_h.jpg1,2372/21/2008, 0:16
player.psd80,0382/21/2008, 0:49
shell.jpg5,6892/20/2008, 23:46
stop.jpg5562/20/2008, 23:29
stop_h.jpg8082/21/2008, 0:16

There are 10 files and 1 directories
for a total of 223200 bytes.
v2/img/play.jpg0000755000000000000000000000221410757106712010526 0ustar JFIFddDuckyKAdobed      !A"1q2RQBr#3CS4!1AQaq"2BRrC4 ?p 3*zxP k* ,&poK !B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:Ic!K.A']Wv2/img/stop.jpg0000755000000000000000000000105410757106664010555 0ustar JFIFddDuckyKAdobed     p  !1Aa"$UQ!1 ?h9N&Yѡc\P.rȏm˱˷ZG)I&C;Z2h]5͛o59}{0my:ڐbrQIQ4DwX ' fңW%:EL`?v2/img/stop_h.jpg0000755000000000000000000000145010757114242011053 0ustar JFIFddDuckyKAdobed      "!q241AB#ScE&f  !1Aa"bQ2B#qR3Cc ?6>QkJߡB:LqL aÀXY$# t8z#kq9O7IP=oyg.Rkyst;ٜnvfq+pMc8,\"H.иvG[p*RQF$*G$nY/jm%SQ5Li`xUmwb+ʹV-U NӪI ԜJxDBi&BV*~GK3tn5::=MHmUϨ4m.av2/index.html0000755000000000000000000000067210757120424010302 0ustar Radio Player



Radio player
v2/play.php0000755000000000000000000000661210760345266007772 0ustar v2/radio.class.php0000755000000000000000000001220710756040436011220 0ustar host - Get server host. (INT) * $variable->port - Get server port. (INT) * $variable->stat - Status if server is on/off (INT, 1=on, 0=off) * $variable->bitrate - Bitrate of streaming audio. (INT) * $variable->listners - Listners. (INT) * $variable->station - Radiostation name (STRING) * $variable->genre - Streamers selected genre. (STRING) * $variable->song - Current song. (STRING) * $variable->played - Last played songs (ARRAY[STRING]) * * @author Niklas Pull * @created 2008-02-04, Sweden * * Keep the autor tag in order to use or distrubutate this php class, */ ini_set('error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE); class radio{ var $host; var $port; var $stat = 0; var $rawdata; var $c = 0; /** * Constructor for radio class. * @param $host Server Host. * @param $port Server Port */ function radio($host, $port){ $this->host = $host; $this->port = $port; $this->rawdata = $this->getServerData("index.html"); $this->stat = $this->servStat(); } /** * Collecting raw data from ShoutCast server. * @param $source From where to collect data. * @return An array with each row. */ function getServerData($source){ $fp = fsockopen($this->host, $this->port, $errno, $errstr, 10); if (!$fp) { return; } else { fputs($fp, "GET /$source HTTP/1.1\r\n"); fputs($fp, "Host: $this->host\r\n"); fputs($fp, "User-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n"); fputs($fp, "Connection: close\r\n\r\n"); while (!feof($fp)) { $buf .= fgets($fp,128); } fclose($fp); return explode("\t", strip_tags(str_replace(array("", "", "Current Song"), array("\t", "\t", " Current Song"), $buf))); } } /** * @return An integer, 1 if the server is streaming otherwise 0. */ function servStat(){ $i = 0; while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Server Status:")) { $tmp = explode(" ", $this->rawdata[$i+1]); return ($tmp[3] == "up") ? "1" : "0"; } $i++; } return 0; } /** * @return An integer representing the bitrate of the streaming. */ function bitrate(){ $i = 0; if($this->stat != 1){ return 0; } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Stream Status:")) { $bitr = explode(" ", $this->rawdata[$i+1]); return $bitr[4]; } $i++; } } /** * @return An integer of how many listners. */ function listners(){ $i = 0; if($this->stat != 1){ return 0; } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Stream Status:")) { $listn = explode(" ", $this->rawdata[$i+1]); return $listn[7]; } $i++; } } /** * @return A string representing the Stream title. */ function station(){ $i = 0; if($this->stat != 1){ return; } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Stream Title:")) { return $this->rawdata[$i+1]; } $i++; } } /** * @return The mime-type of the stream */ function mimeType(){ $i = 0; if($this->stat != 1){ return; } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Content Type:")) { return $this->rawdata[$i+1]; } $i++; } } /** * @return The streaming genre. */ function genre(){ $i = 0; if($this->stat != 1){ return; } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Stream Genre:")) { return $this->rawdata[$i+1]; } $i++; } } /** * @return A string with the current song playing on the stream. */ function song(){ $i = 0; if($this->stat != 1){ return; } if($this->c != 0){ return trim($this->rawdata[$this->c]); } while ($i < count($this->rawdata)) { $this->rawdata[$i] = trim($this->rawdata[$i]); if (strstr($this->rawdata[$i], "Current Song:")) { $this->c = $i+1; return $this->rawdata[$i+1]; } $i++; } } /** * @return An array with Strings of every previous played song, the lenght is set inte the .ini file for the ShoutCast server. */ function played(){ $played = array(); $i = 0; if($this->stat != 1){ return; } $raw_played = $this->getServerData("played.html"); while ($i < count($raw_played)) { $raw_played[$i] = trim($raw_played[$i]); if (strstr($raw_played[$i], "Current Song")) { $i=$i+3; break; } $i++; } $j=0; while ($raw_played[$i-1] != ""){ $played[$j] = $raw_played[$i]; $i=$i+2; $j++; } return $played; } } ?>v2/radioplayer.css0000755000000000000000000000241510760336306011331 0ustar * { margin: 0; padding: 0; font-family: Verdana; font-size: 10px; } body { margin: 0; padding: 0; font-family: Verdana; font-size: 10px; color: #ffffff; } a, a:visited, a:active{ text-decoration: none; color: #8a99f4; border: 0px; } select{ font-family: Verdana; font-size: 10px; background-color: #f1f1f1; border: 0px; } #shell{ background-image: url('img/shell.jpg'); width: 320px; height: 142px; left: 0px; top: 0px; position: absolute; } #station{ left: 5px; top: 1px; position: absolute; } #songtitle{ left: 10px; top: 30px; position: absolute; } #songtitle{ width: 305px; left: 10px; top: 28px; position: absolute; } #bitrate{ left: 138px; top: 60px; position: absolute; } #contentType{ left: 138px; top: 80px; position: absolute; } #play{ left: 10px; top: 110px; position: absolute; } #stop{ left: 45px; top: 115px; position: absolute; } #select{ left: 220px; top: 110px; position: absolute; } #infoPlayer{ left: 8px; top: 60px; position: absolute; } #infoPlugin{ left: 8px; top: 79px; position: absolute; } #equalizer{ left: 214px; bottom: 39px; position: absolute; } #closeButton{ left: 305px; top: 2px; position: absolute; }v2/radioplayer.php0000755000000000000000000000547010760345232011332 0ustar Radio Player :: <?=$radio->station();?>
Radio Player :: station();?>
stat != 1){ echo "Radio station currently Offline."; } else{ echo "Checking for song title..."; } ?>
bitrate();?> kbps
mimeType();?>
Media Player:

v2/song.php0000755000000000000000000000062510760345374007771 0ustar song() != ""){ echo ''.$radio->song().''; }else{ echo 'Unknown Artist'; } ?>