Ignore:
Timestamp:
May 22, 2006 5:29:19 AM (18 years ago)
Author:
scdev
Message:

Q - Added "sc-" to all css class selectors; Finished reworking Upload and ImageThumb? (now with GD support!); More PHP 5 upgrades.

File:
1 edited

Legend:

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

    r95 r121  
    5555        $src = $this->oSrc($id);
    5656        $filepath = preg_match('!://!', $src) ? $src : getenv('DOCUMENT_ROOT') . $src;
     57        // Use exif_imagetype to check not only file existance but that of a valid image.
    5758        return false != @exif_imagetype($filepath);
    5859    }
     
    9495    {
    9596        $file_name = '';
     97        // filename_pattern is a sprintf argument with %s replaced with the image id.
    9698        if ($file_match = glob(sprintf("%s/{$this->_params['filename_pattern']}", $this->_params['base_path'], $id))) {
    9799            $file_name = basename(end($file_match));
Note: See TracChangeset for help on using the changeset viewer.