Zblog (non js) calls the method of discuz post
<?php if(!defined('IN_DISCUZ')) { exit('Access Denied'); } //Separate id (modify fid according to your needs, and the number 5 at the end represents the number of calls) $query01 = DB:: query("SELECT tid,subject,dateline FROM ".DB::table('forum_thread')." where fid=71 AND displayorder>=0 order by dateline desc limit 0,5"); while ($value = DB:: fetch($query01)) { $txtstr01.="<dd><span>[". date ("m month d day", $value ['dateline ']). "]</span><a href='/bbs/forum. php? mod=viewthread&tid=".$value['tid']."&extra=page%3D1' target='_blank' title='".$value['subject']."'>".$value['subject']."</a></dd>\n"; } file_put_contents('../zb_users/theme/b2c/include/news01.html', $txtstr01); //Multiple IDs (modify fid according to your needs, and the number 5 at the end represents the number of calls) $query02 = DB:: query("SELECT tid,subject,dateline FROM ".DB::table('forum_thread')." where fid in (51,52,55,66,68,69,72,73,74,75,76,77,78,79,80,81,82,83,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103) AND displayorder>=0 order by dateline desc limit 0,5"); while ($value = DB:: fetch($query02)) { $txtstr02.="<dd><span>[". date ("m month d day", $value ['dateline ']). "]</span><a href='/bbs/forum. php? mod=viewthread&tid=".$value['tid']."&extra=page%3D1' target='_blank' title='".$value['subject']."'>".$value['subject']."</a></dd>\n"; } file_put_contents('../zb_users/theme/b2c/include/news02.html', $txtstr02); ?>
Related articles
How to build a JSP environment on the server and what software needs to be installed? Record the optimization process of simple and complex switching font Zblog removes the word "last edit" from the comment Jquery gets the browser height, width, and scroll bar height Pi recitation tool Move the mouse over the link to change the color continuously