DEDECMS V5.6 修改: include/channelunit.func.php
DEDECMS V5.7 修改: include/helpers/channelunit.helper.php
将:
- retu $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'])){
- retu $GLOBALS['cfg_phpurl']."/view.php?aid=$aid";
- }else{
- retu $chRow['redirecturl'];
- }
一起学吧部分文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与一起学吧进行文章共享合作。