Wordpress problem with template to access the page

1

I got a template to make a website for me and this is giving me an error that I am not realizing I wanted help

This is like an online store where you will have a series of products for sale

and when I put the files in localhost I only see the message that is below and I do not know how to solve in php I have this code

<?php
// File Security Check
if ( ! function_exists( 'wp' ) && ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
    die ( 'You do not have  permissions to access this page!' );
}
?><?php
/**
 * Index Template
 *
 * Here we setup all logic and XHTML that is required for the index template, used as both the homepage
 * and as a fallback template, if a more appropriate template file doesn't exist for a specific context.
 *
 * @package WooFramework
 * @subpackage Template
 */
    get_header();
    global $woo_options;

?>

and in the browser it appears ~

You do not have enough permissions to access this page! ~

The content is not appearing What will be wrong with this line of code or do you need some database Thanks

    
asked by anonymous 13.11.2015 / 23:45

1 answer

0

Check the value of these terms:

if ( ! function_exists( 'wp' ) && ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
    die ( 'You do not have  permissions to access this page!' );
}

If it does not interfere with the operation of the tool, it comments on if and monitors the operation.

    
14.11.2015 / 04:40