HEX
Server: Apache
System: Linux server1.panigaletech.com 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.30
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/concertium.com/public_html/wp-content/plugins/no-page-comment/page-comment.js
jQuery(document).ready( function($) {
	// Run WordPress Database Comment Modification
	$('.sta_ajax_modify').click( function(e) {
		e.preventDefault();
		confirmresult = confirm('Are you sure you want to do this? This request cannot be undone.\n\nIt is highly recommended that you backup your database before proceeding.');
		if(confirmresult == true ) {
			nonce = $(this).attr('data-nonce');
			post_type = $(this).attr('data-post_type');
			post_label = $(this).attr('data-post_label');
			comment_type = $(this).attr('data-comment_type');
			comment_status = $(this).attr('data-comment_status');
			$.ajax({
				type : 'post',
				dataType : 'json',
				url : myAjax.ajaxurl,
				data : {
					action: 'sta_npc_mod',
					nonce: nonce,
					post_type: post_type,
					post_label: post_label,
					comment_type: comment_type,
					comment_status: comment_status
				},
				success: function(response) {
					if(response.type == 'success') {
						alert(response.message);
						console.log(response);
					} else {
						alert(response.message);
						console.log(response);
					}
				},
				error: function(MLHttpRequest, textStatus, errorThrown){
					console.log(errorThrown);
				}
			});
		}
	});
});