Timothy1196
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: style.css getting hackedI’ve removed the hacked from:
style.css
index.php,The problem is gone. I will change all the passwords to be sure that it doesn’t come back !
Forum: Fixing WordPress
In reply to: style.css getting hackedHi !
I’ve the same problem.
When I open the index.php files, there is a link to a remote file call “check.php”.
The content of the file is:if(navigator.javaEnabled()) { document.write(' <script src="[ redacted, don't share that here ]"></script>'); }It’s written that it is a remote file but I can’t find where this file is called on index.php.
Here is the content of the Index.php<?php include(TEMPLATEPATH . "/includes/head.php"); ?> <div id="container"> <div id="header"> <?php include(TEMPLATEPATH . "/includes/header.php"); ?> </div> <div class="clear"></div> <div id="content"> <?php $slider_option = get_option(THEMESHORTNAME."_show_image_slider", "slider"); if($slider_option == "slider") { $slider_type = get_option(THEMESHORTNAME."_main_slider_type", "flash"); if($slider_type == "flash") { ?> <div id="slider-container" style="height: <?php echo get_option(THEMESHORTNAME."_main_slider_height", 400); ?>px;"></div> <?php } else { ?> <div id="jquery-slider-container" style="height: <?php echo get_option(THEMESHORTNAME."_main_slider_height", 400); ?>px;"></div> <?php } } else if($slider_option == "image") { $img_url = fs_get_image_from_option(get_option(THEMESHORTNAME."_slider_image", ""), 'full'); if($img_url != "") { ?> <img width="960" src="<?php echo $img_url; ?>" alt="" /> <?php } } $image_index = 0; ?> <div id="flashShadow"></div> <?php if(get_option(THEMESHORTNAME."_show_slider1", "no") == "yes") { ?> <div id="slider"> <ul> <?php $opt = get_option(THEMESHORTNAME."_slider1_type", ""); $slider_posts = array(); if($opt == "cat") { $slider_posts = get_posts('numberposts=-1&orderby=date&order=DESC&category='.get_option(THEMESHORTNAME."_slider1_cat", "")); } else if($opt == "editor") { $slider_posts_ids = explode(",", get_option(THEMESHORTNAME."_slider1_posts", "")); foreach($slider_posts_ids as $post_id) if(is_numeric($post_id)) $slider_posts[] = get_post($post_id); } global $wp_query; $wp_query->in_the_loop = true; for($i = 0; $i*3 < count($slider_posts); $i++) { echo '<li>'; for($pi = 0; $pi < 3 && $i*3 + $pi < count($slider_posts); $pi++) { $post = get_post($slider_posts[$i*3 + $pi]->ID); setup_postdata($post); $img_url = fs_get_post_image($post->ID, 'medium'); echo '<div class="newsBox">'."\n"; if($img_url != "") { echo '<div class="newsBoxImage">'; if($i == 0) { echo ' <div id="image_holder_'.($image_index++).'" class="newsBoxImage">'."\n"; echo ' <a href="'.get_permalink($post->ID).'">'."\n"; echo ' <span class="image_holder_span">'."\n"; echo ' <img alt="" src="'.$img_url.'" />'."\n"; echo ' </span>'."\n"; echo ' '.get_loading_span(300, 170)."\n"; echo ' </a>'."\n"; echo ' </div>'."\n"; } else { echo '<a href="'.get_permalink($post->ID).'"><img alt="" src="'.$img_url.'" /></a>'; } echo '</div>'; } echo '<div class="newsBoxTitle"><div class="newsH2"><a href="'.get_permalink().'">'.get_the_title().'</a></div></div><div class="newsBoxText">'.strip_shortcodes(get_the_content('')).'</div></div>'; } echo '</li>'; } ?> </ul> </div> <?php } ?> <div class="clear"></div> <div class="line"></div> <?php if(get_option(THEMESHORTNAME."_show_imagelist", "no") == "yes") { ?> <ul id="imageList"> <?php $opt = get_option(THEMESHORTNAME."_imagelist_type", ""); $imagelist_posts_ids = array(); if($opt == "cat") { $imagelist_posts = get_posts('numberposts=-1&orderby=date&order=DESC&category='.get_option(THEMESHORTNAME."_imagelist_cat", "")); foreach($imagelist_posts as $imagelist_post) $imagelist_posts_ids[] = $imagelist_post->ID; } else if($opt == "editor") { $imagelist_posts_ids = explode(",", get_option(THEMESHORTNAME."_imagelist_posts", "")); } $c = 0; foreach($imagelist_posts_ids as $post_id) { if(!is_numeric($post_id)) continue; $img_url = fs_get_post_image($post_id, 'thumbnail'); if($img_url != "") { $post = get_post($post_id); echo '<li><div id="image_holder_'.($image_index++).'" class="thumbGalleryItem">'."\n"; echo ' <a href="'.get_permalink($post_id).'" title="'.$post->post_title.'">'."\n"; echo ' <span class="image_holder_span">'."\n"; echo ' <img title="'.$post->post_title.'" alt="'.$post->post_title.'" src="'.$img_url.'" />'."\n"; echo ' </span>'."\n"; echo ' ' . get_loading_span(110, 110) . "\n"; echo ' </a>'."\n"; echo '</div></li>'."\n"; } else echo '<li><a href="'.get_permalink($post_id).'"></a></li>'; if(++$c >= 7) break; } ?> </ul> <?php } ?> </div> <div class="clear"></div> <div id="footer" style="margin-top: 20px;"> <?php include(TEMPLATEPATH . "/includes/footer.php"); ?> </div> </div> </body> </html>Does anyone has the same issue ?
Good luck and thanks for your help !
Viewing 2 replies - 1 through 2 (of 2 total)