Changeset 1521


Ignore:
Timestamp:
10/20/09 15:57:09 (15 years ago)
Author:
eduardoalex
Message:

Ticket #686 - adicionado config do tamanho do aruqivo de foto

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.user.inc.php

    r1516 r1521  
    532532                                { 
    533533                                         
    534                                         if ($_FILES['photo']['size'] > 10000) 
     534                                        $size_conf = $this->current_config['expressoAdmin_photo_length'] == '' ? 10000:$this->current_config['expressoAdmin_photo_length'] ; 
     535                                        if ($_FILES['photo']['size'] > $size_conf) 
    535536                                        { 
    536537                                                $return['status'] = false; 
    537                                                 $return['msg'] .= $this->functions->lang('User photo could not be save because is bigger the 10 kb') . '.'; 
     538                                                $return['msg'] .= $this->functions->lang('User photo could not be save because is bigger the').' '.($size_conf/1024).' kb.'; 
    538539                                        } 
    539540                                        else 
  • trunk/expressoAdmin1_2/templates/default/config.tpl

    r1516 r1521  
    134134                </td> 
    135135        </tr> 
     136         
     137        <tr class="row_th">      
     138                <td>{lang_maximum_length_of_photo_archive__(default_10240_=_10_kb)}:</td> 
     139                <td><input name="newsettings[expressoAdmin_photo_length]" value="{value_expressoAdmin_photo_length}" size="15" /></td>   
     140        </tr> 
    136141 
    137142        <tr class="th"> 
Note: See TracChangeset for help on using the changeset viewer.