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 = "
".FORUM."attachments/".$data[
".$size[0]."x".$size[1]." [".$type."]
"; } else if ($size[1]>300) { $x_prop = ceil($size[0]/($size[1]/300)); $res = "
".FORUM."attachments/".$data[
".$size[0]."x".$size[1]." [".$type."]
"; } else { $res = "".FORUM."attachments/".$data["; } echo "
\n".$data['user_name'].$locale['506']."

\n".$res; } else { echo "
\n".$data['user_name'].$locale['507']."
\n".$data['attach_name'].""; } } if ($data['post_edittime'] != "0") { echo "

"; echo "
\n".$locale['508']."$edituser".$locale['509']."$edittime"; }