Changes between Version 2 and Version 3 of WF/Downloaddearquivos


Ignore:
Timestamp:
07/27/07 16:07:24 (17 years ago)
Author:
cassiomaes
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WF/Downloaddearquivos

    v2 v3  
    117117 
    118118function downloadArquivo($params) 
    119  
    120119{ 
    121120 
    122121        if ($params['id_arquivo'] == 1) 
    123  
    124122        { 
    125  
    126123                $saida = array(); 
    127124 
    128125                if ($params['tipo'] == 2) 
    129  
    130126                { 
    131127 
    132128                        $saida['filename'] = "arquivo.txt"; 
    133  
    134129                        $saida['content'] = "Conteúdo do tipo 2"; 
    135130 
    136131                        return $saida; 
    137  
    138132                } 
    139133 
    140134                 
    141  
    142135                if ($params['tipo'] == 5) 
    143  
    144136                { 
    145  
    146137                        $saida['filename'] = "outro_arquivo.txt"; 
    147  
    148138                        $saida['content'] = "Outro conteúdo"; 
    149139 
     
    153143 
    154144                 
    155  
    156145                return null; 
    157146 
    158147        } 
    159  
    160148        else 
    161149 
    162                 return null; 
     150        return null; 
    163151 
    164152}