Diff for Metafox/functions.inc.php between version 1.37 and 1.38
| version 1.37, 2006/09/20 15:34:37 |
version 1.38, 2006/09/22 22:49:59 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.36 2006-09-16 22:53:25 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.37 2006-09-20 15:34:37 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 631 function ezin_scale_upload_image($input_ |
|
| Line 631 function ezin_scale_upload_image($input_ |
|
| $width_pct = $width[strlen($width) - 1] == '%'; |
$width_pct = $width[strlen($width) - 1] == '%'; |
| $cache_dir = '_cache'; |
$cache_dir = '_cache'; |
| $uni_prefix = $ezin_cfg['upload']['dir'].'/'; |
$uni_prefix = $ezin_cfg['upload']['dir'].'/'; |
| if ($width_int <= 0) { |
if ($width_int <= 0 || preg_match('|.bmp$|i', $input_image)) { |
| return $input_image; |
return $input_image; |
| } |
} |
| if (! file_exists($uni_prefix.$input_image)) { |
if (! file_exists($uni_prefix.$input_image)) { |
Platon Group <platon@platon.org> http://platon.org/
|
|