php168 b2b发表文章时更新文章所在的栏目页
写这篇文章之前先鄙视下php168 b2b,系统是在太垃圾了,也好意思拿出来卖,还加密!严重鄙视!下面说下修改方法
修改inc/artic_function.php所在的页面
将
write_file(PHP168_PATH.”cache/makelist.php”,”<?php\r\n\$allfid=’$fidDB[fid]‘;\$JumpUrl=’$comebackurl’;”);
修改为
$fupid=$fidDB[fup]?”,$fidDB[fup]“:”;
write_file(PHP168_PATH.”cache/makelist.php”,”<?php\r\n\$allfid=’$fidDB[fid]$fupid’;\$JumpUrl=’$comebackurl’;”);
如果所在的栏目为三级栏目的话则还需要修改栏目所在的父栏目的父栏目,修改如下
$fupid=$fidDB[fup]?”,$fidDB[fup]“:”;
$grandfid=$db->get_one(”SELECT fup FROM `{$pre}sort` WHERE fid=’$fidDB[fup]‘”);
if($grandfid){$fupid2=”,$grandfid[fup]“;}
write_file(PHP168_PATH.”cache/makelist.php”,”<?php\r\n\$allfid=’$fidDB[fid]$fupid$fupid2′;\$JumpUrl=’$comebackurl’;”);
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments
还没有评论。
发表评论