403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.222
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www/wp-content/plugins/divi-booster/core/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www/wp-content/plugins/divi-booster/core/admin/admin.js
jQuery(function($){

	/* Define useful functions */
	$.fn.expand = function() { this.each(function(){ $(this).slideDown(200); }); return this; }
	$.fn.collapse = function() { this.each(function(){ $(this).slideUp(200); }); return this; }
	$.fn.section = function() { return this.next().next(); }
	$.fn.subheadings = function() { return this.nextUntil(".wtf-topheading", "h3"); }
	$.fn.isopen = function() { return this.filter(function(){return ($(this).next().val()==1);}); }
	$.fn.opened = function() { return this.isopen().section(); }
	
	/* Show currently expanded sections */
	$('.wtf-topheading').opened().show().subheadings().show().opened().show();
	
	/* Handle clicks on section headings */
	$(".wtf-section-head").click(function(){
		var section = $(this).section();
		if (section.is(":visible")) { // block is open, so close it
			section.collapse(); // close block
			if ($(this).hasClass('wtf-topheading')) { // hide subsections
				$(this).subheadings().collapse().opened().collapse(); 
			}
		} else {
			section.expand(); // open block
			if ($(this).hasClass('wtf-topheading')) { // show subsections
				$(this).subheadings().expand().opened().expand();
			}
		}
		
		// record state in hidden input
		var hiddenInput = $(this).next();
		var newState = (hiddenInput.val()=='1')?0:1;
		hiddenInput.val(newState); 
		
		// rotate "expanded" icon
		var expandedIcon = $(this).children(':first'); 
		expandedIcon.toggleClass('rotated');
	});
	
	// initialize the colorpickers
	$('.wtf-colorpicker').wpColorPicker();
	
});

// Image picker 
jQuery(document).ready(function($) {
	
	// handle image picker thumbnails
	$('.wtf-imagepicker').change(function() { 
		$(this).next().next('.wtf-imagepicker-thumb').attr('src', $(this).val()); 
	});

});

// Media uploader
jQuery(document).ready(function($){
	
	// Override the "Insert into Post" button text
	if (typeof _wpMediaViewsL10n != 'undefined') {
		_wpMediaViewsL10n.insertIntoPost = 'Use Image';
	}
	
	var _custom_media = true;
	var _orig_send_attachment = wp.media.editor.send.attachment;

	// Display media when choose image button clicked
	$('.upload-button').click(function(e) {
		
		//var send_attachment_bkp = wp.media.editor.send.attachment;
		var button = $(this);
		var input = button.prev('input');
		_custom_media = true; 
		
		// Return handler
		wp.media.editor.send.attachment = function(props, attachment){
			
			// Return the image URL
			var size = props.size;
			var att = attachment.sizes[size];
			if (_custom_media) { input.val(att.url); } 
			else { _orig_send_attachment.apply(this, [props, attachment]); }
			
			// Update the thumbnail
			$('.wtf-imagepicker').change(); 
		}
		
		// Show the editor
		wp.media.editor.open(button);
	});

	$('.add_media').on('click', function(){ _custom_media = false; });

});

Youez - 2016 - github.com/yon3zu
LinuXploit