Php wordpress注入主题不再工作
我有一个网站使用了210主题,但最近我得到了大量的评估注射,现在我无法访问该网站了。我明白了Php wordpress注入主题不再工作,php,sql,wordpress,eval,Php,Sql,Wordpress,Eval,我有一个网站使用了210主题,但最近我得到了大量的评估注射,现在我无法访问该网站了。我明白了 /** * 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
/**
* 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');
您可以在以下网址查看:
我已经清除了所有的恶意代码,但仍然是一样的,有什么想法吗
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 -->
?>
>
您的index.php文档缺少php包装:
<?php
//code
?>
要么就是php没有运行您的服务器。来吧,没有帮助吗?访问站点时如何消除错误?在谷歌搜索了两个小时后,真的没有选择了:)没有丢失,php正在运行..你确定吗?当我看到他们失踪的源头时。尝试在站点根目录中添加phpinfo.php文件,并在其中包含以下代码:。那就去。这将确认php正在运行。我已经更新了index.php以确保问题仍然存在。你可以在这里看到代码,也请看:Cheerssory,我不是指twentyten的index.php,我是指你的Wordpress root的index.php。或者,无论哪个文件的开头是这样的:
放在WordPress应用程序的前面…
。那个文件似乎有问题。如果不是,请验证您的.htaccess文件是否正确,如果有疑问,请替换为默认文件。非常感谢,谢谢!