class mw_data_images extends mw_data{
function img_size($file, $max_width, $max_height){
- $img_infos = getimagesize($file);
+ $img_infos = @getimagesize($file);
$img_size = array();
if($img_infos){
if($img_infos[0] > $max_width || $img_infos[1] > $max_height){
}
}
-
-?>
\ No newline at end of file
}
}
if(strlen($cmd_arg)){
+ $param_name = "";
+ $param_value = "";
if(($k = strpos($cmd_arg, "=")) === false){
- $this->params[$cmd_arg] = "";
+ foreach($this->get_PARAMS() as $_key => $_value) if(strcmp($cmd_arg, $_value) == 0){
+ $param_name = $_key;
+ break;
+ }
}
elseif($k != 0){
- $this->params[substr($cmd_arg, 0, $k)] = substr($cmd_arg, $k + 1);
+ $_cmd_arg = substr($cmd_arg, 0, $k);
+ foreach($this->get_PARAMS() as $_key => $_value) if(strcmp($_cmd_arg, $_value) == 0){
+ $param_name = $_key;
+ $param_value = substr($cmd_arg, $k + 1);
+ break;
+ }
+ }
+ if($param_name){
+ $this->params[$param_name] = $param_value;
}
}
}