. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 94.23.64.18  /  Your IP : 216.73.216.185   [ Reverse IP ]
Web Server : Apache
System : Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : villadal ( 6036)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/villadal/www/old/wp-content/plugins/sitepress-multilingual-cms/res/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/villadal/www/old/wp-content/plugins/sitepress-multilingual-cms/res/js/orphan-comments.js
/*jslint browser: true, nomen: true, laxbreak: true*/
/*global ajaxurl */

"use strict";

jQuery(document).ready(
	function ($) {

		var deleted = 0;
		var deleting = false;
		var initial_orphans_count = 0;

		var orphansCount = $('#wpml_orphans_count');
		var orphansCheckCount = orphansCount.find('.check-orphans');
		var orphansCountResults = orphansCount.find('.orphans-check-results');
		var orphansCountProgress = orphansCount.find('.count-in-progress');
		var deletingProgress = orphansCount.find('.delete-in-progress');
		var deletedOrphans = orphansCount.find('.deleted');
		var cleanOrphans = orphansCount.find('.clean-orphans');
		var noOrphans = orphansCount.find('.no_orphans');
		var orphansCheckLoader = orphansCount.find('.check_loader');

		deletedOrphans.hide();
		noOrphans.hide();
		orphansCountProgress.hide();
		orphansCountResults.hide();
		orphansCheckLoader.hide();

		orphansCount.show();

		orphansCheckCount.on('click', count_orphans);
		cleanOrphans.on('click', delete_orphans);

		var nonce = orphansCount.find('#wpml_orphan_comment_nonce').val();

		function resetDeletion() {
			deletingProgress.fadeOut();
			deleted = 0;
			deleting = 0;
		}

		function count_orphans() {
			if(!deleting) {
				orphansCheckCount.fadeOut();
				orphansCountProgress.fadeIn();
			}
			var data = {
				action    : 'wpml_count_orphans',
				_icl_nonce: nonce
			};

			$.post(
				ajaxurl, data, function (res) {
					orphansCountProgress.fadeOut();
					var orphansCountResult = res.success ? res.data : 0;
					orphansCheckLoader.fadeOut();
					orphansCountResults.find('.count').html(orphansCountResult);
					if (orphansCountResult > 0) {
						if (initial_orphans_count == 0) {
							initial_orphans_count = orphansCountResult;
							cleanOrphans.fadeIn();
						}
						noOrphans.fadeOut();
						orphansCountResults.fadeIn();

						if (deleting) {
							delete_orphans();
						} else {
							resetDeletion();
						}
					} else {
						resetDeletion();
						noOrphans.fadeIn();
						orphansCountResults.fadeOut();
						orphansCheckCount.fadeIn();
					}
				}
			);
		}

		function delete_orphans() {

			cleanOrphans.fadeOut();
			deletingProgress.fadeIn();
			deleting = true;

			deletedOrphans.fadeIn();

			var data = {
				'action'  : 'wpml_delete_orphans',
				'data'    : {how_many: Math.max(10, initial_orphans_count / 10)},
				_icl_nonce: nonce
			};
			$.post(
				ajaxurl, data, function (res) {
					var deletedComments = res.success ? res.data : 0;
					deleted += parseInt(deletedComments);
					deletedOrphans.html(deleted);
					count_orphans();
				}
			);
		}
	}
);

Anon7 - 2022
AnonSec Team