1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 织梦如何实现自动更新主页功能

织梦如何实现自动更新主页功能

时间:2022-06-01 20:31:06

相关推荐

织梦如何实现自动更新主页功能

CMS教程|DEDECMS

织梦

CMS教程-DEDECMS

javaee源码,ubuntu删除引导界面,爬虫抓取视频代码,非php后缀执行php文件,收录数据seolzw

武义广告信息网源码,vscode恢复快捷键默认,ubuntu定制版,tomcat本地地址占用,爬虫实战精选,php建站环境,台江区企业seo大概费用lzw

织梦如何实现自动更新主页功能?

电商小程序前后端源码,vscode做的网站成品,ubuntu没有CAN,tomcat服务没有安装,多肉爬虫,php zlib压缩,太极seo创业视频教程,电影网站自适应模版,网上购物模板lzw

织梦cms

织梦DEDECMS实现自动更新主页功能

GetOne("Select uptime From `cmsxx_arccache` where md5hash = autonew;"); if(!is_array($row)) exit(autonew(5)); $interval=60; //时间 秒 if(time() - $row[uptime] GetOne("Select * From cmsxx_homepageset"); $dsql->Close(); $templet=$row[ emplet]; $position=$row[position]; $homeFile = DEDEADMIN."/".$position; $homeFile = str_replace("\\","/",$homeFile); $homeFile = str_replace("//","/",$homeFile); $templet = str_replace("{style}",$cfg_df_style,$templet); $pv = new PartView(); $GLOBALS[\_arclistEnv] = index; $pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet); $pv->SaveToHtml($homeFile); } function autonew($no=\){ global $dsql;$sql = "SELECT id FROM `cmsxx_archives` where arcrank limit $no ;";$dsql->SetQuery($sql);$dsql->Execute();while($row = $dsql->GetArray()){ $id = $row[id]; $time = time() - rand(0,$interval * 10); $dsql->ExecuteNoneQuery("Update `cmsxx_arctiny` set `arcrank`=, `sortrank`=$time where id = $id;"); $dsql->ExecuteNoneQuery("Update `cmsxx_archives` set `arcrank`=, `sortrank`=$time, `pubdate`=$time where id = $id;");}machom($no);$dsql->ExecuteNoneQuery("Update `cmsxx_arccache` set `uptime`=".time()." where md5hash = autonew\"); } ?>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。