找资源's Archiver
社区首页
›
教程资源
› DedeCMS 根据时间判断显示内容的代码
muban大师
发表于 2019-1-10 10:59:04
DedeCMS 根据时间判断显示内容的代码
DedeCMS 根据时间判断显示内容的代码,代码如下:
以下为引用的内容:
[field:pubdate runphp='yes',
$ntime = time();
$oneday = 3600 * 24;
if(( @me-$ntime)>$oneday) @me = "看不到我";
else @me = "看的到我";
[/field:pubdate,
页:
[1]
查看完整版本:
DedeCMS 根据时间判断显示内容的代码