Skip to content

Commit

Permalink
[volume:abstract] fix Studio-42#957 and Archiver maintenance and add …
Browse files Browse the repository at this point in the history
…`xz`
  • Loading branch information
nao-pon committed Jan 29, 2015
1 parent 85cef10 commit 962c487
Show file tree
Hide file tree
Showing 32 changed files with 48 additions and 41 deletions.
1 change: 1 addition & 0 deletions css/cwd.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
.elfinder-cwd-icon-xml { background-position: 0 -1000px; }
.elfinder-cwd-icon-zip,
.elfinder-cwd-icon-x-zip,
.elfinder-cwd-icon-x-xz,
.elfinder-cwd-icon-x-7z-compressed { background-position: 0 -1050px; }
.elfinder-cwd-icon-x-gzip,
.elfinder-cwd-icon-x-tar { background-position: 0 -1100px; }
Expand Down
1 change: 1 addition & 0 deletions js/elFinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1876,6 +1876,7 @@ elFinder.prototype = {
'application/x-awk' : 'AWK',
'application/x-gzip' : 'GZIP',
'application/x-bzip2' : 'BZIP',
'application/x-xz' : 'XZ',
'application/zip' : 'ZIP',
'application/x-zip' : 'ZIP',
'application/x-rar' : 'RAR',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.LANG.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR archive',
'kindGZIP' : 'GZIP archive',
'kindBZIP' : 'BZIP archive',
'kindXZ' : 'XZ archive',
'kindZIP' : 'ZIP archive',
'kindRAR' : 'RAR archive',
'kindJAR' : 'Java JAR file',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR ملف',
'kindGZIP' : 'GZIP ملف',
'kindBZIP' : 'BZIP ملف',
'kindXZ' : 'XZ ملف',
'kindZIP' : 'ZIP ملف',
'kindRAR' : 'RAR ملف',
'kindJAR' : 'Java JAR ملف',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR архив',
'kindGZIP' : 'GZIP архив',
'kindBZIP' : 'BZIP архив',
'kindXZ' : 'XZ архив',
'kindZIP' : 'ZIP архив',
'kindRAR' : 'RAR архив',
'kindJAR' : 'Java JAR файл',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'Arxiu TAR',
'kindGZIP' : 'Arxiu GZIP',
'kindBZIP' : 'Arxiu BZIP',
'kindXZ' : 'Arxiu XZ',
'kindZIP' : 'Arxiu ZIP',
'kindRAR' : 'Arxiu RAR',
'kindJAR' : 'Fitxer JAR de Java',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'Archív TAR',
'kindGZIP' : 'Archív GZIP',
'kindBZIP' : 'Archív BZIP',
'kindXZ' : 'Archív XZ',
'kindZIP' : 'Archív ZIP',
'kindRAR' : 'Archív RAR',
'kindJAR' : 'Soubor Java JAR',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.da.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR arkiv',
'kindGZIP' : 'GZIP arkiv',
'kindBZIP' : 'BZIP arkiv',
'kindXZ' : 'XZ arkiv',
'kindZIP' : 'ZIP arkiv',
'kindRAR' : 'RAR arkiv',
'kindJAR' : 'Java JAR fil',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.de.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR Archiv',
'kindGZIP' : 'GZIP Archiv',
'kindBZIP' : 'BZIP Archiv',
'kindXZ' : 'XZ Archiv',
'kindZIP' : 'ZIP Archiv',
'kindRAR' : 'RAR Archiv',
'kindJAR' : 'Java JAR Datei',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.el.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'Αρχείο TAR',
'kindGZIP' : 'Αρχείο GZIP',
'kindBZIP' : 'Αρχείο BZIP',
'kindXZ' : 'Αρχείο XZ',
'kindZIP' : 'Αρχείο ZIP',
'kindRAR' : 'Αρχείο RAR',
'kindJAR' : 'Αρχείο Java JAR',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.en.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR archive',
'kindGZIP' : 'GZIP archive',
'kindBZIP' : 'BZIP archive',
'kindXZ' : 'XZ archive',
'kindZIP' : 'ZIP archive',
'kindRAR' : 'RAR archive',
'kindJAR' : 'Java JAR file',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'Archivo TAR',
'kindGZIP' : 'Archivo GZIP',
'kindBZIP' : 'Archivo BZIP',
'kindXZ' : 'Archivo XZ',
'kindZIP' : 'Archivo ZIP',
'kindRAR' : 'Archivo RAR',
'kindJAR' : 'Archivo Java JAR',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.fa.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR archive',
'kindGZIP' : 'GZIP archive',
'kindBZIP' : 'BZIP archive',
'kindXZ' : 'XZ archive',
'kindZIP' : 'ZIP archive',
'kindRAR' : 'RAR archive',
'kindJAR' : 'Java JAR file',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'Archive TAR',
'kindGZIP' : 'Archive GZIP',
'kindBZIP' : 'Archive BZIP',
'kindXZ' : 'Archive XZ',
'kindZIP' : 'Archive ZIP',
'kindRAR' : 'Archive RAR',
'kindJAR' : 'Fichier Java JAR',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR archívum',
'kindGZIP' : 'GZIP archívum',
'kindBZIP' : 'BZIP archívum',
'kindXZ' : 'XZ archívum',
'kindZIP' : 'ZIP archívum',
'kindRAR' : 'RAR archívum',
'kindJAR' : 'Java JAR fájl',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.it.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'Archivio TAR',
'kindGZIP' : 'Archivio GZIP',
'kindBZIP' : 'Archivio BZIP',
'kindXZ' : 'Archivio XZ',
'kindZIP' : 'Archivio ZIP',
'kindRAR' : 'Archivio RAR',
'kindJAR' : 'File Java JAR',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.jp.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR アーカイブ',
'kindGZIP' : 'GZIP アーカイブ',
'kindBZIP' : 'BZIP アーカイブ',
'kindXZ' : 'XZ アーカイブ',
'kindZIP' : 'ZIP アーカイブ',
'kindRAR' : 'RAR アーカイブ',
'kindJAR' : 'Java JAR ファイル',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.ko.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR 압축파일',
'kindGZIP' : 'GZIP 압축파일',
'kindBZIP' : 'BZIP 압축파일',
'kindXZ' : 'XZ 압축파일',
'kindZIP' : 'ZIP 압축파일',
'kindRAR' : 'RAR 압축파일',
'kindJAR' : 'Java JAR 파일',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR archief',
'kindGZIP' : 'GZIP archief',
'kindBZIP' : 'BZIP archief',
'kindXZ' : 'XZ archief',
'kindZIP' : 'ZIP archief',
'kindRAR' : 'RAR archief',
'kindJAR' : 'Java JAR bestand',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.no.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR arkiv',
'kindGZIP' : 'GZIP arkiv',
'kindBZIP' : 'BZIP arkiv',
'kindXZ' : 'XZ arkiv',
'kindZIP' : 'ZIP arkiv',
'kindRAR' : 'RAR ar',
'kindJAR' : 'Java JAR file',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.pl.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'Archiwum TAR',
'kindGZIP' : 'Archiwum GZIP',
'kindBZIP' : 'Archiwum BZIP',
'kindXZ' : 'Archiwum XZ',
'kindZIP' : 'Archiwum ZIP',
'kindRAR' : 'Archiwum RAR',
'kindJAR' : 'Java JAR file',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.pt_BR.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'Arquivo TAR',
'kindGZIP' : 'Arquivo GZIP',
'kindBZIP' : 'Arquivo BZIP',
'kindXZ' : 'Arquivo XZ',
'kindZIP' : 'Arquivo ZIP',
'kindRAR' : 'Arquivo RAR',
'kindJAR' : 'Arquivo JAR',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'Архив TAR',
'kindGZIP' : 'Архив GZIP',
'kindBZIP' : 'Архив BZIP',
'kindXZ' : 'Архив XZ',
'kindZIP' : 'Архив ZIP',
'kindRAR' : 'Архив RAR',
'kindJAR' : 'Файл Java JAR',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.sk.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR archív',
'kindGZIP' : 'GZIP archív',
'kindBZIP' : 'BZIP archív',
'kindXZ' : 'XZ archív',
'kindZIP' : 'ZIP archív',
'kindRAR' : 'RAR archív',
'kindJAR' : 'Java JAR súbor',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.sl.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR arhiv',
'kindGZIP' : 'GZIP arhiv',
'kindBZIP' : 'BZIP arhiv',
'kindXZ' : 'XZ arhiv',
'kindZIP' : 'ZIP arhiv',
'kindRAR' : 'RAR arhiv',
'kindJAR' : 'Java JAR datoteka',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.sr.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR arhiva',
'kindGZIP' : 'GZIP arhiva',
'kindBZIP' : 'BZIP arhiva',
'kindXZ' : 'XZ arhiva',
'kindZIP' : 'ZIP arhiva',
'kindRAR' : 'RAR arhiva',
'kindJAR' : 'Java JAR datoteka',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.sv.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR',
'kindGZIP' : 'GZIP',
'kindBZIP' : 'BZIP',
'kindXZ' : 'XZ',
'kindZIP' : 'ZIP',
'kindRAR' : 'RAR',
'kindJAR' : 'Java JAR',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.tr.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR arşivi',
'kindGZIP' : 'GZIP arşivi',
'kindBZIP' : 'BZIP arşivi',
'kindXZ' : 'XZ arşivi',
'kindZIP' : 'ZIP arşivi',
'kindRAR' : 'RAR arşivi',
'kindJAR' : 'Java JAR dosyası',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.vi.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR archive',
'kindGZIP' : 'GZIP archive',
'kindBZIP' : 'BZIP archive',
'kindXZ' : 'XZ archive',
'kindZIP' : 'ZIP archive',
'kindRAR' : 'RAR archive',
'kindJAR' : 'Java JAR file',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.zh_CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR 压缩包',
'kindGZIP' : 'GZIP 压缩包',
'kindBZIP' : 'BZIP 压缩包',
'kindXZ' : 'XZ 压缩包',
'kindZIP' : 'ZIP 压缩包',
'kindRAR' : 'RAR 压缩包',
'kindJAR' : 'Java JAR 文件',
Expand Down
1 change: 1 addition & 0 deletions js/i18n/elfinder.zh_TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object'
'kindTAR' : 'TAR 壓縮檔案',
'kindGZIP' : 'GZIP 壓縮檔案',
'kindBZIP' : 'BZIP 壓縮檔案',
'kindXZ' : 'XZ 壓縮檔案',
'kindZIP' : 'ZIP 壓縮檔案',
'kindRAR' : 'RAR 壓縮檔案',
'kindJAR' : 'Java JAR 檔案',
Expand Down
58 changes: 17 additions & 41 deletions php/elFinderVolumeDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ abstract class elFinderVolumeDriver {
'bz' => 'application/x-bzip2',
'bz2' => 'application/x-bzip2',
'tbz' => 'application/x-bzip2',
'xz' => 'application/x-xz',
'zip' => 'application/zip',
'rar' => 'application/x-rar',
'tar' => 'application/x-tar',
Expand Down Expand Up @@ -3211,7 +3212,6 @@ protected function getArchivers($use_cache = true) {
$arcs['extract']['application/x-tar'] = array('cmd' => 'tar', 'argc' => '-xf', 'ext' => 'tar');
unset($o);
$test = $this->procExec('gzip --version', $o, $c);

if ($c == 0) {
$arcs['create']['application/x-gzip'] = array('cmd' => 'tar', 'argc' => '-czf', 'ext' => 'tgz');
$arcs['extract']['application/x-gzip'] = array('cmd' => 'tar', 'argc' => '-xzf', 'ext' => 'tgz');
Expand All @@ -3222,6 +3222,12 @@ protected function getArchivers($use_cache = true) {
$arcs['create']['application/x-bzip2'] = array('cmd' => 'tar', 'argc' => '-cjf', 'ext' => 'tbz');
$arcs['extract']['application/x-bzip2'] = array('cmd' => 'tar', 'argc' => '-xjf', 'ext' => 'tbz');
}
unset($o);
$test = $this->procExec('xz --version', $o, $c);
if ($c == 0) {
$arcs['create']['application/x-xz'] = array('cmd' => 'tar', 'argc' => '-Jcvf', 'ext' => 'xz');
$arcs['extract']['application/x-xz'] = array('cmd' => 'tar', 'argc' => '-Jxvf', 'ext' => 'xz');
}
}
unset($o);
$this->procExec('zip -v', $o, $c);
Expand Down Expand Up @@ -3250,27 +3256,15 @@ protected function getArchivers($use_cache = true) {
if ($c == 0) {
$arcs['create']['application/x-7z-compressed'] = array('cmd' => '7za', 'argc' => 'a', 'ext' => '7z');
$arcs['extract']['application/x-7z-compressed'] = array('cmd' => '7za', 'argc' => 'e -y', 'ext' => '7z');

if (empty($arcs['create']['application/x-gzip'])) {
$arcs['create']['application/x-gzip'] = array('cmd' => '7za', 'argc' => 'a -tgzip', 'ext' => 'tar.gz');
}
if (empty($arcs['extract']['application/x-gzip'])) {
$arcs['extract']['application/x-gzip'] = array('cmd' => '7za', 'argc' => 'e -tgzip -y', 'ext' => 'tar.gz');
}
if (empty($arcs['create']['application/x-bzip2'])) {
$arcs['create']['application/x-bzip2'] = array('cmd' => '7za', 'argc' => 'a -tbzip2', 'ext' => 'tar.bz');
}
if (empty($arcs['extract']['application/x-bzip2'])) {
$arcs['extract']['application/x-bzip2'] = array('cmd' => '7za', 'argc' => 'a -tbzip2 -y', 'ext' => 'tar.bz');
}

if (empty($arcs['create']['application/zip'])) {
$arcs['create']['application/zip'] = array('cmd' => '7za', 'argc' => 'a -tzip -l', 'ext' => 'zip');
$arcs['create']['application/zip'] = array('cmd' => '7za', 'argc' => 'a -tzip', 'ext' => 'zip');
}
if (empty($arcs['extract']['application/zip'])) {
$arcs['extract']['application/zip'] = array('cmd' => '7za', 'argc' => 'e -tzip -y', 'ext' => 'zip');
}
if (empty($arcs['create']['application/x-tar'])) {
$arcs['create']['application/x-tar'] = array('cmd' => '7za', 'argc' => 'a -ttar -l', 'ext' => 'tar');
$arcs['create']['application/x-tar'] = array('cmd' => '7za', 'argc' => 'a -ttar', 'ext' => 'tar');
}
if (empty($arcs['extract']['application/x-tar'])) {
$arcs['extract']['application/x-tar'] = array('cmd' => '7za', 'argc' => 'e -ttar -y', 'ext' => 'tar');
Expand All @@ -3280,38 +3274,20 @@ protected function getArchivers($use_cache = true) {
unset($o);
$this->procExec('7z', $o, $c);
if ($c == 0) {
$arcs['create']['application/x-7z-compressed'] = array('cmd' => '7z', 'argc' => 'a -mx0', 'ext' => '7z');
$arcs['extract']['application/x-7z-compressed'] = array('cmd' => '7z', 'argc' => 'x -y', 'ext' => '7z');

if (empty($arcs['create']['application/x-gzip'])) {
$arcs['create']['application/x-gzip'] = array('cmd' => '7z', 'argc' => 'a -tgzip -mx0', 'ext' => 'tar.gz');
}
if (empty($arcs['extract']['application/x-gzip'])) {
$arcs['extract']['application/x-gzip'] = array('cmd' => '7z', 'argc' => 'x -tgzip -y', 'ext' => 'tar.gz');
}
if (empty($arcs['create']['application/x-bzip2'])) {
$arcs['create']['application/x-bzip2'] = array('cmd' => '7z', 'argc' => 'a -tbzip2 -mx0', 'ext' => 'tar.bz');
}
if (empty($arcs['extract']['application/x-bzip2'])) {
$arcs['extract']['application/x-bzip2'] = array('cmd' => '7z', 'argc' => 'x -tbzip2 -y', 'ext' => 'tar.bz');
}
$arcs['create']['application/x-7z-compressed'] = array('cmd' => '7z', 'argc' => 'a', 'ext' => '7z');
$arcs['extract']['application/x-7z-compressed'] = array('cmd' => '7z', 'argc' => 'e -y', 'ext' => '7z');

if (empty($arcs['create']['application/zip'])) {
$arcs['create']['application/zip'] = array('cmd' => '7z', 'argc' => 'a -tzip -l -mx0', 'ext' => 'zip');
$arcs['create']['application/zip'] = array('cmd' => '7z', 'argc' => 'a -tzip', 'ext' => 'zip');
}
if (empty($arcs['extract']['application/zip'])) {
$arcs['extract']['application/zip'] = array('cmd' => '7z', 'argc' => 'x -tzip -y', 'ext' => 'zip');
$arcs['extract']['application/zip'] = array('cmd' => '7z', 'argc' => 'e -tzip -y', 'ext' => 'zip');
}
if (empty($arcs['create']['application/x-tar'])) {
$arcs['create']['application/x-tar'] = array('cmd' => '7z', 'argc' => 'a -ttar -l -mx0', 'ext' => 'tar');
$arcs['create']['application/x-tar'] = array('cmd' => '7z', 'argc' => 'a -ttar', 'ext' => 'tar');
}
if (empty($arcs['extract']['application/x-tar'])) {
$arcs['extract']['application/x-tar'] = array('cmd' => '7z', 'argc' => 'x -ttar -y', 'ext' => 'tar');
}
if (empty($arcs['create']['application/x-rar'])) {
$arcs['create']['application/x-rar'] = array('cmd' => '7z', 'argc' => 'a -trar -l -mx0', 'ext' => 'rar');
}
if (empty($arcs['extract']['application/x-rar'])) {
$arcs['extract']['application/x-rar'] = array('cmd' => '7z', 'argc' => 'x -trar -y', 'ext' => 'rar');
$arcs['extract']['application/x-tar'] = array('cmd' => '7z', 'argc' => 'e -ttar -y', 'ext' => 'tar');
}
}
}
Expand Down

0 comments on commit 962c487

Please sign in to comment.