Changeset 585
- Timestamp:
- Oct 25, 2004, 10:35:35 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upload.php
r520 r585 41 41 $image_max_width, $image_max_height ) 42 42 { 43 global $ lang;43 global $conf, $lang; 44 44 45 45 $result = array(); … … 47 47 //echo $_FILES['picture']['name']."<br />".$temp_name; 48 48 $extension = get_extension( $_FILES['picture']['name'] ); 49 if ( $extension != 'gif' and $extension != 'jpg' and $extension != 'png')49 if (!in_array($extension, $conf['picture_ext'])) 50 50 { 51 51 array_push( $result['error'], $lang['upload_advise_filetype'] ); … … 60 60 { 61 61 array_push( $result['error'], 62 $lang['upload_advise_ width'].$my_max_file_size.' KB' );62 $lang['upload_advise_filesize'].$my_max_file_size.' KB' ); 63 63 } 64 64 else
Note: See TracChangeset
for help on using the changeset viewer.