|
@@ 3423-3454 (lines=32) @@
|
| 3420 |
|
*/
|
| 3421 |
|
|
| 3422 |
|
// ----- Look for extract by preg rule
|
| 3423 |
|
else if ( (isset($p_options[PCLZIP_OPT_BY_PREG]))
|
| 3424 |
|
&& ($p_options[PCLZIP_OPT_BY_PREG] != "")) {
|
| 3425 |
|
|
| 3426 |
|
if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header['stored_filename'])) {
|
| 3427 |
|
$v_extract = true;
|
| 3428 |
|
}
|
| 3429 |
|
}
|
| 3430 |
|
|
| 3431 |
|
// ----- Look for extract by index rule
|
| 3432 |
|
else if ( (isset($p_options[PCLZIP_OPT_BY_INDEX]))
|
| 3433 |
|
&& ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) {
|
| 3434 |
|
|
| 3435 |
|
// ----- Look if the index is in the list
|
| 3436 |
|
for ($j=$j_start; ($j<sizeof($p_options[PCLZIP_OPT_BY_INDEX])) && (!$v_extract); $j++) {
|
| 3437 |
|
|
| 3438 |
|
if (($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) {
|
| 3439 |
|
$v_extract = true;
|
| 3440 |
|
}
|
| 3441 |
|
if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) {
|
| 3442 |
|
$j_start = $j+1;
|
| 3443 |
|
}
|
| 3444 |
|
|
| 3445 |
|
if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start']>$i) {
|
| 3446 |
|
break;
|
| 3447 |
|
}
|
| 3448 |
|
}
|
| 3449 |
|
}
|
| 3450 |
|
|
| 3451 |
|
// ----- Look for no rule, which means extract all the archive
|
| 3452 |
|
else {
|
| 3453 |
|
$v_extract = true;
|
| 3454 |
|
}
|
| 3455 |
|
|
| 3456 |
|
// ----- Check compression method
|
| 3457 |
|
if ( ($v_extract)
|
|
@@ 4811-4840 (lines=30) @@
|
| 4808 |
|
*/
|
| 4809 |
|
|
| 4810 |
|
// ----- Look for extract by preg rule
|
| 4811 |
|
else if ( (isset($p_options[PCLZIP_OPT_BY_PREG]))
|
| 4812 |
|
&& ($p_options[PCLZIP_OPT_BY_PREG] != "")) {
|
| 4813 |
|
|
| 4814 |
|
if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header_list[$v_nb_extracted]['stored_filename'])) {
|
| 4815 |
|
$v_found = true;
|
| 4816 |
|
}
|
| 4817 |
|
}
|
| 4818 |
|
|
| 4819 |
|
// ----- Look for extract by index rule
|
| 4820 |
|
else if ( (isset($p_options[PCLZIP_OPT_BY_INDEX]))
|
| 4821 |
|
&& ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) {
|
| 4822 |
|
|
| 4823 |
|
// ----- Look if the index is in the list
|
| 4824 |
|
for ($j=$j_start; ($j<sizeof($p_options[PCLZIP_OPT_BY_INDEX])) && (!$v_found); $j++) {
|
| 4825 |
|
|
| 4826 |
|
if (($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['start']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end'])) {
|
| 4827 |
|
$v_found = true;
|
| 4828 |
|
}
|
| 4829 |
|
if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j]['end']) {
|
| 4830 |
|
$j_start = $j+1;
|
| 4831 |
|
}
|
| 4832 |
|
|
| 4833 |
|
if ($p_options[PCLZIP_OPT_BY_INDEX][$j]['start']>$i) {
|
| 4834 |
|
break;
|
| 4835 |
|
}
|
| 4836 |
|
}
|
| 4837 |
|
}
|
| 4838 |
|
else {
|
| 4839 |
|
$v_found = true;
|
| 4840 |
|
}
|
| 4841 |
|
|
| 4842 |
|
// ----- Look for deletion
|
| 4843 |
|
if ($v_found)
|