Changeset 544
- Timestamp:
- Oct 3, 2004, 12:20:57 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/upload.php
r350 r544 31 31 $image_max_width, $image_max_height ) 32 32 { 33 global $ lang;33 global $conf, $lang; 34 34 35 35 $result = array(); … … 37 37 //echo $_FILES['picture']['name']."<br />".$temp_name; 38 38 $extension = get_extension( $_FILES['picture']['name'] ); 39 if ( $extension != 'gif' and $extension != 'jpg' and $extension != 'png')39 if ( in_array( $extension, $conf['picture_ext'] ) 40 40 { 41 41 array_push( $result['error'], $lang['upload_advise_filetype'] );
Note: See TracChangeset
for help on using the changeset viewer.