drg_default_html_editor 0.5.1 → 0.5.50.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/img/arrows-active.png +0 -0
- data/app/assets/images/img/arrows-normal.png +0 -0
- data/app/assets/images/{elfinder → img}/crop.gif +0 -0
- data/app/assets/images/img/dialogs.png +0 -0
- data/app/assets/images/img/icons-big.png +0 -0
- data/app/assets/images/img/icons-small.png +0 -0
- data/app/assets/images/img/logo.png +0 -0
- data/app/assets/images/{elfinder → img}/progress.gif +0 -0
- data/app/assets/images/img/quicklook-bg.png +0 -0
- data/app/assets/images/img/quicklook-icons.png +0 -0
- data/app/assets/images/img/resize.png +0 -0
- data/app/assets/images/{elfinder → img}/spinner-mini.gif +0 -0
- data/app/assets/images/img/toolbar.png +0 -0
- data/app/assets/images/img/volume_icon_box.png +0 -0
- data/app/assets/images/img/volume_icon_dropbox.png +0 -0
- data/app/assets/images/img/volume_icon_ftp.png +0 -0
- data/app/assets/images/img/volume_icon_googledrive.png +0 -0
- data/app/assets/images/img/volume_icon_local.png +0 -0
- data/app/assets/images/img/volume_icon_onedrive.png +0 -0
- data/app/assets/images/img/volume_icon_sql.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/CHANGES.md +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/LICENSE.md +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/README.md +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/adapters/jquery.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/build-config.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/ckeditor.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/config.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/contents.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/af.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/ar.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/bg.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/bn.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/bs.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/ca.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/cs.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/cy.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/da.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/de.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/el.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/en-au.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/en-ca.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/en-gb.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/en.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/eo.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/es.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/et.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/eu.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/fa.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/fi.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/fo.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/fr-ca.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/fr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/gl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/gu.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/he.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/hi.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/hr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/hu.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/id.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/is.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/it.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/ja.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/ka.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/km.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/ko.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/ku.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/lt.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/lv.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/mk.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/mn.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/ms.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/nb.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/nl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/no.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/pl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/pt-br.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/pt.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/ro.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/ru.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/si.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/sk.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/sl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/sq.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/sr-latn.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/sr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/sv.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/th.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/tr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/tt.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/ug.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/uk.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/vi.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/zh-cn.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/lang/zh.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ar.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/bg.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ca.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/cs.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/cy.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/da.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/de.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/el.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/en-gb.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/en.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/eo.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/es.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/et.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/fa.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/fi.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/fr-ca.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/fr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/gl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/gu.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/he.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/hi.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/hr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/hu.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/id.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/it.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ja.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/km.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ko.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ku.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/lt.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/lv.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/mk.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/mn.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/nb.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/nl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/no.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/pl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/pt-br.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/pt.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ro.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ru.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/si.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sk.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sq.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sr-latn.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/sv.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/th.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/tr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/tt.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/ug.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/uk.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/vi.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/zh-cn.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/a11yhelp/dialogs/lang/zh.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/about/dialogs/about.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/clipboard/dialogs/paste.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/colordialog/dialogs/colordialog.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/dialog/dialogDefinition.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/div/dialogs/div.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/find/dialogs/find.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/flash/dialogs/flash.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/flash/images/placeholder.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/forms/dialogs/button.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/forms/dialogs/checkbox.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/forms/dialogs/form.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/forms/dialogs/hiddenfield.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/forms/dialogs/radio.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/forms/dialogs/select.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/forms/dialogs/textarea.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/forms/dialogs/textfield.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/forms/images/hiddenfield.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/icons.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/icons_hidpi.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/iframe/dialogs/iframe.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/iframe/images/placeholder.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/image/dialogs/image.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/image/images/noimage.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/link/dialogs/anchor.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/link/dialogs/link.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/link/images/anchor.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/link/images/hidpi/anchor.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/liststyle/dialogs/liststyle.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/magicline/images/hidpi/icon.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/magicline/images/icon.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/pastefromword/filter/default.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/preview/preview.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/scayt/LICENSE.md +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/scayt/README.md +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/scayt/dialogs/options.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/scayt/dialogs/toolbar.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_address.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_blockquote.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_div.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_h1.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_h2.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_h3.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_h4.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_h5.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_h6.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_p.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/showblocks/images/block_pre.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/dialogs/smiley.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/angel_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/angel_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/angry_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/angry_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/broken_heart.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/broken_heart.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/confused_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/confused_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/cry_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/cry_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/devil_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/devil_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/embarrassed_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/envelope.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/envelope.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/heart.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/heart.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/kiss.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/kiss.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/lightbulb.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/lightbulb.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/omg_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/omg_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/regular_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/regular_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/sad_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/sad_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/shades_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/shades_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/teeth_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/teeth_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/thumbs_down.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/thumbs_down.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/thumbs_up.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/thumbs_up.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/tongue_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/tongue_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/tounge_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/wink_smile.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/smiley/images/wink_smile.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/_translationstatus.txt +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ar.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/bg.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ca.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/cs.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/cy.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/de.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/el.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/en-gb.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/en.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/eo.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/es.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/et.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/fa.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/fi.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/fr-ca.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/fr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/gl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/he.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/hr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/hu.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/id.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/it.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ja.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/km.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ku.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/lv.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/nb.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/nl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/no.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/pl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/pt-br.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/pt.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ru.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/si.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/sk.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/sl.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/sq.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/sv.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/th.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/tr.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/tt.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/ug.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/uk.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/vi.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/zh-cn.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/lang/zh.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/specialchar/dialogs/specialchar.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/table/dialogs/table.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/tabletools/dialogs/tableCell.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/templates/dialogs/templates.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/templates/dialogs/templates.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/templates/templates/default.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/templates/templates/images/template1.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/templates/templates/images/template2.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/templates/templates/images/template3.gif +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/wsc/LICENSE.md +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/wsc/README.md +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/wsc/dialogs/ciframe.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/wsc/dialogs/tmpFrameset.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/wsc/dialogs/wsc.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/wsc/dialogs/wsc.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/plugins/wsc/dialogs/wsc_ie.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/ajax.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/api.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/appendto.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/assets/inlineall/logo.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/assets/outputxhtml/outputxhtml.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/assets/posteddata.php +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/assets/sample.jpg +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/assets/uilanguages/languages.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/datafiltering.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/divreplace.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/index.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/inlineall.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/inlinebycode.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/inlinetextarea.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/jquery.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/dialog/assets/my_dialog.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/dialog/dialog.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/enterkey/enterkey.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/htmlwriter/outputforflash.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/htmlwriter/outputhtml.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/magicline/magicline.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/toolbar/toolbar.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/plugins/wysiwygarea/fullpage.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/readonly.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/replacebyclass.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/replacebycode.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/sample.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/sample.js +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/sample_posteddata.php +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/tabindex.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/uicolor.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/uilanguages.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/samples/xhtmlstyle.html +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/dialog.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/dialog_ie.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/dialog_ie7.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/dialog_ie8.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/dialog_iequirks.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/editor.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/editor_gecko.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/editor_ie.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/editor_ie7.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/editor_ie8.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/editor_iequirks.css +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/icons.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/icons_hidpi.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/images/arrow.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/images/close.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/images/hidpi/close.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/images/hidpi/lock-open.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/images/hidpi/lock.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/images/hidpi/refresh.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/images/lock-open.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/images/lock.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/images/refresh.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/skins/moono/readme.md +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/ckeditor → ckeditor}/styles.js +0 -0
- data/app/assets/javascripts/drg_default_html_editor_cms.js +5 -5
- data/app/assets/javascripts/elfinder/Changelog +494 -0
- data/app/assets/javascripts/elfinder/LICENSE.md +15 -0
- data/app/assets/javascripts/elfinder/README.md +209 -0
- data/app/assets/javascripts/elfinder/bower.json +28 -0
- data/app/assets/javascripts/elfinder/composer.json +39 -0
- data/app/assets/javascripts/elfinder/css/elfinder.full.css +3034 -0
- data/app/assets/javascripts/elfinder/css/elfinder.min.css +9 -0
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/css/theme.css +27 -8
- data/app/assets/javascripts/elfinder/elfinder.html +61 -0
- data/app/assets/javascripts/elfinder/img/arrows-active.png +0 -0
- data/app/assets/javascripts/elfinder/img/arrows-normal.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/img/crop.gif +0 -0
- data/app/assets/javascripts/elfinder/img/dialogs.png +0 -0
- data/app/assets/javascripts/elfinder/img/icons-big.png +0 -0
- data/app/assets/javascripts/elfinder/img/icons-small.png +0 -0
- data/app/assets/javascripts/elfinder/img/logo.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/img/progress.gif +0 -0
- data/app/assets/javascripts/elfinder/img/quicklook-bg.png +0 -0
- data/app/assets/javascripts/elfinder/img/quicklook-icons.png +0 -0
- data/app/assets/javascripts/elfinder/img/resize.png +0 -0
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/img/spinner-mini.gif +0 -0
- data/app/assets/javascripts/elfinder/img/toolbar.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_box.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_dropbox.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_ftp.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_googledrive.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_local.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_onedrive.png +0 -0
- data/app/assets/javascripts/elfinder/img/volume_icon_sql.png +0 -0
- data/app/assets/javascripts/elfinder/js/elfinder.full.js +23025 -0
- data/app/assets/javascripts/elfinder/js/elfinder.min.js +20 -0
- data/app/assets/javascripts/elfinder/js/extras/encoding-japanese.min.js +35 -0
- data/app/assets/javascripts/elfinder/js/extras/quicklook.googledocs.js +69 -0
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/js/i18n/elfinder.LANG.js +188 -57
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/js/i18n/elfinder.ar.js +112 -27
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/js/i18n/elfinder.bg.js +141 -39
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/js/i18n/elfinder.ca.js +96 -31
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.cs.js +469 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.da.js +374 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.de.js +457 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.el.js +374 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.es.js +433 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.fa.js +374 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.fallback.js +11 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.fo.js +419 -0
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/js/i18n/elfinder.fr.js +178 -57
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.he.js +375 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.hr.js +434 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.hu.js +447 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.id.js +373 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.it.js +448 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.jp.js +474 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.ko.js +374 -0
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/js/i18n/elfinder.nl.js +147 -70
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/js/i18n/elfinder.no.js +117 -23
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/js/i18n/elfinder.pl.js +192 -46
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.pt_BR.js +438 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.ro.js +417 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.ru.js +440 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.sk.js +469 -0
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/js/i18n/elfinder.sl.js +63 -37
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.sr.js +374 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.sv.js +375 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.tr.js +468 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.ug_CN.js +374 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.uk.js +391 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.vi.js +374 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.zh_CN.js +467 -0
- data/app/assets/javascripts/elfinder/js/i18n/elfinder.zh_TW.js +472 -0
- data/app/assets/javascripts/{drg_default_html_editor/elfinder → elfinder}/js/proxy/elFinderSupportVer1.js +106 -24
- data/app/assets/javascripts/elfinder/main.default.js +94 -0
- data/app/assets/javascripts/elfinder/package.json +13 -0
- data/app/assets/javascripts/elfinder/sounds/rm.wav +0 -0
- data/app/assets/stylesheets/drg_default_html_editor_cms.css +2 -2
- data/app/controllers/dc_elfinder_controller.rb +2 -2
- data/lib/drg_default_html_editor/version.rb +1 -1
- data/lib/patches/drgcms_form_field.rb +5 -4
- data/lib/patches/patch_for_elfinder.rb +5 -6
- data/lib/tasks/drg_default_html_editor_copy_assets.rake +3 -1
- data/test/patch_drgcms_form_field.rb +1 -1
- metadata +445 -411
- data/app/assets/images/elfinder/arrows-active.png +0 -0
- data/app/assets/images/elfinder/arrows-normal.png +0 -0
- data/app/assets/images/elfinder/dialogs.png +0 -0
- data/app/assets/images/elfinder/icons-big.png +0 -0
- data/app/assets/images/elfinder/icons-small.png +0 -0
- data/app/assets/images/elfinder/quicklook-bg.png +0 -0
- data/app/assets/images/elfinder/quicklook-icons.png +0 -0
- data/app/assets/images/elfinder/resize.png +0 -0
- data/app/assets/images/elfinder/toolbar.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/Changelog.txt +0 -63
- data/app/assets/javascripts/drg_default_html_editor/elfinder/README.md +0 -118
- data/app/assets/javascripts/drg_default_html_editor/elfinder/css/elfinder.min.css +0 -9
- data/app/assets/javascripts/drg_default_html_editor/elfinder/elfinder.html +0 -54
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/arrows-active.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/arrows-normal.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/dialogs.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/icons-big.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/icons-small.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/quicklook-bg.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/quicklook-icons.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/resize.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/img/toolbar.png +0 -0
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/elfinder.min.js +0 -25
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/elfinder.min_1.js +0 -25
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.cs.js +0 -285
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.de.js +0 -280
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.es.js +0 -291
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.hu.js +0 -280
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.jp.js +0 -316
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.pt_BR.js +0 -280
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.ru.js +0 -344
- data/app/assets/javascripts/drg_default_html_editor/elfinder/js/i18n/elfinder.zh_CN.js +0 -280
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/MySQLStorage.sql +0 -23
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/connector.php +0 -44
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/elFinder.class.php +0 -1103
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/elFinderConnector.class.php +0 -133
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/elFinderVolumeDriver.class.php +0 -3370
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/elFinderVolumeLocalFileSystem.class.php +0 -835
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/elFinderVolumeMySQL.class.php +0 -896
- data/app/assets/javascripts/drg_default_html_editor/elfinder/php/mime.types +0 -512
- data/app/assets/stylesheets/drg_default_html_editor/elfinder.min.css +0 -9
- data/lib/patch_drgcms_form_field.rb +0 -115
@@ -1,835 +0,0 @@
|
|
1
|
-
<?php
|
2
|
-
|
3
|
-
/**
|
4
|
-
* elFinder driver for local filesystem.
|
5
|
-
*
|
6
|
-
* @author Dmitry (dio) Levashov
|
7
|
-
* @author Troex Nevelin
|
8
|
-
**/
|
9
|
-
class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
10
|
-
|
11
|
-
/**
|
12
|
-
* Driver id
|
13
|
-
* Must be started from letter and contains [a-z0-9]
|
14
|
-
* Used as part of volume id
|
15
|
-
*
|
16
|
-
* @var string
|
17
|
-
**/
|
18
|
-
protected $driverId = 'l';
|
19
|
-
|
20
|
-
/**
|
21
|
-
* Required to count total archive files size
|
22
|
-
*
|
23
|
-
* @var int
|
24
|
-
**/
|
25
|
-
protected $archiveSize = 0;
|
26
|
-
|
27
|
-
/**
|
28
|
-
* Constructor
|
29
|
-
* Extend options with required fields
|
30
|
-
*
|
31
|
-
* @return void
|
32
|
-
* @author Dmitry (dio) Levashov
|
33
|
-
**/
|
34
|
-
public function __construct() {
|
35
|
-
$this->options['alias'] = ''; // alias to replace root dir name
|
36
|
-
$this->options['dirMode'] = 0755; // new dirs mode
|
37
|
-
$this->options['fileMode'] = 0644; // new files mode
|
38
|
-
$this->options['quarantine'] = '.quarantine'; // quarantine folder name - required to check archive (must be hidden)
|
39
|
-
$this->options['maxArcFilesSize'] = 0; // max allowed archive files size (0 - no limit)
|
40
|
-
}
|
41
|
-
|
42
|
-
/*********************************************************************/
|
43
|
-
/* INIT AND CONFIGURE */
|
44
|
-
/*********************************************************************/
|
45
|
-
|
46
|
-
/**
|
47
|
-
* Configure after successfull mount.
|
48
|
-
*
|
49
|
-
* @return void
|
50
|
-
* @author Dmitry (dio) Levashov
|
51
|
-
**/
|
52
|
-
protected function configure() {
|
53
|
-
$this->aroot = realpath($this->root);
|
54
|
-
$root = $this->stat($this->root);
|
55
|
-
|
56
|
-
if ($this->options['quarantine']) {
|
57
|
-
$this->attributes[] = array(
|
58
|
-
'pattern' => '~^'.preg_quote(DIRECTORY_SEPARATOR.$this->options['quarantine']).'$~',
|
59
|
-
'read' => false,
|
60
|
-
'write' => false,
|
61
|
-
'locked' => true,
|
62
|
-
'hidden' => true
|
63
|
-
);
|
64
|
-
}
|
65
|
-
|
66
|
-
// chek thumbnails path
|
67
|
-
if ($this->options['tmbPath']) {
|
68
|
-
$this->options['tmbPath'] = strpos($this->options['tmbPath'], DIRECTORY_SEPARATOR) === false
|
69
|
-
// tmb path set as dirname under root dir
|
70
|
-
? $this->root.DIRECTORY_SEPARATOR.$this->options['tmbPath']
|
71
|
-
// tmb path as full path
|
72
|
-
: $this->_normpath($this->options['tmbPath']);
|
73
|
-
}
|
74
|
-
|
75
|
-
parent::configure();
|
76
|
-
|
77
|
-
// if no thumbnails url - try detect it
|
78
|
-
if ($root['read'] && !$this->tmbURL && $this->URL) {
|
79
|
-
if (strpos($this->tmbPath, $this->root) === 0) {
|
80
|
-
$this->tmbURL = $this->URL.str_replace(DIRECTORY_SEPARATOR, '/', substr($this->tmbPath, strlen($this->root)+1));
|
81
|
-
if (preg_match("|[^/?&=]$|", $this->tmbURL)) {
|
82
|
-
$this->tmbURL .= '/';
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
// check quarantine dir
|
88
|
-
if (!empty($this->options['quarantine'])) {
|
89
|
-
$this->quarantine = $this->root.DIRECTORY_SEPARATOR.$this->options['quarantine'];
|
90
|
-
if ((!is_dir($this->quarantine) && !$this->_mkdir($this->root, $this->options['quarantine'])) || !is_writable($this->quarantine)) {
|
91
|
-
$this->archivers['extract'] = array();
|
92
|
-
$this->disabled[] = 'extract';
|
93
|
-
}
|
94
|
-
} else {
|
95
|
-
$this->archivers['extract'] = array();
|
96
|
-
$this->disabled[] = 'extract';
|
97
|
-
}
|
98
|
-
|
99
|
-
}
|
100
|
-
|
101
|
-
/*********************************************************************/
|
102
|
-
/* FS API */
|
103
|
-
/*********************************************************************/
|
104
|
-
|
105
|
-
/*********************** paths/urls *************************/
|
106
|
-
|
107
|
-
/**
|
108
|
-
* Return parent directory path
|
109
|
-
*
|
110
|
-
* @param string $path file path
|
111
|
-
* @return string
|
112
|
-
* @author Dmitry (dio) Levashov
|
113
|
-
**/
|
114
|
-
protected function _dirname($path) {
|
115
|
-
return dirname($path);
|
116
|
-
}
|
117
|
-
|
118
|
-
/**
|
119
|
-
* Return file name
|
120
|
-
*
|
121
|
-
* @param string $path file path
|
122
|
-
* @return string
|
123
|
-
* @author Dmitry (dio) Levashov
|
124
|
-
**/
|
125
|
-
protected function _basename($path) {
|
126
|
-
return basename($path);
|
127
|
-
}
|
128
|
-
|
129
|
-
/**
|
130
|
-
* Join dir name and file name and retur full path
|
131
|
-
*
|
132
|
-
* @param string $dir
|
133
|
-
* @param string $name
|
134
|
-
* @return string
|
135
|
-
* @author Dmitry (dio) Levashov
|
136
|
-
**/
|
137
|
-
protected function _joinPath($dir, $name) {
|
138
|
-
return $dir.DIRECTORY_SEPARATOR.$name;
|
139
|
-
}
|
140
|
-
|
141
|
-
/**
|
142
|
-
* Return normalized path, this works the same as os.path.normpath() in Python
|
143
|
-
*
|
144
|
-
* @param string $path path
|
145
|
-
* @return string
|
146
|
-
* @author Troex Nevelin
|
147
|
-
**/
|
148
|
-
protected function _normpath($path) {
|
149
|
-
if (empty($path)) {
|
150
|
-
return '.';
|
151
|
-
}
|
152
|
-
|
153
|
-
if (strpos($path, '/') === 0) {
|
154
|
-
$initial_slashes = true;
|
155
|
-
} else {
|
156
|
-
$initial_slashes = false;
|
157
|
-
}
|
158
|
-
|
159
|
-
if (($initial_slashes)
|
160
|
-
&& (strpos($path, '//') === 0)
|
161
|
-
&& (strpos($path, '///') === false)) {
|
162
|
-
$initial_slashes = 2;
|
163
|
-
}
|
164
|
-
|
165
|
-
$initial_slashes = (int) $initial_slashes;
|
166
|
-
|
167
|
-
$comps = explode('/', $path);
|
168
|
-
$new_comps = array();
|
169
|
-
foreach ($comps as $comp) {
|
170
|
-
if (in_array($comp, array('', '.'))) {
|
171
|
-
continue;
|
172
|
-
}
|
173
|
-
|
174
|
-
if (($comp != '..')
|
175
|
-
|| (!$initial_slashes && !$new_comps)
|
176
|
-
|| ($new_comps && (end($new_comps) == '..'))) {
|
177
|
-
array_push($new_comps, $comp);
|
178
|
-
} elseif ($new_comps) {
|
179
|
-
array_pop($new_comps);
|
180
|
-
}
|
181
|
-
}
|
182
|
-
$comps = $new_comps;
|
183
|
-
$path = implode('/', $comps);
|
184
|
-
if ($initial_slashes) {
|
185
|
-
$path = str_repeat('/', $initial_slashes) . $path;
|
186
|
-
}
|
187
|
-
|
188
|
-
return $path ? $path : '.';
|
189
|
-
}
|
190
|
-
|
191
|
-
/**
|
192
|
-
* Return file path related to root dir
|
193
|
-
*
|
194
|
-
* @param string $path file path
|
195
|
-
* @return string
|
196
|
-
* @author Dmitry (dio) Levashov
|
197
|
-
**/
|
198
|
-
protected function _relpath($path) {
|
199
|
-
return $path == $this->root ? '' : substr($path, strlen($this->root)+1);
|
200
|
-
}
|
201
|
-
|
202
|
-
/**
|
203
|
-
* Convert path related to root dir into real path
|
204
|
-
*
|
205
|
-
* @param string $path file path
|
206
|
-
* @return string
|
207
|
-
* @author Dmitry (dio) Levashov
|
208
|
-
**/
|
209
|
-
protected function _abspath($path) {
|
210
|
-
return $path == DIRECTORY_SEPARATOR ? $this->root : $this->root.DIRECTORY_SEPARATOR.$path;
|
211
|
-
}
|
212
|
-
|
213
|
-
/**
|
214
|
-
* Return fake path started from root dir
|
215
|
-
*
|
216
|
-
* @param string $path file path
|
217
|
-
* @return string
|
218
|
-
* @author Dmitry (dio) Levashov
|
219
|
-
**/
|
220
|
-
protected function _path($path) {
|
221
|
-
return $this->rootName.($path == $this->root ? '' : $this->separator.$this->_relpath($path));
|
222
|
-
}
|
223
|
-
|
224
|
-
/**
|
225
|
-
* Return true if $path is children of $parent
|
226
|
-
*
|
227
|
-
* @param string $path path to check
|
228
|
-
* @param string $parent parent path
|
229
|
-
* @return bool
|
230
|
-
* @author Dmitry (dio) Levashov
|
231
|
-
**/
|
232
|
-
protected function _inpath($path, $parent) {
|
233
|
-
return $path == $parent || strpos($path, $parent.DIRECTORY_SEPARATOR) === 0;
|
234
|
-
}
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
/***************** file stat ********************/
|
239
|
-
|
240
|
-
/**
|
241
|
-
* Return stat for given path.
|
242
|
-
* Stat contains following fields:
|
243
|
-
* - (int) size file size in b. required
|
244
|
-
* - (int) ts file modification time in unix time. required
|
245
|
-
* - (string) mime mimetype. required for folders, others - optionally
|
246
|
-
* - (bool) read read permissions. required
|
247
|
-
* - (bool) write write permissions. required
|
248
|
-
* - (bool) locked is object locked. optionally
|
249
|
-
* - (bool) hidden is object hidden. optionally
|
250
|
-
* - (string) alias for symlinks - link target path relative to root path. optionally
|
251
|
-
* - (string) target for symlinks - link target path. optionally
|
252
|
-
*
|
253
|
-
* If file does not exists - returns empty array or false.
|
254
|
-
*
|
255
|
-
* @param string $path file path
|
256
|
-
* @return array|false
|
257
|
-
* @author Dmitry (dio) Levashov
|
258
|
-
**/
|
259
|
-
protected function _stat($path) {
|
260
|
-
$stat = array();
|
261
|
-
|
262
|
-
if (!file_exists($path)) {
|
263
|
-
return $stat;
|
264
|
-
}
|
265
|
-
|
266
|
-
if ($path != $this->root && is_link($path)) {
|
267
|
-
if (($target = $this->readlink($path)) == false
|
268
|
-
|| $target == $path) {
|
269
|
-
$stat['mime'] = 'symlink-broken';
|
270
|
-
$stat['read'] = false;
|
271
|
-
$stat['write'] = false;
|
272
|
-
$stat['size'] = 0;
|
273
|
-
return $stat;
|
274
|
-
}
|
275
|
-
$stat['alias'] = $this->_path($target);
|
276
|
-
$stat['target'] = $target;
|
277
|
-
$path = $target;
|
278
|
-
$lstat = lstat($path);
|
279
|
-
$size = $lstat['size'];
|
280
|
-
} else {
|
281
|
-
$size = @filesize($path);
|
282
|
-
}
|
283
|
-
|
284
|
-
$dir = is_dir($path);
|
285
|
-
|
286
|
-
$stat['mime'] = $dir ? 'directory' : $this->mimetype($path);
|
287
|
-
$stat['ts'] = filemtime($path);
|
288
|
-
$stat['read'] = is_readable($path);
|
289
|
-
$stat['write'] = is_writable($path);
|
290
|
-
if ($stat['read']) {
|
291
|
-
$stat['size'] = $dir ? 0 : $size;
|
292
|
-
}
|
293
|
-
|
294
|
-
return $stat;
|
295
|
-
}
|
296
|
-
|
297
|
-
|
298
|
-
/**
|
299
|
-
* Return true if path is dir and has at least one childs directory
|
300
|
-
*
|
301
|
-
* @param string $path dir path
|
302
|
-
* @return bool
|
303
|
-
* @author Dmitry (dio) Levashov
|
304
|
-
**/
|
305
|
-
protected function _subdirs($path) {
|
306
|
-
|
307
|
-
if (($dir = dir($path))) {
|
308
|
-
$dir = dir($path);
|
309
|
-
while (($entry = $dir->read()) !== false) {
|
310
|
-
$p = $dir->path.DIRECTORY_SEPARATOR.$entry;
|
311
|
-
if ($entry != '.' && $entry != '..' && is_dir($p) && !$this->attr($p, 'hidden')) {
|
312
|
-
$dir->close();
|
313
|
-
return true;
|
314
|
-
}
|
315
|
-
}
|
316
|
-
$dir->close();
|
317
|
-
}
|
318
|
-
return false;
|
319
|
-
}
|
320
|
-
|
321
|
-
/**
|
322
|
-
* Return object width and height
|
323
|
-
* Ususaly used for images, but can be realize for video etc...
|
324
|
-
*
|
325
|
-
* @param string $path file path
|
326
|
-
* @param string $mime file mime type
|
327
|
-
* @return string
|
328
|
-
* @author Dmitry (dio) Levashov
|
329
|
-
**/
|
330
|
-
protected function _dimensions($path, $mime) {
|
331
|
-
clearstatcache();
|
332
|
-
return strpos($mime, 'image') === 0 && ($s = @getimagesize($path)) !== false
|
333
|
-
? $s[0].'x'.$s[1]
|
334
|
-
: false;
|
335
|
-
}
|
336
|
-
/******************** file/dir content *********************/
|
337
|
-
|
338
|
-
/**
|
339
|
-
* Return symlink target file
|
340
|
-
*
|
341
|
-
* @param string $path link path
|
342
|
-
* @return string
|
343
|
-
* @author Dmitry (dio) Levashov
|
344
|
-
**/
|
345
|
-
protected function readlink($path) {
|
346
|
-
if (!($target = @readlink($path))) {
|
347
|
-
return false;
|
348
|
-
}
|
349
|
-
|
350
|
-
if (substr($target, 0, 1) != DIRECTORY_SEPARATOR) {
|
351
|
-
$target = dirname($path).DIRECTORY_SEPARATOR.$target;
|
352
|
-
}
|
353
|
-
|
354
|
-
$atarget = realpath($target);
|
355
|
-
|
356
|
-
if (!$atarget) {
|
357
|
-
return false;
|
358
|
-
}
|
359
|
-
|
360
|
-
$root = $this->root;
|
361
|
-
$aroot = $this->aroot;
|
362
|
-
|
363
|
-
if ($this->_inpath($atarget, $this->aroot)) {
|
364
|
-
return $this->_normpath($this->root.DIRECTORY_SEPARATOR.substr($atarget, strlen($this->aroot)+1));
|
365
|
-
}
|
366
|
-
|
367
|
-
return false;
|
368
|
-
}
|
369
|
-
|
370
|
-
/**
|
371
|
-
* Return files list in directory.
|
372
|
-
*
|
373
|
-
* @param string $path dir path
|
374
|
-
* @return array
|
375
|
-
* @author Dmitry (dio) Levashov
|
376
|
-
**/
|
377
|
-
protected function _scandir($path) {
|
378
|
-
$files = array();
|
379
|
-
|
380
|
-
foreach (scandir($path) as $name) {
|
381
|
-
if ($name != '.' && $name != '..') {
|
382
|
-
$files[] = $path.DIRECTORY_SEPARATOR.$name;
|
383
|
-
}
|
384
|
-
}
|
385
|
-
return $files;
|
386
|
-
}
|
387
|
-
|
388
|
-
/**
|
389
|
-
* Open file and return file pointer
|
390
|
-
*
|
391
|
-
* @param string $path file path
|
392
|
-
* @param bool $write open file for writing
|
393
|
-
* @return resource|false
|
394
|
-
* @author Dmitry (dio) Levashov
|
395
|
-
**/
|
396
|
-
protected function _fopen($path, $mode='rb') {
|
397
|
-
return @fopen($path, 'r');
|
398
|
-
}
|
399
|
-
|
400
|
-
/**
|
401
|
-
* Close opened file
|
402
|
-
*
|
403
|
-
* @param resource $fp file pointer
|
404
|
-
* @return bool
|
405
|
-
* @author Dmitry (dio) Levashov
|
406
|
-
**/
|
407
|
-
protected function _fclose($fp, $path='') {
|
408
|
-
return @fclose($fp);
|
409
|
-
}
|
410
|
-
|
411
|
-
/******************** file/dir manipulations *************************/
|
412
|
-
|
413
|
-
/**
|
414
|
-
* Create dir and return created dir path or false on failed
|
415
|
-
*
|
416
|
-
* @param string $path parent dir path
|
417
|
-
* @param string $name new directory name
|
418
|
-
* @return string|bool
|
419
|
-
* @author Dmitry (dio) Levashov
|
420
|
-
**/
|
421
|
-
protected function _mkdir($path, $name) {
|
422
|
-
$path = $path.DIRECTORY_SEPARATOR.$name;
|
423
|
-
|
424
|
-
if (@mkdir($path)) {
|
425
|
-
@chmod($path, $this->options['dirMode']);
|
426
|
-
return $path;
|
427
|
-
}
|
428
|
-
|
429
|
-
return false;
|
430
|
-
}
|
431
|
-
|
432
|
-
/**
|
433
|
-
* Create file and return it's path or false on failed
|
434
|
-
*
|
435
|
-
* @param string $path parent dir path
|
436
|
-
* @param string $name new file name
|
437
|
-
* @return string|bool
|
438
|
-
* @author Dmitry (dio) Levashov
|
439
|
-
**/
|
440
|
-
protected function _mkfile($path, $name) {
|
441
|
-
$path = $path.DIRECTORY_SEPARATOR.$name;
|
442
|
-
|
443
|
-
if (($fp = @fopen($path, 'w'))) {
|
444
|
-
@fclose($fp);
|
445
|
-
@chmod($path, $this->options['fileMode']);
|
446
|
-
return $path;
|
447
|
-
}
|
448
|
-
return false;
|
449
|
-
}
|
450
|
-
|
451
|
-
/**
|
452
|
-
* Create symlink
|
453
|
-
*
|
454
|
-
* @param string $source file to link to
|
455
|
-
* @param string $targetDir folder to create link in
|
456
|
-
* @param string $name symlink name
|
457
|
-
* @return bool
|
458
|
-
* @author Dmitry (dio) Levashov
|
459
|
-
**/
|
460
|
-
protected function _symlink($source, $targetDir, $name) {
|
461
|
-
return @symlink($source, $targetDir.DIRECTORY_SEPARATOR.$name);
|
462
|
-
}
|
463
|
-
|
464
|
-
/**
|
465
|
-
* Copy file into another file
|
466
|
-
*
|
467
|
-
* @param string $source source file path
|
468
|
-
* @param string $targetDir target directory path
|
469
|
-
* @param string $name new file name
|
470
|
-
* @return bool
|
471
|
-
* @author Dmitry (dio) Levashov
|
472
|
-
**/
|
473
|
-
protected function _copy($source, $targetDir, $name) {
|
474
|
-
return copy($source, $targetDir.DIRECTORY_SEPARATOR.$name);
|
475
|
-
}
|
476
|
-
|
477
|
-
/**
|
478
|
-
* Move file into another parent dir.
|
479
|
-
* Return new file path or false.
|
480
|
-
*
|
481
|
-
* @param string $source source file path
|
482
|
-
* @param string $target target dir path
|
483
|
-
* @param string $name file name
|
484
|
-
* @return string|bool
|
485
|
-
* @author Dmitry (dio) Levashov
|
486
|
-
**/
|
487
|
-
protected function _move($source, $targetDir, $name) {
|
488
|
-
$target = $targetDir.DIRECTORY_SEPARATOR.$name;
|
489
|
-
return @rename($source, $target) ? $target : false;
|
490
|
-
}
|
491
|
-
|
492
|
-
/**
|
493
|
-
* Remove file
|
494
|
-
*
|
495
|
-
* @param string $path file path
|
496
|
-
* @return bool
|
497
|
-
* @author Dmitry (dio) Levashov
|
498
|
-
**/
|
499
|
-
protected function _unlink($path) {
|
500
|
-
return @unlink($path);
|
501
|
-
}
|
502
|
-
|
503
|
-
/**
|
504
|
-
* Remove dir
|
505
|
-
*
|
506
|
-
* @param string $path dir path
|
507
|
-
* @return bool
|
508
|
-
* @author Dmitry (dio) Levashov
|
509
|
-
**/
|
510
|
-
protected function _rmdir($path) {
|
511
|
-
return @rmdir($path);
|
512
|
-
}
|
513
|
-
|
514
|
-
/**
|
515
|
-
* Create new file and write into it from file pointer.
|
516
|
-
* Return new file path or false on error.
|
517
|
-
*
|
518
|
-
* @param resource $fp file pointer
|
519
|
-
* @param string $dir target dir path
|
520
|
-
* @param string $name file name
|
521
|
-
* @return bool|string
|
522
|
-
* @author Dmitry (dio) Levashov
|
523
|
-
**/
|
524
|
-
protected function _save($fp, $dir, $name, $mime, $w, $h) {
|
525
|
-
$path = $dir.DIRECTORY_SEPARATOR.$name;
|
526
|
-
|
527
|
-
if (!($target = @fopen($path, 'wb'))) {
|
528
|
-
return false;
|
529
|
-
}
|
530
|
-
|
531
|
-
while (!feof($fp)) {
|
532
|
-
fwrite($target, fread($fp, 8192));
|
533
|
-
}
|
534
|
-
fclose($target);
|
535
|
-
@chmod($path, $this->options['fileMode']);
|
536
|
-
clearstatcache();
|
537
|
-
return $path;
|
538
|
-
}
|
539
|
-
|
540
|
-
/**
|
541
|
-
* Get file contents
|
542
|
-
*
|
543
|
-
* @param string $path file path
|
544
|
-
* @return string|false
|
545
|
-
* @author Dmitry (dio) Levashov
|
546
|
-
**/
|
547
|
-
protected function _getContents($path) {
|
548
|
-
return file_get_contents($path);
|
549
|
-
}
|
550
|
-
|
551
|
-
/**
|
552
|
-
* Write a string to a file
|
553
|
-
*
|
554
|
-
* @param string $path file path
|
555
|
-
* @param string $content new file content
|
556
|
-
* @return bool
|
557
|
-
* @author Dmitry (dio) Levashov
|
558
|
-
**/
|
559
|
-
protected function _filePutContents($path, $content) {
|
560
|
-
if (@file_put_contents($path, $content, LOCK_EX) !== false) {
|
561
|
-
clearstatcache();
|
562
|
-
return true;
|
563
|
-
}
|
564
|
-
return false;
|
565
|
-
}
|
566
|
-
|
567
|
-
/**
|
568
|
-
* Detect available archivers
|
569
|
-
*
|
570
|
-
* @return void
|
571
|
-
**/
|
572
|
-
protected function _checkArchivers() {
|
573
|
-
if (!function_exists('exec')) {
|
574
|
-
$this->options['archivers'] = $this->options['archive'] = array();
|
575
|
-
return;
|
576
|
-
}
|
577
|
-
$arcs = array(
|
578
|
-
'create' => array(),
|
579
|
-
'extract' => array()
|
580
|
-
);
|
581
|
-
|
582
|
-
//exec('tar --version', $o, $ctar);
|
583
|
-
$this->procExec('tar --version', $o, $ctar);
|
584
|
-
|
585
|
-
if ($ctar == 0) {
|
586
|
-
$arcs['create']['application/x-tar'] = array('cmd' => 'tar', 'argc' => '-cf', 'ext' => 'tar');
|
587
|
-
$arcs['extract']['application/x-tar'] = array('cmd' => 'tar', 'argc' => '-xf', 'ext' => 'tar');
|
588
|
-
//$test = exec('gzip --version', $o, $c);
|
589
|
-
unset($o);
|
590
|
-
$test = $this->procExec('gzip --version', $o, $c);
|
591
|
-
|
592
|
-
if ($c == 0) {
|
593
|
-
$arcs['create']['application/x-gzip'] = array('cmd' => 'tar', 'argc' => '-czf', 'ext' => 'tgz');
|
594
|
-
$arcs['extract']['application/x-gzip'] = array('cmd' => 'tar', 'argc' => '-xzf', 'ext' => 'tgz');
|
595
|
-
}
|
596
|
-
unset($o);
|
597
|
-
//$test = exec('bzip2 --version', $o, $c);
|
598
|
-
$test = $this->procExec('bzip2 --version', $o, $c);
|
599
|
-
if ($c == 0) {
|
600
|
-
$arcs['create']['application/x-bzip2'] = array('cmd' => 'tar', 'argc' => '-cjf', 'ext' => 'tbz');
|
601
|
-
$arcs['extract']['application/x-bzip2'] = array('cmd' => 'tar', 'argc' => '-xjf', 'ext' => 'tbz');
|
602
|
-
}
|
603
|
-
}
|
604
|
-
unset($o);
|
605
|
-
//exec('zip --version', $o, $c);
|
606
|
-
$this->procExec('zip -v', $o, $c);
|
607
|
-
if ($c == 0) {
|
608
|
-
$arcs['create']['application/zip'] = array('cmd' => 'zip', 'argc' => '-r9', 'ext' => 'zip');
|
609
|
-
}
|
610
|
-
unset($o);
|
611
|
-
$this->procExec('unzip --help', $o, $c);
|
612
|
-
if ($c == 0) {
|
613
|
-
$arcs['extract']['application/zip'] = array('cmd' => 'unzip', 'argc' => '', 'ext' => 'zip');
|
614
|
-
}
|
615
|
-
unset($o);
|
616
|
-
//exec('rar --version', $o, $c);
|
617
|
-
$this->procExec('rar --version', $o, $c);
|
618
|
-
if ($c == 0 || $c == 7) {
|
619
|
-
$arcs['create']['application/x-rar'] = array('cmd' => 'rar', 'argc' => 'a -inul', 'ext' => 'rar');
|
620
|
-
$arcs['extract']['application/x-rar'] = array('cmd' => 'rar', 'argc' => 'x -y', 'ext' => 'rar');
|
621
|
-
} else {
|
622
|
-
unset($o);
|
623
|
-
//$test = exec('unrar', $o, $c);
|
624
|
-
$test = $this->procExec('unrar', $o, $c);
|
625
|
-
if ($c==0 || $c == 7) {
|
626
|
-
$arcs['extract']['application/x-rar'] = array('cmd' => 'unrar', 'argc' => 'x -y', 'ext' => 'rar');
|
627
|
-
}
|
628
|
-
}
|
629
|
-
unset($o);
|
630
|
-
//exec('7za --help', $o, $c);
|
631
|
-
$this->procExec('7za --help', $o, $c);
|
632
|
-
if ($c == 0) {
|
633
|
-
$arcs['create']['application/x-7z-compressed'] = array('cmd' => '7za', 'argc' => 'a', 'ext' => '7z');
|
634
|
-
$arcs['extract']['application/x-7z-compressed'] = array('cmd' => '7za', 'argc' => 'e -y', 'ext' => '7z');
|
635
|
-
|
636
|
-
if (empty($arcs['create']['application/x-gzip'])) {
|
637
|
-
$arcs['create']['application/x-gzip'] = array('cmd' => '7za', 'argc' => 'a -tgzip', 'ext' => 'tar.gz');
|
638
|
-
}
|
639
|
-
if (empty($arcs['extract']['application/x-gzip'])) {
|
640
|
-
$arcs['extract']['application/x-gzip'] = array('cmd' => '7za', 'argc' => 'e -tgzip -y', 'ext' => 'tar.gz');
|
641
|
-
}
|
642
|
-
if (empty($arcs['create']['application/x-bzip2'])) {
|
643
|
-
$arcs['create']['application/x-bzip2'] = array('cmd' => '7za', 'argc' => 'a -tbzip2', 'ext' => 'tar.bz');
|
644
|
-
}
|
645
|
-
if (empty($arcs['extract']['application/x-bzip2'])) {
|
646
|
-
$arcs['extract']['application/x-bzip2'] = array('cmd' => '7za', 'argc' => 'a -tbzip2 -y', 'ext' => 'tar.bz');
|
647
|
-
}
|
648
|
-
if (empty($arcs['create']['application/zip'])) {
|
649
|
-
$arcs['create']['application/zip'] = array('cmd' => '7za', 'argc' => 'a -tzip -l', 'ext' => 'zip');
|
650
|
-
}
|
651
|
-
if (empty($arcs['extract']['application/zip'])) {
|
652
|
-
$arcs['extract']['application/zip'] = array('cmd' => '7za', 'argc' => 'e -tzip -y', 'ext' => 'zip');
|
653
|
-
}
|
654
|
-
if (empty($arcs['create']['application/x-tar'])) {
|
655
|
-
$arcs['create']['application/x-tar'] = array('cmd' => '7za', 'argc' => 'a -ttar -l', 'ext' => 'tar');
|
656
|
-
}
|
657
|
-
if (empty($arcs['extract']['application/x-tar'])) {
|
658
|
-
$arcs['extract']['application/x-tar'] = array('cmd' => '7za', 'argc' => 'e -ttar -y', 'ext' => 'tar');
|
659
|
-
}
|
660
|
-
}
|
661
|
-
|
662
|
-
$this->archivers = $arcs;
|
663
|
-
}
|
664
|
-
|
665
|
-
/**
|
666
|
-
* Unpack archive
|
667
|
-
*
|
668
|
-
* @param string $path archive path
|
669
|
-
* @param array $arc archiver command and arguments (same as in $this->archivers)
|
670
|
-
* @return void
|
671
|
-
* @author Dmitry (dio) Levashov
|
672
|
-
* @author Alexey Sukhotin
|
673
|
-
**/
|
674
|
-
protected function _unpack($path, $arc) {
|
675
|
-
$cwd = getcwd();
|
676
|
-
$dir = $this->_dirname($path);
|
677
|
-
chdir($dir);
|
678
|
-
$cmd = $arc['cmd'].' '.$arc['argc'].' '.escapeshellarg($this->_basename($path));
|
679
|
-
$this->procExec($cmd, $o, $c);
|
680
|
-
chdir($cwd);
|
681
|
-
}
|
682
|
-
|
683
|
-
/**
|
684
|
-
* Recursive symlinks search
|
685
|
-
*
|
686
|
-
* @param string $path file/dir path
|
687
|
-
* @return bool
|
688
|
-
* @author Dmitry (dio) Levashov
|
689
|
-
**/
|
690
|
-
protected function _findSymlinks($path) {
|
691
|
-
if (is_link($path)) {
|
692
|
-
return true;
|
693
|
-
}
|
694
|
-
|
695
|
-
if (is_dir($path)) {
|
696
|
-
foreach (scandir($path) as $name) {
|
697
|
-
if ($name != '.' && $name != '..') {
|
698
|
-
$p = $path.DIRECTORY_SEPARATOR.$name;
|
699
|
-
if (is_link($p)) {
|
700
|
-
return true;
|
701
|
-
}
|
702
|
-
if (is_dir($p) && $this->_findSymlinks($p)) {
|
703
|
-
return true;
|
704
|
-
} elseif (is_file($p)) {
|
705
|
-
$this->archiveSize += filesize($p);
|
706
|
-
}
|
707
|
-
}
|
708
|
-
}
|
709
|
-
} else {
|
710
|
-
$this->archiveSize += filesize($path);
|
711
|
-
}
|
712
|
-
|
713
|
-
return false;
|
714
|
-
}
|
715
|
-
|
716
|
-
/**
|
717
|
-
* Extract files from archive
|
718
|
-
*
|
719
|
-
* @param string $path archive path
|
720
|
-
* @param array $arc archiver command and arguments (same as in $this->archivers)
|
721
|
-
* @return true
|
722
|
-
* @author Dmitry (dio) Levashov,
|
723
|
-
* @author Alexey Sukhotin
|
724
|
-
**/
|
725
|
-
protected function _extract($path, $arc) {
|
726
|
-
|
727
|
-
if ($this->quarantine) {
|
728
|
-
$dir = $this->quarantine.DIRECTORY_SEPARATOR.str_replace(' ', '_', microtime()).basename($path);
|
729
|
-
$archive = $dir.DIRECTORY_SEPARATOR.basename($path);
|
730
|
-
|
731
|
-
if (!@mkdir($dir)) {
|
732
|
-
return false;
|
733
|
-
}
|
734
|
-
|
735
|
-
chmod($dir, 0777);
|
736
|
-
|
737
|
-
// copy in quarantine
|
738
|
-
if (!copy($path, $archive)) {
|
739
|
-
return false;
|
740
|
-
}
|
741
|
-
|
742
|
-
// extract in quarantine
|
743
|
-
$this->_unpack($archive, $arc);
|
744
|
-
@unlink($archive);
|
745
|
-
|
746
|
-
// get files list
|
747
|
-
$ls = array();
|
748
|
-
foreach (scandir($dir) as $i => $name) {
|
749
|
-
if ($name != '.' && $name != '..') {
|
750
|
-
$ls[] = $name;
|
751
|
-
}
|
752
|
-
}
|
753
|
-
|
754
|
-
// no files - extract error ?
|
755
|
-
if (empty($ls)) {
|
756
|
-
return false;
|
757
|
-
}
|
758
|
-
|
759
|
-
$this->archiveSize = 0;
|
760
|
-
|
761
|
-
// find symlinks
|
762
|
-
$symlinks = $this->_findSymlinks($dir);
|
763
|
-
// remove arc copy
|
764
|
-
$this->remove($dir);
|
765
|
-
|
766
|
-
if ($symlinks) {
|
767
|
-
return $this->setError(elFinder::ERROR_ARC_SYMLINKS);
|
768
|
-
}
|
769
|
-
|
770
|
-
// check max files size
|
771
|
-
if ($this->options['maxArcFilesSize'] > 0 && $this->options['maxArcFilesSize'] < $this->archiveSize) {
|
772
|
-
return $this->setError(elFinder::ERROR_ARC_MAXSIZE);
|
773
|
-
}
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
// archive contains one item - extract in archive dir
|
778
|
-
if (count($ls) == 1) {
|
779
|
-
$this->_unpack($path, $arc);
|
780
|
-
$result = dirname($path).DIRECTORY_SEPARATOR.$ls[0];
|
781
|
-
|
782
|
-
|
783
|
-
} else {
|
784
|
-
// for several files - create new directory
|
785
|
-
// create unique name for directory
|
786
|
-
$name = basename($path);
|
787
|
-
if (preg_match('/\.((tar\.(gz|bz|bz2|z|lzo))|cpio\.gz|ps\.gz|xcf\.(gz|bz2)|[a-z0-9]{1,4})$/i', $name, $m)) {
|
788
|
-
$name = substr($name, 0, strlen($name)-strlen($m[0]));
|
789
|
-
}
|
790
|
-
$test = dirname($path).DIRECTORY_SEPARATOR.$name;
|
791
|
-
if (file_exists($test) || is_link($test)) {
|
792
|
-
$name = $this->uniqueName(dirname($path), $name, '-', false);
|
793
|
-
}
|
794
|
-
|
795
|
-
$result = dirname($path).DIRECTORY_SEPARATOR.$name;
|
796
|
-
$archive = $result.DIRECTORY_SEPARATOR.basename($path);
|
797
|
-
|
798
|
-
if (!$this->_mkdir(dirname($path), $name) || !copy($path, $archive)) {
|
799
|
-
return false;
|
800
|
-
}
|
801
|
-
|
802
|
-
$this->_unpack($archive, $arc);
|
803
|
-
@unlink($archive);
|
804
|
-
}
|
805
|
-
|
806
|
-
return file_exists($result) ? $result : false;
|
807
|
-
}
|
808
|
-
}
|
809
|
-
|
810
|
-
/**
|
811
|
-
* Create archive and return its path
|
812
|
-
*
|
813
|
-
* @param string $dir target dir
|
814
|
-
* @param array $files files names list
|
815
|
-
* @param string $name archive name
|
816
|
-
* @param array $arc archiver options
|
817
|
-
* @return string|bool
|
818
|
-
* @author Dmitry (dio) Levashov,
|
819
|
-
* @author Alexey Sukhotin
|
820
|
-
**/
|
821
|
-
protected function _archive($dir, $files, $name, $arc) {
|
822
|
-
$cwd = getcwd();
|
823
|
-
chdir($dir);
|
824
|
-
|
825
|
-
$files = array_map('escapeshellarg', $files);
|
826
|
-
|
827
|
-
$cmd = $arc['cmd'].' '.$arc['argc'].' '.escapeshellarg($name).' '.implode(' ', $files);
|
828
|
-
$this->procExec($cmd, $o, $c);
|
829
|
-
chdir($cwd);
|
830
|
-
|
831
|
-
$path = $dir.DIRECTORY_SEPARATOR.$name;
|
832
|
-
return file_exists($path) ? $path : false;
|
833
|
-
}
|
834
|
-
|
835
|
-
} // END class
|