403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/KnowledgeBase/wp-content/plugins/media-library-plus/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/KnowledgeBase/wp-content/plugins/media-library-plus/js/uploads-media.js
if ( typeof wpActiveEditor != 'undefined') {
  var wpActiveEditor = 'undefined';
}    
(function ($) {
  
  $(document).ready(function(){
        
    if(mlfpmedia.bda == 'on') {
      $('div.media-frame-content div.media-toolbar-secondary').append('<button class="bda-display media-button button-large" type="button">' + mlfpmedia.display_btn_text + '</button>');
      //$('div.media-frame-content div.media-toolbar').append('<div style="float:left;">' + mlfpmedia.upload_message +'</div><div id="mlfp-tool-bar"><input type="hidden" id="folder_id" value="' + mlfpmedia.uploads_folder_id + '"><ul id="folder-tree"></ul></div>');
    } 
    //else
      //$('div.media-frame-content div.media-toolbar').append('<div style="float:left;">' + mlfpmedia.upload_message +'</div><div id="mlfp-tool-bar"><input type="hidden" id="folder_id" value="' + mlfpmedia.uploads_folder_id + '"><ul id="folder-tree"></ul></div>');
    
        
	});
        			
  jQuery(document).on("click", ".bda-display", function (e) {	
    e.stopImmediatePropagation();
    
    jQuery('li.attachment.mlfp-protected').each(function() { 
      var that = this;
      if(!jQuery(that).hasClass('mlfp-visible')) {
        var image_id = jQuery(this).attr("data-id");
        var element = jQuery(this).find("img");
        var src = jQuery(element).attr("src");
        console.log('src', src);
        
        

        jQuery.ajax({
          type: "POST",
          async: true,
          data: { action: "mlfp_load_fe_image", src: src, image_id: image_id, nonce: mlfpmedia.nonce },
          url: mlfpmedia.ajaxurl,
          success: function (data) {
            if(data.length > 0) {
              jQuery(element).attr("src", data);
              jQuery(that).addClass('mlfp-visible');
            }  
          },
          error: function (err){
            alert(err.responseText);
          }
        });
      }      
    });
    
  });
  
}(jQuery));

Youez - 2016 - github.com/yon3zu
LinuXploit