Mr.Combet Webshell
Your IP :
18.219.94.100
Server IP :
185.136.159.155
Server :
Linux 185-136-159-155.cprapid.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software :
Apache
PHP Version :
8.1.29
Add File :
Submit
Add Directory :
Submit
Dir :
~
/
home
/
jaibalajigroup
/
public_html
/
assets
/
lfm
/
js
/
View File Name :
stand-alone-button.js
(function( $ ){ $.fn.filemanager = function(type, options) { type = type || 'file'; this.on('click', function(e) { var route_prefix = (options && options.prefix) ? options.prefix : '/filemanager'; var target_input = $('#' + $(this).data('input')); var target_preview = $('#' + $(this).data('preview')); window.open(route_prefix + '?type=' + type, 'FileManager', 'width=900,height=600'); window.SetUrl = function (items) { var file_path = items.map(function (item) { return item.url; }).join(','); // set the value of the desired input to image url target_input.val('').val(file_path).trigger('change'); // clear previous preview target_preview.html(''); // set or change the preview image src items.forEach(function (item) { target_preview.append( $('<img>').css('height', '5rem').attr('src', item.thumb_url) ); }); // trigger change event target_preview.trigger('change'); }; return false; }); } })(jQuery);