Changeset 556


Ignore:
Timestamp:
Oct 7, 2004, 11:41:09 PM (20 years ago)
Author:
z0rglub
Message:
  • bug 53 : parse error on line 40
  • bug 54 : no picture extension allowed for picture upload
  • bug 56 : wrong error message for exceeding filesize picture
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/upload.php

    r544 r556  
    3737  //echo $_FILES['picture']['name']."<br />".$temp_name;
    3838  $extension = get_extension( $_FILES['picture']['name'] );
    39   if ( in_array( $extension, $conf['picture_ext'] )
     39  if ( !in_array( $extension, $conf['picture_ext'] ) )
    4040  {
    4141    array_push( $result['error'], $lang['upload_advise_filetype'] );
     
    5050  {
    5151    array_push( $result['error'],
    52                 $lang['upload_advise_width'].$my_max_file_size.' KB' );
     52                $lang['upload_advise_filesize'].$my_max_file_size.' KB' );
    5353  }
    5454  else
Note: See TracChangeset for help on using the changeset viewer.