Sindbad~EG File Manager

Current Path : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt-mobile/
Upload File :
Current File : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt-mobile/ajax-admin.php

<?php
/*
 * mimic the actuall admin-ajax
*/
define('DOING_AJAX', true);

if ( empty( $_REQUEST['action'] ) )
    die('-1');

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

if ( isset( $_REQUEST[ 'lang' ] ) && function_exists('icl_object_id')) {
	do_action( 'wpml_switch_language',  $_REQUEST[ 'lang' ] ); // switch the content language
}

//Typical headers
header('Content-Type: text/html');
@header( 'X-Robots-Tag: noindex' );
send_nosniff_header();

//Disable caching
header('Cache-Control: no-cache');
header('Pragma: no-cache');

// Register core Ajax calls.
if ( ! empty( $_GET['action'] ) )
	$action = esc_attr(trim($_GET['action']));

if ( ! empty( $_POST['action'] )  )
	$action = esc_attr(trim($_POST['action']));
	
if(is_user_logged_in()) {
    do_action( 'mwpajax_' . $action);
} else {
    do_action( 'mwpajax_nopriv_' . $action);
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists