Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/239.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Wordpress语法错误,eval()';d代码_Php_Wordpress - Fatal编程技术网

Php Wordpress语法错误,eval()';d代码

Php Wordpress语法错误,eval()';d代码,php,wordpress,Php,Wordpress,我正在使用Wordpress,现在有以下错误消息: 分析错误:语法错误,意外“;”在/www/htdocs/w006fce9/endax/wp content/plugins/insert php/insert_php.php(48):eval()第3行的代码中 源代码: if( ! function_exists('will_bontrager_insert_php') ) { function will_bontrager_insert_php($content) {

我正在使用Wordpress,现在有以下错误消息:

分析错误:语法错误,意外“;”在/www/htdocs/w006fce9/endax/wp content/plugins/insert php/insert_php.php(48):eval()第3行的代码中

源代码:

if( ! function_exists('will_bontrager_insert_php') )
{

    function will_bontrager_insert_php($content)
    {
        $will_bontrager_content = $content;
        preg_match_all('!\[insert_php[^\]]*\](.*?)\[/insert_php[^\]]*\]!is',$will_bontrager_content,$will_bontrager_matches);
        $will_bontrager_nummatches = count($will_bontrager_matches[0]);
        for( $will_bontrager_i=0; $will_bontrager_i<$will_bontrager_nummatches; $will_bontrager_i++ )
        {
            ob_start();
            eval($will_bontrager_matches[1][$will_bontrager_i]);
            $will_bontrager_replacement = ob_get_contents();
            ob_clean();
            ob_end_flush();
            $will_bontrager_content = preg_replace('/'.preg_quote($will_bontrager_matches[0][$will_bontrager_i],'/').'/',$will_bontrager_replacement,$will_bontrager_content,1);
        }
        return $will_bontrager_content;
    } # function will_bontrager_insert_php()

    add_filter( 'the_content', 'will_bontrager_insert_php', 9 );

} # if( ! function_exists('will_bontrager_insert_php') )
如果(!function_存在('will_bontrager_insert_php'))
{
函数将\u bontrager\u insert\u php($content)
{
$will\u bontrager\u content=$content;
preg\u match\u all(“!\[insert\u php[^\]*\](.*)\[/insert\u php[^\]*\]!is',$will\u bontrager\u content,$will\u bontrager\u matches);
$will_bontrager_nummatches=计数($will_bontrager_matches[0]);

对于($will_bontrager_i=0;$will_bontrager_i insert_php.php文件的第47行和第48行怎么说?我看不出这段代码中有错误,我强烈建议不要使用这个插件。如果你的网站被破坏,任何使用
eval
函数的代码都很容易被滥用。例如,某个野蛮人强迫一个只能创建po的低级帐户sts…他们看到这个插件现在可用了,他们可以在你的网站上运行他们想要的任何代码。insert_php.php文件的第47行和第48行说了什么?我看不出这段代码中有错误。我强烈建议不要使用这个插件。如果你的网站被破坏,任何使用
eval
函数的代码都很容易被滥用。例如,某个野蛮人强制一个只能创建帖子的低级帐户…他们看到这个插件现在可用,他们可以在你的网站上运行他们想要的任何代码。