Changeset 233
- Timestamp:
- 01/29/06 15:10:45 (3 years ago)
- Files:
-
- devel/units/files/files_links_make.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/units/files/files_links_make.php
r110 r233 10 10 if (run("users:access_level_check",$file[0]->access) || $file[0]->owner == $_SESSION['userid']) { 11 11 if (!in_array(run("files:mimetype:inline",$file[0]->location), $data['mimetype:inline'])) { 12 if (run("files:mimetype:determine", $file[0]->location) == "audio/mpeg") {12 if (run("files:mimetype:determine",path . $file[0]->location) == "audio/mpeg") { 13 13 $filepath = url . run("users:id_to_name",$file[0]->owner) . "/files/" . $file[0]->folder . "/" . $file[0]->ident . "/" . $file[0]->originalname; 14 14 $filetitle = urlencode(stripslashes($file[0]->title)); … … 34 34 } 35 35 } else { 36 list($width, $height, $type, $attr) = @getimagesize( $file[0]->location);36 list($width, $height, $type, $attr) = @getimagesize(path . $file[0]->location); 37 37 if ($width > 400 || $height > 400) { 38 38 $run_result .= "<a href=\"";
