403Webshell
Server IP : 172.67.71.254  /  Your IP : 216.73.216.4
Web Server : nginx/1.27.1
System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : arabianexpress ( 1872)
PHP Version : 8.0.30
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v9321/leapdubai/public_html/wp-content/plugins/kirki/includes/Ajax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v9321/leapdubai/public_html/wp-content/plugins/kirki/includes/Ajax/Comments.php
<?php
/**
 * Dynamic content/Collection API
 *
 * @package kirki
 */

namespace Kirki\Ajax;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

use Kirki\HelperFunctions;

/**
 * Comments API Class
 */
class Comments {

	/**
	 * Get collection return api response
	 *
	 * @return void wpjson response
	 */
	public static function get_comments() {
		$sorting_param  = HelperFunctions::sanitize_text( isset( $_GET['sorting'] ) ? $_GET['sorting'] : null );
		$filter_param   = HelperFunctions::sanitize_text( isset( $_GET['filters'] ) ? $_GET['filters'] : null );
		$post_parent    = HelperFunctions::sanitize_text( $_GET['post_parent'] ?? 0 );
		$comment_parent = HelperFunctions::sanitize_text( $_GET['comment_parent'] ?? 0 );
		$comment_type   = HelperFunctions::sanitize_text( $_GET['comment_type'] ?? 'comment' );
		$item_per_page  = HelperFunctions::sanitize_text( $_GET['items'] ?? 3 );
		$current_page   = HelperFunctions::sanitize_text( $_GET['current_page'] ?? 1 );
		$offset         = HelperFunctions::sanitize_text( $_GET['offset'] ?? 0 );

		$sorting = null;
		$filters = null;

		if ( isset( $sorting_param ) ) {
			$sorting = json_decode( stripslashes( $sorting_param ), true );
		}

		if ( isset( $filter_param ) ) {
			$filters = json_decode( stripslashes( $filter_param ), true );
		}

		$comments = HelperFunctions::get_comments(
			array(
				'parent'        => $comment_parent,
				'post_id'       => $post_parent,
				'type'          => $comment_type,
				'offset'        => $offset,
				'sorting'       => $sorting,
				'filters'       => $filters,
				'item_per_page' => $item_per_page,
				'current_page'  => $current_page,
			)
		);

		wp_send_json( $comments );

		die();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit