首先,浏览上一章 织梦 PHP 实现织梦发布功能
把发布织梦的语句修改为:
$sqlAdd = "INSERT INTO dede_addonarticle(aid, typeid, body, redirecturl, templet, userip) VALUES ('$dataid','$typeid','$content','','','127.0.0.1')";
$sqlAdd2 = "INSERT INTO dede_arctiny (id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid) VALUES ('$dataid', '$typeid', '-1', '0', '1', '$date', '$date', '1')";
$sqlAdd3 = "INSERT INTO dede_archives (id, typeid, typeid2, sortrank, flag, ismake, channel, arcrank, click, money, title, shorttitle, color, writer, source, litpic, pubdate, senddate, mid, keywords, lastpost, scores, goodpost, badpost, voteid, notpost, description, filename, dutyadmin, tackid, mtype, weight) VALUES ('$dataid', '$typeid', '0', '$date', NULL, '1', '1', '0', '$click', '0', '$title', '', '', '$writer', '未知', '', '$date', '$date', '1', '$title', '0', '0', '0', '0', '', '0', '$description', '', '1', '0', '0', '0')";
$sqlUpdata = "Update dede_archives set arcrank =-1,ismake=0,dutyadmin =1,tackid=0 WHERE id=$dataid";
这时发布到织梦的文章设置为未审核状态