43c43 <
--- > 204,215d203 < /* < 05/14/2004 - Steve Ivy < Change HTML to include the thumbnail and a link to the uploaded file < */ < if($_POST['thumbsize'] != 'none' ) { < < $path = explode('/', $pathtofile); < $thumbpath = substr($pathtofile, 0, strrpos($pathtofile, '/')) . '/thumb-' . $path[count($path)-1]; < $thumbfile = 'thumb-' . $path[count($path)-1]; < < // get thumbnail size < $sizes = getimagesize($thumbpath); 217,221c205,206 < if ( ereg('image/',$img1_type)) { < $piece_of_code = "This code will display the thumbnail, linked to the full-sized image:

<a href="". get_settings('fileupload_url') . "/$img1_name" title="$imgdesc" /><img ". $sizes[3] ." src="". get_settings('fileupload_url') ."/$thumbfile" alt="$imgdesc" /></a>"."

"."This code will display the full-sized image:

<img src="". get_settings('fileupload_url') ."/$img1_name" alt="$imgdesc" />"; < } else { < $piece_of_code = "<a href="". get_settings('fileupload_url') . "/$img1_name" title="$imgdesc" />$imgdesc</a>"; < } --- > if ( ereg('image/',$img1_type)) { > $piece_of_code = "<img src="". get_settings('fileupload_url') ."/$img1_name" alt="$imgdesc" />"; 223,228c208,210 < if ( ereg('image/',$img1_type)) { < $piece_of_code = "<img src="". get_settings('fileupload_url') ."/$img1_name" alt="$imgdesc" />"; < } else { < $piece_of_code = "<a href="". get_settings('fileupload_url') . "/$img1_name" title="$imgdesc" />$imgdesc</a>"; < } < } --- > $piece_of_code = "<a href="". get_settings('fileupload_url') . "/$img1_name" title="$imgdesc" />$imgdesc</a>"; > }; > 246c228 <

--- >