|
From: OryNider <ory...@us...> - 2008-03-21 20:18:45
|
Update of /cvsroot/mxbb/mx_music/music_box/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32230/music_box/modules Modified Files: music_cat.php music_stream.php Log Message: aprovall thing Index: music_stream.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_stream.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** music_stream.php 8 Mar 2008 20:54:51 -0000 1.3 --- music_stream.php 21 Mar 2008 20:18:42 -0000 1.4 *************** *** 28,56 **** } - // - // Let's include some stuff... - // - $phpEx = substr(strrchr(__FILE__, '.'), 1); - - if ( !defined('TEMPLATE_ROOT_PATH') ) - { - include_once($mx_root_path . 'common.' . $phpEx); - - // - // Start session management - // - $mx_user->init($user_ip, PAGE_INDEX); - // - // End session management - // - } - - - $music_root_path = $module_root_path . 'music_box/'; - - // - // Get general music information - // - include_once($music_root_path . 'music_common.'.$phpEx); // ------------------------------------ --- 28,31 ---- *************** *** 235,239 **** $errno = "errno"; $errstr = "errstr"; ! $fp = fsockopen($ip, $port, $errno, $errstr, 30); --- 210,221 ---- $errno = "errno"; $errstr = "errstr"; ! ! $fp = @fsockopen($ip, $port, $errno, $errstr, 30); ! ! if (!$fp) ! { ! $station_url = str_replace("/listen.pls", "", htmlspecialchars(trim($thissong['station_url']))); ! die($station_url); ! } Index: music_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_cat.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** music_cat.php 15 Mar 2008 17:17:45 -0000 1.4 --- music_cat.php 21 Mar 2008 20:18:42 -0000 1.5 *************** *** 799,802 **** --- 799,806 ---- 'SONG_TITLE' => $thissong['song_title'], + + 'DESC' => $thissong['station_desc'], + + 'APPROVAL' => $approval_link, 'SONG_URL' => !empty($thissong['song_url']) ? $thissong['song_url'] : $url_song, |