@@ 2254-2263 (lines=10) @@ | ||
2251 | ||
2252 | // ----- Add the files |
|
2253 | $v_header_list = array(); |
|
2254 | if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1) |
|
2255 | { |
|
2256 | fclose($v_zip_temp_fd); |
|
2257 | $this->privCloseFd(); |
|
2258 | @unlink($v_zip_temp_name); |
|
2259 | $this->privSwapBackMagicQuotes(); |
|
2260 | ||
2261 | // ----- Return |
|
2262 | return $v_result; |
|
2263 | } |
|
2264 | ||
2265 | // ----- Store the offset of the central dir |
|
2266 | $v_offset = @ftell($this->zip_fd); |
|
@@ 2283-2291 (lines=9) @@ | ||
2280 | { |
|
2281 | // ----- Create the file header |
|
2282 | if ($v_header_list[$i]['status'] == 'ok') { |
|
2283 | if (($v_result = $this->privWriteCentralFileHeader($v_header_list[$i])) != 1) { |
|
2284 | fclose($v_zip_temp_fd); |
|
2285 | $this->privCloseFd(); |
|
2286 | @unlink($v_zip_temp_name); |
|
2287 | $this->privSwapBackMagicQuotes(); |
|
2288 | ||
2289 | // ----- Return |
|
2290 | return $v_result; |
|
2291 | } |
|
2292 | $v_count++; |
|
2293 | } |
|
2294 |