dedecms显示最近浏览文章代码,dedecms
导读:dedecmsdedecmsdedecms显示最近浏览文章的源代码分享。织梦模板织梦手机模板。
有时为了用户体验,我们想知道最近客户都浏览了什么页面,那么怎么调用呢?下面分享下代码require_once(dirname(__FILE__)."/../include/common.inc.php");require_once(dirname(__FILE__)."/../member/config.php");global $cfg_ml;
$mid=$cfg_ml->M_ID;$joinip = GetIP();//当前时间戳$nowTime = time();
if($mid){
$row = $dsql->GetOne(" Select * From `xjq_zj` where aid='$aid' and mid='$mid'");if(!$row){$dsql->ExecuteNoneQuery("INSERT INTO xjq_zj( `id`, `mid`, `ip`,`aid` ,`logintime`)VALUES ( '',$mid, '$j织梦首页模板oinip',$aid,$nowTime) ");}$db->SetQuery(" Select title,xjq_archives.id From xjq_archives join xjq_zj on xjq_archives.id=xjq_zj.aid where xjq_zj.mid='$mid' order by logintime desc limit 1,5"); $db->Execute(); while($row = $db->GetArray()) {echo "document.write(\"\");\r\n";}
}if(!$mid){$m = $dsql->Get织梦模板One(" Select * From `xjq_zjw` where aid='$aid' and ip='$jodede商城模板inip'");if(!$m){$dsql->ExecuteNoneQuery("INSERT INTO xjq_zjw( `id`, `mid`, `ip`,`aid` ,`logintime`)VALUES ( '',$mid, '$joinip',$aid,$nowTime) ");}$db->SetQuery(" Select title,xjq_archives.id From xjq_archives join xjq_zj on xjq_archives.id=xjq_zj.aid where xjq_zjw.ip='$joinip' order by logintime desc limit 1,5"); $db->Execute(); while($row = $db->GetArray()) {echo "document.write(\"\");\r\n";}
}
exit();
?>
相关织梦模板织梦手机模板。声明: 本文由我的SEOUC技术文章主页发布于:2023-07-21 ,文章dedecms显示最近浏览文章代码,dedecms主要讲述最近,代码,dedecms网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_32566.html