403Webshell
Server IP : 198.38.94.67  /  Your IP : 216.73.217.74
Web Server : LiteSpeed
System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
User : azfilmst ( 1070)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/azfilmst/royalopus.ae/wp-content/themes/wpresidence/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/azfilmst/royalopus.ae/wp-content/themes/wpresidence/ajax_handler.php
<?php
/** MILLDONE
 * Custom AJAX Handler for WpResidence Theme
 * src: ajax_handler.php
 * This file mimics the WordPress admin-ajax functionality to handle custom AJAX requests
 * for the WpResidence theme. It processes specific actions related to property listings
 * and other theme-specific features.
 *
 * @package WpResidence
 * @subpackage AJAX
 * @since WpResidence 1.0
 */

// Define AJAX constant
define('DOING_AJAX', true);

// Verify AJAX request
if (!isset($_POST['action'])) {
    die('-1');
}

// Load WordPress environment
$wp_load_path = preg_replace('/wp-content(?!.*wp-content).*/', '', __DIR__) . 'wp-load.php';
require_once($wp_load_path);

// Set headers
header('Content-Type: text/html');
send_nosniff_header();
header('Cache-Control: no-cache');
header('Pragma: no-cache');

// Sanitize and validate the action
$action = isset($_POST['action']) ? sanitize_text_field($_POST['action']) : '';

// List of allowed actions
$allowed_actions = array(
    'wpestate_property_modal_listing_details',
    'wpestate_property_modal_listing_details_second',
    'wpestate_custom_ondemand_pin_load',
    'wpestate_load_recent_items_sh',
    'wpestate_ajax_filter_listings',
    'wpestate_custom_adv_ajax_filter_listings_search',
    'wpestate_classic_ondemand_pin_load_type2_tabs',
    'wpestate_load_blog_list_widget_wrapper',
);

// Process the action if it's allowed
if(in_array($action, $allowed_actions)){
    if(is_user_logged_in())
        do_action('wpestate_ajax_handler'.'_'.$action);
    else
        do_action('wpestate_ajax_handler_nopriv'.'_'.$action);
}
else{
    die('-1');
} 

Youez - 2016 - github.com/yon3zu
LinuXploit