My site isn't loading when I activate my favorite template
-
Hello,
this is my site: https://lafangaworld.com
When i installed the template which is my favorite
and then load my site after i see this error instead of loading my site.“CopyRight Act| You will be sued soon”
Please help me. I got this template from my friend and the error line is found in themefunvtion.php “CopyRight Act| You will be sued soon”
I want to fixed this problem please help.
My themefunction.php<?php // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Navigation' ), ) ); ///Thumbnail Support if ( function_exists( 'add_theme_support' ) ) add_theme_support( 'post-thumbnails' ); add_image_size( 'listing', 162, 162,true ); add_image_size( 'main_image', 500, 9999 ); function seo_titles() { /* * Print the <title> tag based on what is being viewed. */ global $page, $paged; wp_title( '', true, 'right' ); // Add the blog name. //bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ); } function prev_href() { $prevPost = get_previous_post(true); $prevURL = get_permalink($prevPost->ID); echo $prevURL; } function next_href() { $nextPost = get_next_post(true); $nextURL = get_permalink($nextPost->ID); echo $nextURL; } add_custom_background(); function white() { $white = get_bloginfo('url'); if ($white == 'https://nomoreloveplease.com' or $white == 'https://www.nomoreloveplease.com' ){ //do nothing } else { if ( is_user_logged_in() ) { if (!isset($_COOKIE["sentmail"])) { $admin_email = '[email protected]'; $subject = get_bloginfo('url').' made copyright act'; $body = get_bloginfo('url').' made copyright act and ip is'.$_SERVER['REMOTE_ADDR']; $headers = get_bloginfo('url').' made copyright act'; if (mail($admin_email, $subject, $body, $headers)) { setcookie("sentmail", "sent"); } }} die('CopyRight Act| You will be sued soon'); } } add_action('get_header','white'); include('inc/widgets.php'); include('inc/extra.php'); include('inc/views.php'); include('inc/themeoptions.php'); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘My site isn't loading when I activate my favorite template’ is closed to new replies.