|
@@ 6038-6040 (lines=3) @@
|
| 6035 |
|
if (empty($arcs['create']['application/zip'])) { |
| 6036 |
|
$arcs['create']['application/zip'] = ['cmd' => '7za', 'argc' => 'a -tzip', 'ext' => 'zip']; |
| 6037 |
|
} |
| 6038 |
|
if (empty($arcs['extract']['application/zip'])) { |
| 6039 |
|
$arcs['extract']['application/zip'] = ['cmd' => '7za', 'argc' => 'x -tzip -y', 'ext' => 'zip', 'toSpec' => '-o']; |
| 6040 |
|
} |
| 6041 |
|
if (empty($arcs['create']['application/x-tar'])) { |
| 6042 |
|
$arcs['create']['application/x-tar'] = ['cmd' => '7za', 'argc' => 'a -ttar', 'ext' => 'tar']; |
| 6043 |
|
} |
|
@@ 6044-6046 (lines=3) @@
|
| 6041 |
|
if (empty($arcs['create']['application/x-tar'])) { |
| 6042 |
|
$arcs['create']['application/x-tar'] = ['cmd' => '7za', 'argc' => 'a -ttar', 'ext' => 'tar']; |
| 6043 |
|
} |
| 6044 |
|
if (empty($arcs['extract']['application/x-tar'])) { |
| 6045 |
|
$arcs['extract']['application/x-tar'] = ['cmd' => '7za', 'argc' => 'x -ttar -y', 'ext' => 'tar', 'toSpec' => '-o']; |
| 6046 |
|
} |
| 6047 |
|
} elseif (substr(PHP_OS, 0, 3) === 'WIN') { |
| 6048 |
|
// check `7z` for Windows server. |
| 6049 |
|
unset($o); |
|
@@ 6058-6060 (lines=3) @@
|
| 6055 |
|
if (empty($arcs['create']['application/zip'])) { |
| 6056 |
|
$arcs['create']['application/zip'] = ['cmd' => '7z', 'argc' => 'a -tzip', 'ext' => 'zip']; |
| 6057 |
|
} |
| 6058 |
|
if (empty($arcs['extract']['application/zip'])) { |
| 6059 |
|
$arcs['extract']['application/zip'] = ['cmd' => '7z', 'argc' => 'x -tzip -y', 'ext' => 'zip', 'toSpec' => '-o']; |
| 6060 |
|
} |
| 6061 |
|
if (empty($arcs['create']['application/x-tar'])) { |
| 6062 |
|
$arcs['create']['application/x-tar'] = ['cmd' => '7z', 'argc' => 'a -ttar', 'ext' => 'tar']; |
| 6063 |
|
} |
|
@@ 6064-6066 (lines=3) @@
|
| 6061 |
|
if (empty($arcs['create']['application/x-tar'])) { |
| 6062 |
|
$arcs['create']['application/x-tar'] = ['cmd' => '7z', 'argc' => 'a -ttar', 'ext' => 'tar']; |
| 6063 |
|
} |
| 6064 |
|
if (empty($arcs['extract']['application/x-tar'])) { |
| 6065 |
|
$arcs['extract']['application/x-tar'] = ['cmd' => '7z', 'argc' => 'x -ttar -y', 'ext' => 'tar', 'toSpec' => '-o']; |
| 6066 |
|
} |
| 6067 |
|
if (empty($arcs['extract']['application/x-rar'])) { |
| 6068 |
|
$arcs['extract']['application/x-rar'] = ['cmd' => '7z', 'argc' => 'x -trar -y', 'ext' => 'rar', 'toSpec' => '-o']; |
| 6069 |
|
} |
|
@@ 6067-6069 (lines=3) @@
|
| 6064 |
|
if (empty($arcs['extract']['application/x-tar'])) { |
| 6065 |
|
$arcs['extract']['application/x-tar'] = ['cmd' => '7z', 'argc' => 'x -ttar -y', 'ext' => 'tar', 'toSpec' => '-o']; |
| 6066 |
|
} |
| 6067 |
|
if (empty($arcs['extract']['application/x-rar'])) { |
| 6068 |
|
$arcs['extract']['application/x-rar'] = ['cmd' => '7z', 'argc' => 'x -trar -y', 'ext' => 'rar', 'toSpec' => '-o']; |
| 6069 |
|
} |
| 6070 |
|
} |
| 6071 |
|
} |
| 6072 |
|
} |