Ignore:
Timestamp:
Dec 13, 2005 7:43:12 AM (18 years ago)
Author:
scdev
Message:

Fixed mime_content_type bug in Upload.inc.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/TemplateGlue.inc.php

    r34 r35  
    1515function bbftp($file)
    1616{
    17     return sprintf('<a href="bbftp://%s@%s:%s%s" title="%s">%s</a>', $_SERVER['USER'], $_SERVER['HTTP_HOST'], $_SERVER['DOCUMENT_ROOT'], $file, $file, basename($file));
     17    return sprintf('<a href="bbftp://%s@%s:%s%s" title="%s" style="text-decoration: none; border-bottom: blue 1px dotted;">%s</a>', $_SERVER['USER'], $_SERVER['HTTP_HOST'], $_SERVER['DOCUMENT_ROOT'], $file, $file, basename($file));
    1818}
    1919
     
    2929    $filepath = preg_match('!://!', $src) ? $src : getenv('DOCUMENT_ROOT') . $src;
    3030   
    31     if (false === ($gis = @getimagesize($filepath)) || preg_match('/width|height/', $extra)) {
     31    if (true === ($gis = @getimagesize($filepath)) && !preg_match('/width|height/', $extra)) {
     32        $image_size = $gis[3];
     33    } else {
    3234        $image_size = '';
    33     } else {
    34         $image_size = $gis[3];
    3535    }
    3636   
Note: See TracChangeset for help on using the changeset viewer.