Changeset 1714
- Timestamp:
- 08/30/08 13:09:10 (3 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
docs/CHANGELOG (modified) (1 diff)
-
play/index.php (modified) (3 diffs)
-
server/ajax.server.php (modified) (2 diffs)
-
templates/rightbar.inc.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/CHANGELOG
r1703 r1714 5 5 -------------------------------------------------------------------------- 6 6 v.3.5-Alpha1 7 - Fixed Dynamic Random/Related URLs with players that always send 8 a byte offset (MPD) 9 - Added Checkbox to use existing Database 7 10 - Updated language code and Fixed catalan language code 8 11 - Added Emulate gettext() from upgradephp-15 -
trunk/play/index.php
r1707 r1714 138 138 */ 139 139 if ($random) { 140 if ( !isset($start)) {140 if ($start < 1) { 141 141 $song_id = Random::get_single_song($_REQUEST['type']); 142 142 // Save this one incase we do a seek … … 159 159 } 160 160 161 /* If we don't have a file, or the file is not readable */ 162 if (!$song->file OR ( !is_readable($song->file) AND $catalog->catalog_type != 'remote' ) ) { 163 164 // We need to make sure this isn't democratic play, if it is then remove the song 165 // from the vote list 166 if (is_object($tmp_playlist)) { 167 $tmp_playlist->delete_track($song_id); 168 } 169 170 debug_event('file_not_found',"Error song $song->file ($song->title) does not have a valid filename specified",'2'); 171 echo "Error: Invalid Song Specified, file not found or file unreadable"; 172 exit; 173 } 161 174 162 175 163 … … 212 200 exit; 213 201 } // end if remote catalog 202 203 /* If we don't have a file, or the file is not readable */ 204 if (!$song->file OR !is_readable($song->file)) { 205 206 // We need to make sure this isn't democratic play, if it is then remove the song 207 // from the vote list 208 if (is_object($tmp_playlist)) { 209 $tmp_playlist->delete_track($song_id); 210 } 211 212 debug_event('file_not_found',"Error song $song->file ($song->title) does not have a valid filename specified",'2'); 213 echo "Error: Invalid Song Specified, file not found or file unreadable"; 214 exit; 215 } 214 216 215 217 // make fread binary safe -
trunk/server/ajax.server.php
r1681 r1714 234 234 case 'album': 235 235 case 'artist': 236 case ' genre':236 case 'tag': 237 237 $object = new $_REQUEST['type']($_REQUEST['id']); 238 238 $songs = $object->get_songs(); … … 250 250 case 'album_random': 251 251 case 'artist_random': 252 case ' genre_random':252 case 'tag_random': 253 253 $data = explode('_',$_REQUEST['type']); 254 254 $type = $data['0']; -
trunk/templates/rightbar.inc.php
r1525 r1714 66 66 </li> 67 67 <li> 68 <?php echo Ajax::text('?action=basket&type=dynamic&random_type= genre',_('Related Genre'),'rb_add_related_genre'); ?>68 <?php echo Ajax::text('?action=basket&type=dynamic&random_type=tag',_('Related Tag'),'rb_add_related_tag'); ?> 69 69 </li> 70 70 </ul>
