403Webshell
Server IP : 89.39.208.18  /  Your IP : 216.73.217.74
Web Server : LiteSpeed
System :
User :  ( )
PHP Version : 7.4.33
Disable Function : eval,./,ln,passthru,dl,system,exec,popen,shell_exec,posix_getpwuid,posix_uname,ftp_exec,posix_uname,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,get_current_user,getmyuid,getmygid,listen,chgrp,apache_note,apache_setenv,apache_child_terminate,closelog,debugger_off,debugge_on,ini_restore,netscript,escapeshellarg,cmd,backtick,virtual,show_sourc,show_source,pclose,pcntl_exec,datasec,old_offset,ctrl_dir,ini_alter,leak,listen,chgrp,apache_setenv,define_syslog_variables,root,diskfreespace,disk_free_space,disk_total_space,posix_kill,getmyuid,getmygid,apache_child_terminate,php_ini_scanned_files,ls,ps_aux,chown,getrusage,posixc,posame,chgrp,posix_setuid,posix_setsid,posix_setgid,apache_note,apache_setenv,x_getuid,e_ini_file,nfo,SQL,mysql_li,t_dbs,filegroup,highlight_file,ilegetcontents,get_dir,popen,popens,pfsockopen,dos_conv,apache_get_modules,crack_check,crack_closedict,rar_open,bzopen,bzread,bzwrite,shellcode,posix_isatty,posix_getservbyname,escapeshellarg,hypot,pg_host,pos,posix_access,inurl,posix_times,posix_mknod,pclose,ps_fill,symlink,id,escapeshellcmd,php_uname,phpinfo
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home3/./mahyarcake/./www/wp-content/plugins/powerpack-elements/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home3/./mahyarcake/./www/wp-content/plugins/powerpack-elements/assets/js/frontend-countdown.js
(function ($) {
	PPCountdown = function (settings, $scope, $) {
		this.id = settings.id = $scope.data('id');
		this.settings = settings;
		this.node = $scope;
		this.wrap = this.node.find('.pp-countdown-wrapper');
		this.timertype = settings.timer_type;
		this.timer_format = settings.timer_format;
		this.timer_layout = settings.timer_layout;
		this.timer_labels = settings.timer_labels;
		this.timer_labels_singular = settings.timer_labels_singular;
		this.redirect_link = settings.redirect_link.url;
		this.redirect_link_target = settings.redirect_link_target;
		this.fixed_timer_action = settings.fixed_timer_action;
		this.evergreen_timer_action = settings.evergreen_timer_action;
		this.evergreen_date_days = settings.days;
		this.evergreen_date_hour = settings.hours;
		this.evergreen_date_minutes = settings.minutes;
		this.evergreen_date_seconds = settings.seconds;
		this.timezone = settings.time_zone;
		this.timer_exp_text = "";

		if (this.timezone === 'NULL' || this.timezone === '') {
			this.timezone = null;
		}

		if ('evergreen' === this.timertype) {
			this.timer_date = new Date();
		} else {
			this.timer_date = new Date(settings.years, (settings.months - 1), settings.days, settings.hours, settings.minutes);
		}

		if (settings.timer_exp_text) {
			this.timer_exp_text = settings.timer_exp_text;
		}

		if (this.timertype == "fixed") {
			this._initFixedTimer();
		}

		if (this.timertype == "evergreen") {

			var currdate = '';
			var timevar = 0;

			if ($.cookie("countdown-" + settings.id) == undefined) {
				$.cookie("countdown-" + settings.id, true);
				$.cookie("countdown-" + settings.id + "-currdate", new Date());
				$.cookie("countdown-" + settings.id + "-day", this.evergreen_date_days);
				$.cookie("countdown-" + settings.id + "-hour", this.evergreen_date_hour);
				$.cookie("countdown-" + settings.id + "-min", this.evergreen_date_minutes);
				$.cookie("countdown-" + settings.id + "-sec", this.evergreen_date_seconds);

			}

			currdate = new Date($.cookie("countdown-" + settings.id + "-currdate"));

			timevar = (parseFloat(this.evergreen_date_days * 24 * 60 * 60) + parseFloat(this.evergreen_date_hour * 60 * 60) + parseFloat(this.evergreen_date_minutes * 60) + parseFloat(this.evergreen_date_seconds)) * 1000;

			currdate.setTime(currdate.getTime() + timevar);

			this.timer_date = currdate;

			this._initEverGreenTimer();
		}

		this._initCountdown();
	};
	PPCountdown.prototype = {

		_initCountdown: function () {
			fixed_timer_action = this.fixed_timer_action;
			settings = this.settings;
			var action = '';

			if (this.timertype == "fixed") {
				action = this.fixed_timer_action;
			} else {
				action = this.evergreen_timer_action;
			}

			$.cookie("countdown-" + settings.id + "expiremsg", null);
			$.cookie("countdown-" + settings.id + "redirect", null);
			$.cookie("countdown-" + settings.id + "redirectwindow", null);
			$.cookie("countdown-" + settings.id + "hide", null);
			$.cookie("countdown-" + settings.id + "reset", null);

			$.removeCookie("countdown-" + settings.id + "expiremsg");
			$.removeCookie("countdown-" + settings.id + "redirect");
			$.removeCookie("countdown-" + settings.id + "redirectwindow");
			$.removeCookie("countdown-" + settings.id + "hide");
			$.removeCookie("countdown-" + settings.id + "reset");


			if (action == "msg") {

				$.cookie("countdown-" + settings.id + "expiremsg", settings.expire_message, { expires: 365 });

			} else if (action == "redirect") {

				$.cookie("countdown-" + settings.id + "redirect", settings.redirect_link, { expires: 365 });
				$.cookie("countdown-" + settings.id + "redirectwindow", settings.redirect_link_target, { expires: 365 });

			} else if (action == "hide") {

				$.cookie("countdown-" + settings.id + "hide", "yes", { expires: 365 });

			} else if (action == 'reset') {
				$.cookie("countdown-" + settings.id + "reset", "yes", { expires: 365 });
			}
		},

		_initFixedTimer: function () {

			var dateNow = new Date();

			if ((dateNow.getTime() - this.timer_date.getTime()) > 0) {
				if (this.fixed_timer_action == 'msg') {
					if (parseInt(window.location.href.toLowerCase().indexOf("?elementor")) === parseInt(-1)) {
						this.wrap.append(this.timer_exp_text);
					} else {
						this.wrap.countdown({
							until: this.timer_date,
							format: this.timer_format,
							layout: this.timer_layout,
							labels: this.timer_labels.split(","),
							timezone: this.timezone,
							labels1: this.timer_labels_singular.split(","),
							expiryText: this.timer_exp_text
						});
					}

				} else if (this.fixed_timer_action == 'redirect') {

					if (parseInt(window.location.href.toLowerCase().indexOf("?elementor")) === parseInt(-1)) {
						window.open(this.redirect_link, this.redirect_link_target);
					} else {
						this.wrap.countdown({
							until: this.timer_date,
							format: this.timer_format,
							layout: this.timer_layout,
							labels: this.timer_labels.split(","),
							timezone: this.timezone,
							labels1: this.timer_labels_singular.split(","),
							expiryText: this.timer_exp_text
						});
					}

				} else if (this.fixed_timer_action == 'hide') {
					if (parseInt(window.location.href.toLowerCase().indexOf("?elementor")) === parseInt(-1)) {
						this.wrap.countdown('destroy');
					} else {
						this.wrap.countdown({
							until: this.timer_date,
							format: this.timer_format,
							layout: this.timer_layout,
							labels: this.timer_labels.split(","),
							timezone: this.timezone,
							labels1: this.timer_labels_singular.split(","),
							expiryText: this.timer_exp_text
						});
					}

				} else {
					this.wrap.countdown({
						until: this.timer_date,
						format: this.timer_format,
						layout: this.timer_layout,
						labels: this.timer_labels.split(","),
						timezone: this.timezone,
						labels1: this.timer_labels_singular.split(","),
					});
				}
			} else {
				if (this.fixed_timer_action === 'msg') {
					if (parseInt(window.location.href.toLowerCase().indexOf("?elementor")) === parseInt(-1)) {
						this.wrap.countdown({
							until: this.timer_date,
							format: this.timer_format,
							layout: this.timer_layout,
							labels: this.timer_labels.split(","),
							timezone: this.timezone,
							labels1: this.timer_labels_singular.split(","),
							expiryText: this.timer_exp_text,
						});
					} else {
						this.wrap.countdown({
							until: this.timer_date,
							format: this.timer_format,
							layout: this.timer_layout,
							labels: this.timer_labels.split(","),
							timezone: this.timezone,
							labels1: this.timer_labels_singular.split(","),
						});
					}
				} else if (this.fixed_timer_action == 'redirect') {

					this.wrap.countdown({
						until: this.timer_date,
						format: this.timer_format,
						layout: this.timer_layout,
						labels: this.timer_labels.split(","),
						timezone: this.timezone,
						labels1: this.timer_labels_singular.split(","),
						expiryText: this.timer_exp_text,
						onExpiry: this._redirectCounter
					});

				} else if (this.fixed_timer_action == 'hide') {

					this.wrap.countdown({
						until: this.timer_date,
						format: this.timer_format,
						layout: this.timer_layout,
						labels: this.timer_labels.split(","),
						timezone: this.timezone,
						labels1: this.timer_labels_singular.split(","),
						expiryText: this.timer_exp_text,
						onExpiry: this._destroyCounter
					});

				} else {
					this.wrap.countdown({
						until: this.timer_date,
						format: this.timer_format,
						layout: this.timer_layout,
						labels: this.timer_labels.split(","),
						timezone: this.timezone,
						labels1: this.timer_labels_singular.split(","),
						expiryText: this.timer_exp_text
					});
				}
			}
		},

		_destroyCounter: function () {
			if (parseInt(window.location.href.toLowerCase().indexOf("?elementor")) === parseInt(-1)) {
				jQuery(this).countdown('destroy');
			}
		},

		_redirectCounter: function () {

			redirect_link = jQuery.cookie(jQuery(this)[0].id + "redirect");
			redirect_link_target = jQuery.cookie(jQuery(this)[0].id + "redirectwindow");

			if (parseInt(window.location.href.toLowerCase().indexOf("?elementor")) === parseInt(-1)) {
				window.open(redirect_link, redirect_link_target);
			} else {
				return;
			}
		},

		_initEverGreenTimer: function () {
			var dateNow = new Date();

			if ((dateNow.getTime() - this.timer_date.getTime()) > 0) {

				if (this.evergreen_timer_action == 'msg') {
					if (parseInt(window.location.href.toLowerCase().indexOf("?elementor")) === parseInt(-1)) {
						this.wrap.append($.cookie("countdown-" + this.settings.id + "expiremsg"));
					} else {
						this.wrap.countdown({
							until: this.timer_date,
							format: this.timer_format,
							layout: this.timer_layout,
							labels: this.timer_labels.split(","),
							timezone: this.timezone,
							labels1: this.timer_labels_singular.split(","),
							expiryText: $.cookie("countdown-" + this.settings.id + "expiremsg"),
						});
					}

				} else if (this.evergreen_timer_action == 'redirect') {

					if (parseInt(window.location.href.toLowerCase().indexOf("?elementor")) === parseInt(-1)) {
						window.open(this.redirect_link, this.redirect_link_target);
					} else {
						this.wrap.countdown({
							until: this.timer_date,
							format: this.timer_format,
							layout: this.timer_layout,
							labels: this.timer_labels.split(","),
							timezone: this.timezone,
							labels1: this.timer_labels_singular.split(","),
							onExpiry: this._redirectCounter
						});
					}

				} else if (this.evergreen_timer_action == 'hide') {
					if (parseInt(window.location.href.toLowerCase().indexOf("?elementor")) === parseInt(-1)) {
						this.wrap.countdown('destroy');
					} else {
						this.wrap.countdown({
							until: this.timer_date,
							format: this.timer_format,
							layout: this.timer_layout,
							labels: this.timer_labels.split(","),
							timezone: this.timezone,
							labels1: this.timer_labels_singular.split(","),
							onExpiry: this._destroyCounter
						});
					}

				} else if (this.evergreen_timer_action == 'reset') {

					this.wrap.countdown({
						until: this.timer_date,
						format: this.timer_format,
						layout: this.timer_layout,
						labels: this.timer_labels.split(","),
						timezone: this.timezone,
						labels1: this.timer_labels_singular.split(","),
						onExpiry: this._restartCountdown
					});

				} else {
					this.wrap.countdown({
						until: this.timer_date,
						format: this.timer_format,
						layout: this.timer_layout,
						labels: this.timer_labels.split(","),
						timezone: this.timezone,
						labels1: this.timer_labels_singular.split(","),
					});
				}
			} else {
				if (this.evergreen_timer_action == 'msg') {

					if (parseInt(window.location.href.toLowerCase().indexOf("?elementor")) === parseInt(-1)) {
						this.wrap.countdown({
							until: this.timer_date,
							format: this.timer_format,
							layout: this.timer_layout,
							labels: this.timer_labels.split(","),
							timezone: this.timezone,
							labels1: this.timer_labels_singular.split(","),
							expiryText: $.cookie("countdown-" + this.settings.id + "expiremsg"),
						});
					} else {
						this.wrap.countdown({
							until: this.timer_date,
							format: this.timer_format,
							layout: this.timer_layout,
							labels: this.timer_labels.split(","),
							timezone: this.timezone,
							labels1: this.timer_labels_singular.split(","),
						});
					}

				} else if (this.evergreen_timer_action == 'redirect') {

					this.wrap.countdown({
						until: this.timer_date,
						format: this.timer_format,
						layout: this.timer_layout,
						labels: this.timer_labels.split(","),
						timezone: this.timezone,
						labels1: this.timer_labels_singular.split(","),
						onExpiry: this._redirectCounter
					});

				} else if (this.evergreen_timer_action == 'hide') {

					this.wrap.countdown({
						until: this.timer_date,
						format: this.timer_format,
						layout: this.timer_layout,
						labels: this.timer_labels.split(","),
						timezone: this.timezone,
						labels1: this.timer_labels_singular.split(","),
						onExpiry: this._destroyCounter
					});

				} else if (this.evergreen_timer_action == 'reset') {

					this.wrap.countdown({
						until: this.timer_date,
						format: this.timer_format,
						layout: this.timer_layout,
						labels: this.timer_labels.split(","),
						timezone: this.timezone,
						labels1: this.timer_labels_singular.split(","),
						onExpiry: this._restartCountdown
					});

				} else {
					this.wrap.countdown({
						until: this.timer_date,
						format: this.timer_format,
						layout: this.timer_layout,
						labels: this.timer_labels.split(","),
						timezone: this.timezone,
						labels1: this.timer_labels_singular.split(","),
					});
				}
			}

		},

		_restartCountdown: function () {

			$.cookie("countdown-" + settings.id + "-currdate", new Date());

			currdate = new Date($.cookie("countdown-" + settings.id + "-currdate"));

			var evergreen_date_days = $.cookie("countdown-" + settings.id + "-day");
			var evergreen_date_hour = $.cookie("countdown-" + settings.id + "-hour");
			var evergreen_date_minutes = $.cookie("countdown-" + settings.id + "-min");
			var evergreen_date_seconds = $.cookie("countdown-" + settings.id + "-sec");

			var timevar = (parseFloat(evergreen_date_days * 24 * 60 * 60) + parseFloat(evergreen_date_hour * 60 * 60) + parseFloat(evergreen_date_minutes * 60) + parseFloat(evergreen_date_seconds)) * 1000;
			currdate.setTime(currdate.getTime() + timevar);

			this.timer_date = currdate;

			jQuery(this).countdown('option', { until: this.timer_date });
		},
	};

	var CountdownHandler = function ($scope, $) {
		var settings = JSON.parse( $scope.find('[name=pp-countdown-settings]').val() );

		new PPCountdown( settings, $scope, $ );
	};

	$(window).on('elementor/frontend/init', function () {
        if ( elementorFrontend.isEditMode() ) {
			isEditMode = true;
		}

		elementorFrontend.hooks.addAction( 'frontend/element_ready/pp-countdown.default', CountdownHandler );
    });

})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit