DEDECMS V5.6 修改: include/channelunit.func.phpDEDECMS V5.7 修改: include/helpers/channelunit.helper.php将:
return $GLOBALS[‘cfg_phpurl’]."/view.php?aid=$aid";
改为:
global $dsql; $chRow = $dsql->GetOne("Select * From ` a,`dede_archives` b where a.aid=’$aid’ and b.id=’$aid’ and b.flag like ‘%j%’ "); if(empty($chRow[‘redirecturl’])){ return $GLOBALS[‘cfg_phpurl’]."/view.php?aid=$aid"; }else{ return $chRow[‘redirecturl’]; }
自己要先看得起自己,别人才会看得起你