|
@@ 2053-2058 (lines=6) @@
|
| 2050 |
|
// ----- Look if this file need to be extracted |
| 2051 |
|
if ($v_extract_file && (!$v_listing)) { |
| 2052 |
|
// ----- Look for path to remove |
| 2053 |
|
if (($p_remove_path != '') && (0 === strpos($v_header['filename'], $p_remove_path))) { |
| 2054 |
|
TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file " . $v_header['filename'] . ''); |
| 2055 |
|
// ----- Remove the path |
| 2056 |
|
$v_header['filename'] = substr($v_header['filename'], $p_remove_path_size); |
| 2057 |
|
TrFctMessage(__FILE__, __LINE__, 3, 'Reslting file is ' . $v_header['filename'] . ''); |
| 2058 |
|
} |
| 2059 |
|
|
| 2060 |
|
// ----- Add the path to the file |
| 2061 |
|
if (($p_path !== './') && ($p_path !== '/')) { |
|
@@ 2575-2580 (lines=6) @@
|
| 2572 |
|
$p_remove_path_size = strlen($p_remove_path); |
| 2573 |
|
|
| 2574 |
|
// ----- Look for path to remove |
| 2575 |
|
if (($p_remove_path != '') && (0 === strpos($v_header['filename'], $p_remove_path))) { |
| 2576 |
|
TrFctMessage(__FILE__, __LINE__, 3, "Found path '$p_remove_path' to remove in file " . $v_header['filename'] . ''); |
| 2577 |
|
// ----- Remove the path |
| 2578 |
|
$v_header['filename'] = substr($v_header['filename'], $p_remove_path_size); |
| 2579 |
|
TrFctMessage(__FILE__, __LINE__, 3, 'Resulting file is ' . $v_header['filename'] . ''); |
| 2580 |
|
} |
| 2581 |
|
|
| 2582 |
|
// ----- Add the path to the file |
| 2583 |
|
if (($p_path !== './') && ($p_path !== '/')) { |