2013-08-19 50 views
0

我有一個網站使用二十個主題,但最近我得到噸eval注射,現在我不能訪問該網站了。我得到wordpress注射主題不工作了

/** 
* 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('./wp-blog-header.php'); 

你可以看到它:http://wellnesste.com 我已經清理所有的惡意代碼,但仍然是相同的,任何想法?

的index.php

> <?php  
/** 

* The main template file. 

* 

* This is the most generic template file in a WordPress theme 

* and one of the two required files for a theme (the other being style.css). 

* It is used to display a page when nothing more specific matches a query. 

* E.g., it puts together the home page when no home.php file exists. 

* Learn more: http://codex.wordpress.org/Template_Hierarchy 

* 

* @package WordPress 

* @subpackage Twenty_Ten 

* @since Twenty Ten 1.0 

*/ 



get_header(); ?> 


    <div id="container"> 

     <div id="content" role="main"> 





     <? /* Run the loop to output the posts. 

     * If you want to overload this in a child theme then include a file 

     * called loop-index.php and that will be used instead. 

     */ 

     get_template_part('loop', 'index'); 



     </div><!-- #content --> 

    </div><!-- #container --> 
?> 
+0

請不要幫忙嗎?訪問網站時如何擺脫錯誤?在googleing 2個小時後真的跑出了選項:) – rid

回答

1

你的index.php文件丟失PHP包裝:

<?php 

//code 

?> 

要麼或者PHP沒有運行服務器。

+0

不缺,並且php正在運行.. – rid

+0

你確定嗎?當我查看http://wellnesste.com/的來源時,他們錯過了。嘗試添加一個phpinfo.php文件在你的網站的根目錄下,並使用下面的代碼:<?php phpinfo(); ?>。然後訪問http://wellnesste.com/phpinfo.php。這將確認php正在運行。 –

+0

我已經更新了index.php,以確保問題仍然存在。你可以在http://jsfiddle.net/HynhF/看到代碼,也請參閱:http://wellnesste.com/phpinfo.php乾杯 – rid