if ($data['attach_id']) { if (in_array($data['attach_ext'], $imagetypes) && $size = @getimagesize(FORUM."attachments/".$data['attach_name'])) { $type = strtoupper(str_replace('.', '', strstr($data['attach_name'], '.'))); if ($size[0]>400) { $y_prop = ceil($size[1]/($size[0]/400)); $res = "
".$size[0]."x".$size[1]." [".$type."] |
".$size[0]."x".$size[1]." [".$type."] |