| version 1.131, 2015/02/11 13:28:34 |
version 1.132, 2015/05/22 20:06:44 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.130 2015-01-20 15:20:16 igor Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.131 2015-02-11 13:28:34 igor Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 962 function ezin_get_upload_image_width($in |
|
| Line 962 function ezin_get_upload_image_width($in |
|
| |
|
| function ezin_scale_upload_image($input_image, $width) /* {{{ */ |
function ezin_scale_upload_image($input_image, $width) /* {{{ */ |
| { |
{ |
| global $ezin_cfg; |
global $ezin_cfg, $ezin_sys; |
| $width = preg_replace('/["\']/', '', trim($width)); |
$width = preg_replace('/["\']/', '', trim($width)); |
| $width_int = intval($width); |
$width_int = intval($width); |
| $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_sys['dir']['root'].$ezin_cfg['upload']['dir'].'/'; |
| $input_image = rawurldecode($input_image); |
$input_image = rawurldecode($input_image); |
| if ($width_int <= 0 || preg_match('|.bmp$|i', $input_image)) { |
if ($width_int <= 0 || preg_match('|.bmp$|i', $input_image)) { |
| return $input_image; |
return $input_image; |