Changeset 585


Ignore:
Timestamp:
10/25/04 22:35:35 (15 years ago)
Author:
z0rglub
Message:
  • bug 56 : wrong error message for exceeding filesize picture
  • bug 40 : case issue for uploaded pictures
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upload.php

    r520 r585  
    4141                          $image_max_width, $image_max_height ) 
    4242{ 
    43   global $lang; 
     43  global $conf, $lang; 
    4444                 
    4545  $result = array(); 
     
    4747  //echo $_FILES['picture']['name']."<br />".$temp_name; 
    4848  $extension = get_extension( $_FILES['picture']['name'] ); 
    49   if ( $extension != 'gif' and $extension != 'jpg' and $extension != 'png' ) 
     49  if (!in_array($extension, $conf['picture_ext'])) 
    5050  { 
    5151    array_push( $result['error'], $lang['upload_advise_filetype'] ); 
     
    6060  { 
    6161    array_push( $result['error'], 
    62                 $lang['upload_advise_width'].$my_max_file_size.' KB' ); 
     62                $lang['upload_advise_filesize'].$my_max_file_size.' KB' ); 
    6363  } 
    6464  else 
Note: See TracChangeset for help on using the changeset viewer.