Changeset 1021
- Timestamp:
- 04/27/08 22:57:50 (7 months ago)
- Files:
-
- bb-attachments/trunk/bb-attachments.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-attachments/trunk/bb-attachments.php
r1020 r1021 425 425 if ((!$mime || strpos($mime,'file -bi')!==false) && function_exists('getimagesize') && function_exists('image_type_to_mime_type') && strpos($disabled,'getimagesize')===false) { 426 426 // use image function in worst case senario - won't do text types - must fix ! 427 $mime=""; $imgt =@getimagesize($f); if ($imgt) {$mime=image_type_to_mime_type($imgt[2]);} // 0=width 1=height427 $mime=""; $imgt =@getimagesize($f); $mime=image_type_to_mime_type($imgt[2]); // 0=width 1=height if ($imgt) {} 428 428 } 429 429 return substr($mime,0,strpos($mime.";",";"));
