| version 1.42, 2006/09/27 12:51:56 |
version 1.43, 2006/10/01 14:31:41 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.41 2006-09-27 12:32:25 nepto Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.42 2006-09-27 12:51:56 nepto Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 647 function ezin_scale_upload_image($input_ |
|
| Line 647 function ezin_scale_upload_image($input_ |
|
| $output_image .= ($width_pct ? 'pct' : 'abs').'--'; |
$output_image .= ($width_pct ? 'pct' : 'abs').'--'; |
| $output_image .= str_replace('/','--', $input_image); |
$output_image .= str_replace('/','--', $input_image); |
| if (file_exists($uni_prefix.$output_image)) { |
if (file_exists($uni_prefix.$output_image)) { |
| return rawurlencode($output_image); |
return str_replace('%2F', '/', rawurlencode($output_image)); |
| } |
} |
| include_once 'Image/Transform.php'; |
include_once 'Image/Transform.php'; |
| $img = Image_Transform::factory('GD'); |
$img = Image_Transform::factory('GD'); |
| Line 658 function ezin_scale_upload_image($input_ |
|
| Line 658 function ezin_scale_upload_image($input_ |
|
| $img->scaleByX($width_int); |
$img->scaleByX($width_int); |
| } |
} |
| $img->save($uni_prefix.$output_image); |
$img->save($uni_prefix.$output_image); |
| return rawurlencode($output_image); |
return str_replace('%2F', '/', rawurlencode($output_image)); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| /* |
/* |