in config.php : line 15
CODE
$config['mini_pic_width'] = "400"; //400 is example
$config['mini_pic_height'] = "400"; //400 is example
$config['mini_pic_height'] = "400"; //400 is example
in add.php : line 100
CODE
//004 bis -- width/height mini
$usize = @getimagesize($is_at); //get dimensions of image
if($uploaded_pwidth < $config['mini_pic_width'] || $uploaded_pheight < $config['mini_pic_width']) {
$add_msg .= sprintf("<br>".$lang['add_check4_2'], $config['mini_pic_width'], $config['mini_pic_width']);
$any_errors = 1;
}
$usize = @getimagesize($is_at); //get dimensions of image
if($uploaded_pwidth < $config['mini_pic_width'] || $uploaded_pheight < $config['mini_pic_width']) {
$add_msg .= sprintf("<br>".$lang['add_check4_2'], $config['mini_pic_width'], $config['mini_pic_width']);
$any_errors = 1;
}
1. How to add this in admincp.php ?
2. is it normal that same dimension is checked twice?
in 004 : max_pic_width (not max_pic_height)
CODE
//004 -- width/height check
$usize = @getimagesize($is_at); //get dimensions of image
if($uploaded_pwidth > $config['max_pic_width'] || $uploaded_pheight > $config['max_pic_width']) {
$add_msg .= sprintf("<br>".$lang['add_check4'], $config['max_pic_width'], $config['max_pic_width']);
$any_errors = 1;
}
$usize = @getimagesize($is_at); //get dimensions of image
if($uploaded_pwidth > $config['max_pic_width'] || $uploaded_pheight > $config['max_pic_width']) {
$add_msg .= sprintf("<br>".$lang['add_check4'], $config['max_pic_width'], $config['max_pic_width']);
$any_errors = 1;
}
for me, width and height are egal. but if they are different ??