Current Path: > home > codekrsu > > escapematrixonline.com > wp-content > plugins > wp-file-manager > > lib > > js > commands
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
archive.js | File | 2530 bytes | December 28 2021 14:26:10. | |
back.js | File | 512 bytes | May 14 2020 14:55:48. | |
chmod.js | File | 9591 bytes | December 28 2021 14:26:10. | |
colwidth.js | File | 480 bytes | May 25 2020 10:48:08. | |
copy.js | File | 986 bytes | December 28 2021 14:26:10. | |
cut.js | File | 1146 bytes | December 28 2021 14:26:10. | |
download.js | File | 17005 bytes | December 28 2021 14:26:10. | |
duplicate.js | File | 1392 bytes | December 28 2021 14:26:10. | |
edit.js | File | 35310 bytes | April 19 2022 14:33:36. | |
empty.js | File | 3395 bytes | December 28 2021 14:26:10. | |
extract.js | File | 5301 bytes | December 28 2021 14:26:10. | |
forward.js | File | 509 bytes | May 14 2020 14:55:48. | |
fullscreen.js | File | 1074 bytes | September 01 2020 13:09:26. | |
getfile.js | File | 4163 bytes | December 28 2021 14:26:10. | |
help.js | File | 14547 bytes | December 28 2021 14:26:10. | |
hidden.js | File | 276 bytes | May 14 2020 14:55:48. | |
hide.js | File | 4365 bytes | May 25 2020 10:48:08. | |
home.js | File | 528 bytes | May 14 2020 14:55:48. | |
info.js | File | 13447 bytes | April 19 2022 14:33:36. | |
mkdir.js | File | 2574 bytes | December 28 2021 14:26:10. | |
mkfile.js | File | 1675 bytes | April 19 2022 14:33:36. | |
netmount.js | File | 10681 bytes | September 01 2020 13:09:26. | |
open.js | File | 6947 bytes | December 28 2021 14:26:10. | |
opendir.js | File | 886 bytes | May 25 2020 10:48:08. | |
opennew.js | File | 1242 bytes | May 25 2020 10:48:08. | |
paste.js | File | 10411 bytes | May 25 2020 10:48:08. | |
places.js | File | 773 bytes | December 28 2021 14:26:10. | |
preference.js | File | 21880 bytes | April 19 2022 14:33:36. | |
quicklook.js | File | 24445 bytes | May 25 2020 10:48:08. | |
quicklook.plugins.js | File | 59912 bytes | February 08 2021 12:11:18. | |
reload.js | File | 1904 bytes | May 25 2020 10:48:08. | |
rename.js | File | 16299 bytes | May 25 2020 10:48:08. | |
resize.js | File | 53421 bytes | December 28 2021 14:26:10. | |
restore.js | File | 7625 bytes | May 25 2020 10:48:08. | |
rm.js | File | 14762 bytes | December 28 2021 14:26:10. | |
search.js | File | 4110 bytes | May 25 2020 10:48:08. | |
selectall.js | File | 606 bytes | May 25 2020 10:48:08. | |
selectinvert.js | File | 471 bytes | May 25 2020 10:48:08. | |
selectnone.js | File | 530 bytes | May 25 2020 10:48:08. | |
sort.js | File | 4421 bytes | May 25 2020 10:48:08. | |
undo.js | File | 3703 bytes | May 25 2020 10:48:08. | |
up.js | File | 710 bytes | May 25 2020 10:48:08. | |
upload.js | File | 12696 bytes | December 28 2021 14:26:10. | |
view.js | File | 2868 bytes | May 25 2020 10:48:08. |
/** * @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
SILENT KILLER Tool