Changeset 676
- Timestamp:
- 10/30/06 01:21:26 (2 years ago)
- Files:
-
- devel/units/files/files_links_make.php (modified) (1 diff)
- devel/units/files/folder_view.php (modified) (2 diffs)
- devel/units/weblogs/weblogs_text_process.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/units/files/files_links_make.php
r669 r676 11 11 require_once($CFG->dirroot.'lib/filelib.php'); 12 12 $mimeinfo = mimeinfo('type',$file->location); 13 $filepath = $CFG->wwwroot . user_info('username', $file->owner) . "/files/" . $file->folder . "/" . $file->ident . "/" . $file->originalname;13 $filepath = $CFG->wwwroot . user_info('username', $file->owner) . "/files/" . $file->folder . "/" . $file->ident . "/" . urlencode($file->originalname); 14 14 switch($mimeinfo) { 15 15 16 16 case "audio/mpeg": 17 17 case "audio/mp3": 18 19 $filepath = $CFG->wwwroot . user_info('username', $file->owner) . "/files/" . $file->folder . "/" . $file->ident . "/" . $file->originalname;20 18 $filetitle = urlencode(stripslashes($file->title)); 21 19 $run_result .= " 22 20 <embed src=\"" . $CFG->wwwroot . "_files/mp3player/xspf_player_slim.swf?song_url=$filepath&song_title=$filetitle\" 23 21 type=\"application/x-shockwave-flash\" 24 height=\"15\" width=\"400\" > </embed>";22 height=\"15\" width=\"400\" />"; 25 23 break; 26 24 27 25 case "application/x-shockwave-flash": 28 $run_result .= "<embed src=\"$filepath\" type=\"application/x-shockwave-flash\" > </embed>";26 $run_result .= "<embed src=\"$filepath\" type=\"application/x-shockwave-flash\" />"; 29 27 break; 30 28 default: 31 $run_result .= "<a href=\""; 32 $run_result .= $CFG->wwwroot . user_info('username', $file->owner) . "/files/" . $file->folder . "/" . $file->ident . "/" . $file->originalname; 33 $run_result .= "\" >"; 29 $run_result .= '<a href="' . $filepath . '">'; 34 30 $run_result .= stripslashes($file->title); 35 31 $run_result .= "</a> " . "[" .$mimeinfo . "]"; devel/units/files/folder_view.php
r659 r676 116 116 $filemenu = round(($file->size / 1000000),4) . "Mb "; 117 117 $icon = $CFG->wwwroot . "_files/icon.php?id=" . $file->ident; 118 $filepath = $CFG->wwwroot . "$username/files/$folder/$ident/ $originalname";118 $filepath = $CFG->wwwroot . "$username/files/$folder/$ident/" . urlencode($originalname); 119 119 require_once($CFG->dirroot.'lib/filelib.php'); 120 120 $mimetype = mimeinfo('type',$file->originalname); … … 130 130 type=\"application/x-shockwave-flash\" 131 131 pluginspage=\"http://www.macromedia.com/go/getflashplayer\" 132 align=\"center\" height=\"17\" width=\"17\" > </embed>132 align=\"center\" height=\"17\" width=\"17\" /> 133 133 </object>"; 134 134 } devel/units/weblogs/weblogs_text_process.php
r643 r676 18 18 19 19 \$matches[1] = str_replace("&","&",\$matches[1]); 20 return "<embed style=\"width:400px; height:326px;\" id=\"VideoPlayback\" type=\"application/x-shockwave-flash\" src=\"\$matches[1]\" > </embed>";20 return "<embed style=\"width:400px; height:326px;\" id=\"VideoPlayback\" type=\"application/x-shockwave-flash\" src=\"\$matches[1]\" />"; 21 21 22 22 END;
