Changeset 55
- Timestamp:
- 02/27/07 02:25:10 (2 years ago)
- Files:
-
- mediagallery/get_playlist.php (modified) (2 diffs)
- mediagallery/not_found.flv (added)
- mediagallery/stream.flv.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mediagallery/get_playlist.php
r53 r55 41 41 $mimetype = mimeinfo('type',$file->originalname); 42 42 $file_owner = user_info("name",$file->owner); 43 43 44 44 45 if (empty($file->title)) { … … 52 53 <title>$file->title</title> 53 54 <creator>{$file_owner}</creator> 54 <location>$filepath</location> 55 55 56 END; 56 if (substr_count($mimetype, "mp3") > 0){ 57 $media_html .="<image>{$CFG->wwwroot}mod/mediagallery/images/mp3.png</image>"; 57 if (substr_count($mimetype, "mp3") > 0){ 58 $media_html .="<image>{$CFG->wwwroot}mod/mediagallery/images/mp3.png</image>"; 59 } 60 61 if (substr_count($file->originalname, ".flv") > 0){ 62 $media_html .="<location>{$CFG->wwwroot}mod/mediagallery/stream.flv.php?ident={$file->ident}</location>"; 63 } else { 64 $media_html .="<location>{$filepath}</location>"; 58 65 } 59 60 61 $media_html .= <<< END62 </track>66 67 68 $media_html .= <<< END 69 </track> 63 70 END; 64 71
