403Webshell
Server IP : 194.30.32.123  /  Your IP : 216.73.216.89
Web Server : Apache
System : Linux eab357717bca 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64
User : ftpbegirale ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /expert/htwebs/www.begirale.com/public/wp-content/plugins/mailchimp-widget/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /expert/htwebs/www.begirale.com/public/wp-content/plugins/mailchimp-widget/js/mailchimp-widget.js
//'use strict';

(function ($) {
	
	$.fn.ns_mc_widget = function (options) {
		
		var defaults, eL, opts;
		defaults = {
			'url' : '/',
			'cookie_id' : false,
			'cookie_value' : ''
		};
		opts = jQuery.extend(defaults, options);
		eL = $(this);
		eL.submit(function () {
			
			var ajax_loader;
			ajax_loader = jQuery('<div></div>');
			ajax_loader.css({
				'background-image' : 'url(' + opts.loader_graphic + ')',
				'background-position' : 'center center',
				'background-repeat' : 'no-repeat',
				'height' : '100%',
				'left' : '0',
				'position' : 'absolute',
				'top' : '0',
				'width' : '100%',
				'z-index' : '100'				
			});
			
			eL.css({
				'height' : '100%',
				'position' : 'relative',
				'width' : '100%'
			});
			
			eL.children().hide();
			eL.append(ajax_loader);
			
			$.getJSON(opts.url, eL.serialize(), function (data, textStatus) {
				var cookie_date, error_container, new_content;
				if ('success' === textStatus) {
					if (true === data.success) {
						new_content = jQuery('<p>' + data.success_message + '</p>');
						new_content.hide();
						eL.fadeTo(400, 0, function () {
							eL.html(new_content);
							new_content.show();
							eL.fadeTo(400, 1);
							
						});
						
						if (false !== opts.cookie_id) {
							cookie_date = new Date();
							cookie_date.setTime(cookie_date.getTime() + '3153600000');
							document.cookie = opts.cookie_id + '=' + opts.cookie_value + '; expires=' + cookie_date.toGMTString() + ';';
						}
					} else {
						error_container = jQuery('.error', eL);
						if (0 === error_container.length) {
							ajax_loader.remove();
							eL.children().show();
							error_container = jQuery('<div class="error"></div>');
							error_container.prependTo(eL);
						} else {
							ajax_loader.remove();
							eL.children().show();
						}
						error_container.html(data.error);
					}
				}
				return false;
			});
			return false;
		});
	};
}(jQuery));

Youez - 2016 - github.com/yon3zu
LinuXploit