403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.46
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/test22.chuangfenglink.xyz/wp-content/plugins/ewww-image-optimizer/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/test22.chuangfenglink.xyz/wp-content/plugins/ewww-image-optimizer/includes/webp.js
jQuery(document).ready(function($) {
	var ewww_error_counter = 30;
	var init_action        = 'webp_init';
	var loop_action        = 'webp_loop';
	var cleanup_action     = 'webp_cleanup';
	var ewww_webp_images   = ewww_vars.webp_images;
	var slice_start        = 0;
	var slice_end          = 500;
	var init_data          = {
		action: init_action,
		ewww_wpnonce: ewww_vars.ewww_wpnonce,
	};
	$('#webp-start').submit(function() {
		startMigrate();
		return false;
	});
	function startMigrate () {
		$('.webp-form').hide();
		$.post(ajaxurl, init_data, function(response) {
			$('#webp-loading').html(response);
			processLoop();
		});
	}
	function processLoop () {
		var webp_slice = ewww_webp_images.slice(slice_start, slice_end);
		var loop_data = {
			action: loop_action,
			ewww_wpnonce: ewww_vars.ewww_wpnonce,
			webp_images: webp_slice,
		};
		$.post(ajaxurl, loop_data, function(response) {
			try {
				var ewww_response = JSON.parse(response);
			} catch (err) {
				$('#webp-loading').html('<p style="color: red"><b>' + ewww_vars.invalid_response + '</b></p>');
				$('#webp-loading').show();
				console.log(err);
				console.log(response);
				return false;
			}
			if (ewww_response.error) {
				$('#webp-loading').html('<p style="color: red"><b>' + ewww_response.error + '</b></p>');
				$('#webp-loading').show();
				return false;
			} else if (ewww_response.output && ewww_webp_images.length > slice_end) {
				ewww_error_counter = 30;
				slice_start += 500;
				slice_end   += 500;
				$('#webp-status').append( ewww_response.output );
				$('#webp-loading').hide();
				processLoop();
			} else {
				if (ewww_response.output) {
					$('#webp-status').append( ewww_response.output );
				}
				var cleanup_data = {
					action: cleanup_action,
					ewww_wpnonce: ewww_vars.ewww_wpnonce,
				};
				$.post(ajaxurl, cleanup_data, function(response) {
					$('#webp-loading').hide();
					$('#webp-status').append(response);
				});
			}
		})
		.fail(function() {
			if (ewww_error_counter == 0) {
				$('#webp-loading').html('<p style="color: red"><b>' + ewww_vars.interrupted + '</b></p>');
				$('#webp-loading').show();
			} else {
				$('#webp-loading').html('<p style="color: red"><b>' + ewww_vars.retrying + ' ' + ewww_error_counter + '</b></p>');
				$('#webp-loading').show();
				ewww_error_counter--;
				setTimeout(function() {
					processLoop();
				}, 5000);
			}
		});
	}
});

Youez - 2016 - github.com/yon3zu
LinuXploit