LZ这里少了一个字母!!!!- //抢楼插件 当流升级
- f (in_array($fid, $signinfids)) {
- require_once DISCUZ_ROOT.'./forumdata/cache/plugin_signin.php';
- $signin_begin = $_DPLUGIN['signin']['vars']['signin_begin'];
- $todayzero = strtotime(date('Ymd', $timestamp));
- $todayend = strtotime(date('Ymd', $timestamp)) + 86399;
- $signin_begint = $signin_begin*3600 + $todayzero;
-
- if ($timestamp < $signin_begint && $timestamp > $todayzero) {
- showmessage('未到抢楼时间,今日抢楼时间为 '.$signin_begin.':00 整,请返回耐心等待。', NULL, 'HALTED');
- }
- $query = $db->query("SELECT COUNT(*) FROM {$tablepre}threads WHERE fid='$fid' AND dateline>='$signin_begint' AND dateline<$todayend");
- $threadcount = $db->result($query, 0);
- if ($threadcount >= 1) {
- showmessage('对不起,已有人先你抢到今日楼主了,请返回明日继续。', 'forumdisplay.php?fid='.$fid);
- }
- }
- //抢楼插件 当流升级
复制代码 应该为:- //抢楼插件 当流升级
- if (in_array($fid, $signinfids)) {
- require_once DISCUZ_ROOT.'./forumdata/cache/plugin_signin.php';
- $signin_begin = $_DPLUGIN['signin']['vars']['signin_begin'];
- $todayzero = strtotime(date('Ymd', $timestamp));
- $todayend = strtotime(date('Ymd', $timestamp)) + 86399;
- $signin_begint = $signin_begin*3600 + $todayzero;
-
- if ($timestamp < $signin_begint && $timestamp > $todayzero) {
- showmessage('未到抢楼时间,今日抢楼时间为 '.$signin_begin.':00 整,请返回耐心等待。', NULL, 'HALTED');
- }
- $query = $db->query("SELECT COUNT(*) FROM {$tablepre}threads WHERE fid='$fid' AND dateline>='$signin_begint' AND dateline<$todayend");
- $threadcount = $db->result($query, 0);
- if ($threadcount >= 1) {
- showmessage('对不起,已有人先你抢到今日楼主了,请返回明日继续。', 'forumdisplay.php?fid='.$fid);
- }
- }
- //抢楼插件 当流升级
复制代码 |