Changes between Version 2 and Version 3 of WF/Downloaddearquivos
- Timestamp:
- 07/27/07 16:07:24 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WF/Downloaddearquivos
v2 v3 117 117 118 118 function downloadArquivo($params) 119 120 119 { 121 120 122 121 if ($params['id_arquivo'] == 1) 123 124 122 { 125 126 123 $saida = array(); 127 124 128 125 if ($params['tipo'] == 2) 129 130 126 { 131 127 132 128 $saida['filename'] = "arquivo.txt"; 133 134 129 $saida['content'] = "Conteúdo do tipo 2"; 135 130 136 131 return $saida; 137 138 132 } 139 133 140 134 141 142 135 if ($params['tipo'] == 5) 143 144 136 { 145 146 137 $saida['filename'] = "outro_arquivo.txt"; 147 148 138 $saida['content'] = "Outro conteúdo"; 149 139 … … 153 143 154 144 155 156 145 return null; 157 146 158 147 } 159 160 148 else 161 149 162 150 return null; 163 151 164 152 }