query($sql); $i = 1; while ($row = $DB->fetch_array($result)) { $key = 'post-'.$row['gid']; if (isset($autopubArray[$key])) { $pub_time = gmdate('Y-m-d H:i:s', $autopubArray[$key] + $timezone * 3600); } else { $pub_time = ''; } $output .= '

'; $output .= $i.'、'.$row['title'].'  '; $output .= '预发布时间:  '; $output .= '

'; $i++; } if (empty($output)) { $output = '

暂无待发布日志!请将待发布日志保存为草稿!

'; } echo $output; } ?>
自动发布 插件设置完成 插件设置失败

插件设置:

自动发布列表:

0 && !empty($pubTime)) { $key = 'post-'.$gid; $autopubArray[$key] = emStrtotime($pubTime); } else { return false; } } Option::updateOption('autopub', serialize($autopubArray)); $CACHE = Cache::getInstance(); $CACHE->updateCache('options'); }