一步步教你做电商网站,黑龙江省住房与城乡建设厅网站,wordpress可以支持m3u8吗,深圳网站建站的公司比如你网站采集了成千上万篇文章#xff0c;不可能一下子全部放出来的#xff0c;所以为了模拟人工发布#xff0c;那么就需要定时审核发布文章内容#xff0c;本文内容核心解决了更加个性化的逼真模拟人工更新网站内容。 第一#xff1a;首先要满足你的表中有未审核的数据… 比如你网站采集了成千上万篇文章不可能一下子全部放出来的所以为了模拟人工发布那么就需要定时审核发布文章内容本文内容核心解决了更加个性化的逼真模拟人工更新网站内容。 第一首先要满足你的表中有未审核的数据 第二到http://bbs.phome.net/showthread-31-196160-0.html 下载定时更新插件 第三在插件的文件夹中创建checked.php 内容如下
?php
require(../../class/connect.php);
require(../../class/db_sql.php);
require(../../class/functions.php);
require ../.LoadLang(pub/fun.php);
require(../../class/delpath.php);
require(../../class/copypath.php);
require(../../class/t_functions.php);
require(../../data/dbcache/class.php);
require(../../data/dbcache/MemberLevel.php);
$linkdb_connect();
$empirenew mysqlquery();
$editor1;
//更新标准表开始
$update1$empire-query(select * from {$dbtbpre}ecms_biaozhun_index where checked0 order by id ASC limit 80); //随机取信息请用order by rand()
$rowCounter 0;
while($r1$empire-fetch($update1)){$rowCounter; // 增加行计数器 $id$r1[id];$classid$r1[classid];$baseTime time(); // 当前时间 $increment 180; // 每次递增的秒数可以调整 $infouptime $baseTime ($increment * $rowCounter); // 上线时间 $pubidReturnInfoPubid($classid,$id);$copyids;$num1$empire-gettotal(select count(*) as total from {$dbtbpre}enewsinfovote where pubid$pubid);$nihoam1$empire-query(update {$dbtbpre}ecms_biaozhun_check set newstime$infouptime where id$id);if($num1) //修改{$empire-query(update {$dbtbpre}enewsinfovote set copyids$copyids,infouptime$infouptime where pubid$pubid limit 1);}else //增加{$intime$empire-query(insert into {$dbtbpre}enewsinfovote(pubid,id,classid,infouptime,copyids) values ($pubid,$id,$classid,$infouptime,$copyids););}
}
//更新标准表结束
?
其中注意你的表名
宝塔中设置如下图
http://baidu.com/e/extend/DoTimeRepage/checked.php 继续增加/e/extend/DoTimeRepage/ 定时审核教程结束