帮忙看看这段PHP程序的错误出在哪

来源:百度知道 编辑:UC知道 时间:2024/07/03 09:05:38
一个DISCUZ插件程序,之前用了ZEND加密,其它文件经过DEZEND解密后运行正常,经过反复测试,唯独这个提交页面文件运行不正常,运行时页面显示一片空白。数据库一切正常,问题肯定出在这个页面的代码上了,因为将这个页面的原始文件进行替换后马上可以正常运行(其余页面均保持原样)。请行家帮忙看下这些代码DEZEND解密后是否有语法上的错误?

<?php
if ( !defined( "IN_DISCUZ" ) )
{
exit( "Access Denied" );
}
if ( isset( $plan ) )
{
if ( defined( "DZ41" ) )
{
$db->query( "update {$tablepre}threads set poll='2' where tid='{$tid}'" );
}
if ( defined( "DZ50" ) || defined( "DZ60" ) )
{
$db->query( "update {$tablepre}threads set special='9' where tid='{$tid}'" );
}
@include_once( "plan.class.php" );
$applylimit = intval( $applylimit );
$p = new plan( $tid, false );
$allowpet = 0;
if ( $penablepet )
{
$allowpet += $allowcat ? 1 : 0;
$allowpet += $allowdog ? 2 : 0;
}
$offsetdiff = $_DCACHE[setti

是否第一句做乱:
if ( !defined( "IN_DISCUZ" ) )
{
exit( "Access Denied" );
}

是否没有收到变量的值:
if ( isset( $plan ) )

这么短的程序,你一步一步的调试就知道了,不同地方插入echo "ok"这样的语句,看程序是怎么走的。