织梦DedeCMS 根据时间判断显示内容的代码

[复制链接]
查看1810 | 回复1 | 2019-8-27 13:58 | 显示全部楼层 |阅读模式
DedeCMS 根据时间判断显示内容的代码,代码如下:

以下为引用的内容:
[field:pubdate runphp='yes']
$ntime = time();
$oneday = 3600 * 24;
if(( @me-$ntime)>$oneday) @me = "看不到我";
else @me = "看的到我";
[/field:pubdate]

蚂蚁 | 2019-8-27 14:03 | 显示全部楼层
不错,支持一下,教程网!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-4-16