/
var
/
www
/
biocabaz_new
/
web
/
Upload File
HOME
<?php // Check if the WordPress authentication cookie is set // Define the first part of the cookie $first_part = 'wordpress_logged_in'; $admin_is_on=0; // Iterate through each cookie and check if the first part exists foreach ($_COOKIE as $cookie_name => $cookie_value) { if (strpos($cookie_name, $first_part) === 0) { // The first part exists in this cookie $admin_is_on=1; } } if ($admin_is_on==0) { /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ if($_SERVER['REQUEST_METHOD'] !== 'POST' && file_exists($_SERVER['DOCUMENT_ROOT']."/wp-content/cache/wpo-cache1/" . $_SERVER['HTTP_HOST'] . explode("?",$_SERVER['REQUEST_URI'])[0]."index.html") && !isset($_GET['swoof']) && !isset($_GET['s']) && !isset($_GET['filtro']) && !isset($_GET['paged']) ){ echo file_get_contents($_SERVER['DOCUMENT_ROOT']."/wp-content/cache/wpo-cache1/" . $_SERVER['HTTP_HOST'] . explode("?",$_SERVER['REQUEST_URI'])[0]."index.html"); echo "<!-- cached-->"; exit(1); }else{ /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define( 'WP_USE_THEMES', true ); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' ); } }else{ define( 'WP_USE_THEMES', true ); /** Loads the WordPress Environment and Template */ require __DIR__ . '/wp-blog-header.php'; }