|
From: OryNider <ory...@us...> - 2007-08-28 23:01:21
|
Update of /cvsroot/mxbb/mx_music/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25524 Modified Files: music_cat.php music_page.php Log Message: Just in case the user add a url for a image. Index: music_page.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/includes/music_page.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** music_page.php 25 Aug 2007 00:15:14 -0000 1.3 --- music_page.php 28 Aug 2007 23:01:09 -0000 1.4 *************** *** 288,291 **** --- 288,297 ---- $url_video = $url_download; } + else if ( ( $song_filetype == '.jpg' ) || ( $song_filetype == '.gif' ) || ( $song_filetype == '.png' ) ) + { + $template->assign_block_vars('img', array()); + $url_download = !empty($thissong['song_url']) ? $thissong['song_url'] : append_sid(this_mo_mxurl("music_mode=music_download&song_id=$song_id")); + $url_video = $url_download; + } else if( ($song_filetype == 'pls') && !empty($thissong['song_url']) ) { Index: music_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/includes/music_cat.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** music_cat.php 25 Aug 2007 03:30:27 -0000 1.4 --- music_cat.php 28 Aug 2007 23:01:09 -0000 1.5 *************** *** 458,461 **** --- 458,468 ---- $row_type = 'qt'; } + else if ( ( $song_filetype == '.jpg' ) || ( $song_filetype == '.gif' ) || ( $song_filetype == '.png' ) ) + { + $template->assign_block_vars('songrow.img', array()); + $url_download = !empty($thissong['song_url']) ? $thissong['song_url'] : append_sid(this_mo_mxurl("music_mode=music_download&song_id=$song_id")); + $url_video = $url_download; + $row_type = 'img'; + } else if( ($song_filetype == 'pls') && !empty($thissong['song_url']) ) { |