| @@ 2239-2248 (lines=10) @@ | ||
| 2236 | ||
| 2237 | // ----- Add the files |
|
| 2238 | $v_header_list = array(); |
|
| 2239 | if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1) |
|
| 2240 | { |
|
| 2241 | fclose($v_zip_temp_fd); |
|
| 2242 | $this->privCloseFd(); |
|
| 2243 | @unlink($v_zip_temp_name); |
|
| 2244 | $this->privSwapBackMagicQuotes(); |
|
| 2245 | ||
| 2246 | // ----- Return |
|
| 2247 | return $v_result; |
|
| 2248 | } |
|
| 2249 | ||
| 2250 | // ----- Store the offset of the central dir |
|
| 2251 | $v_offset = @ftell($this->zip_fd); |
|
| @@ 2268-2276 (lines=9) @@ | ||
| 2265 | { |
|
| 2266 | // ----- Create the file header |
|
| 2267 | if ($v_header_list[$i]['status'] == 'ok') { |
|
| 2268 | if (($v_result = $this->privWriteCentralFileHeader($v_header_list[$i])) != 1) { |
|
| 2269 | fclose($v_zip_temp_fd); |
|
| 2270 | $this->privCloseFd(); |
|
| 2271 | @unlink($v_zip_temp_name); |
|
| 2272 | $this->privSwapBackMagicQuotes(); |
|
| 2273 | ||
| 2274 | // ----- Return |
|
| 2275 | return $v_result; |
|
| 2276 | } |
|
| 2277 | $v_count++; |
|
| 2278 | } |
|
| 2279 | ||