SILENT KILLERPanel

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 ]

Files and Folders in: /home/codekrsu//escapematrixonline.com/wp-content/plugins/wp-file-manager/lib/js/commands

NameTypeSizeLast ModifiedActions
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.

Reading File: /home/codekrsu//escapematrixonline.com/wp-content/plugins/wp-file-manager/lib/js/commands/search.js

/**
 * @class  elFinder command "search"
 * Find files
 *
 * @author Dmitry (dio) Levashov
 **/
elFinder.prototype.commands.search = function() {
	"use strict";
	this.title          = 'Find files';
	this.options        = {ui : 'searchbutton'};
	this.alwaysEnabled  = true;
	this.updateOnSelect = false;
	
	/**
	 * Return command status.
	 * Search does not support old api.
	 *
	 * @return Number
	 **/
	this.getstate = function() {
		return 0;
	};
	
	/**
	 * Send search request to backend.
	 *
	 * @param  String  search string
	 * @return jQuery.Deferred
	 **/
	this.exec = function(q, target, mime, type) {
		var fm = this.fm,
			reqDef = [],
			sType = type || '',
			onlyMimes = fm.options.onlyMimes,
			phash, targetVolids = [],
			setType = function(data) {
				if (sType && sType !== 'SearchName' && sType !== 'SearchMime') {
					data.type = sType;
				}
				return data;
			},
			rootCnt;
		
		if (typeof q == 'string' && q) {
			if (typeof target == 'object') {
				mime = target.mime || '';
				target = target.target || '';
			}
			target = target? target : '';
			if (mime) {
				mime = jQuery.trim(mime).replace(',', ' ').split(' ');
				if (onlyMimes.length) {
					mime = jQuery.map(mime, function(m){ 
						m = jQuery.trim(m);
						return m && (jQuery.inArray(m, onlyMimes) !== -1
									|| jQuery.grep(onlyMimes, function(om) { return m.indexOf(om) === 0? true : false; }).length
									)? m : null;
					});
				}
			} else {
				mime = [].concat(onlyMimes);
			}

			fm.trigger('searchstart', setType({query : q, target : target, mimes : mime}));
			
			if (! onlyMimes.length || mime.length) {
				if (target === '' && fm.api >= 2.1) {
					rootCnt = Object.keys(fm.roots).length;
					jQuery.each(fm.roots, function(id, hash) {
						reqDef.push(fm.request({
							data   : setType({cmd : 'search', q : q, target : hash, mimes : mime}),
							notify : {type : 'search', cnt : 1, hideCnt : (rootCnt > 1? false : true)},
							cancel : true,
							preventDone : true
						}));
					});
				} else {
					reqDef.push(fm.request({
						data   : setType({cmd : 'search', q : q, target : target, mimes : mime}),
						notify : {type : 'search', cnt : 1, hideCnt : true},
						cancel : true,
						preventDone : true
					}));
					if (target !== '' && fm.api >= 2.1 && Object.keys(fm.leafRoots).length) {
						jQuery.each(fm.leafRoots, function(hash, roots) {
							phash = hash;
							while(phash) {
								if (target === phash) {
									jQuery.each(roots, function() {
										var f = fm.file(this);
										f && f.volumeid && targetVolids.push(f.volumeid);
										reqDef.push(fm.request({
											data   : setType({cmd : 'search', q : q, target : this, mimes : mime}),
											notify : {type : 'search', cnt : 1, hideCnt : false},
											cancel : true,
											preventDone : true
										}));
									});
								}
								phash = (fm.file(phash) || {}).phash;
							}
						});
					}
				}
			} else {
				reqDef = [jQuery.Deferred().resolve({files: []})];
			}
			
			fm.searchStatus.mixed = (reqDef.length > 1)? targetVolids : false;
			
			return jQuery.when.apply($, reqDef).done(function(data) {
				var argLen = arguments.length,
					i;
				
				data.warning && fm.error(data.warning);
				
				if (argLen > 1) {
					data.files = (data.files || []);
					for(i = 1; i < argLen; i++) {
						arguments[i].warning && fm.error(arguments[i].warning);
						
						if (arguments[i].files) {
							data.files.push.apply(data.files, arguments[i].files);
						}
					}
				}
				
				// because "preventDone : true" so update files cache
				data.files && data.files.length && fm.cache(data.files);
				
				fm.lazy(function() {
					fm.trigger('search', data);
				}).then(function() {
					// fire event with command name + 'done'
					return fm.lazy(function() {
						fm.trigger('searchdone');
					});
				}).then(function() {
					// force update content
					data.sync && fm.sync();
				});
			});
		}
		fm.getUI('toolbar').find('.'+fm.res('class', 'searchbtn')+' :text').trigger('focus');
		return jQuery.Deferred().reject();
	};

};

SILENT KILLER Tool