query($sql); $i = 1; while($row = $DB->fetch_array($result)){ if(file_exists(AUTOPUB_CACHE_DIR.$row['gid'].'.php')){ include_once(AUTOPUB_CACHE_DIR.$row['gid'].'.php'); }else{ $year = $month = $day = $hour = $minute = $second = ''; } $output .= '

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

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

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

'; } echo $output; } ?>
自动发布 插件设置完成 插件设置失败,请填写合理日期!年月日必填
"; $file = AUTOPUB_CACHE_DIR.$gid.'.php'; if($year != 0 && $month != 0 && $day != 0){ @ $fp = fopen($file, 'wb') OR emMsg('读取文件失败,如果您使用的是Unix/Linux主机,请修改/content/plugins/autopub/cache/目录的权限为777。如果您使用的是Windows主机,请联系管理员,将该文件设为everyone可写'); @ $fw = fwrite($fp,$data) OR emMsg('写入文件失败,如果您使用的是Unix/Linux主机,请修改/content/plugins/autopub/cache/目录的权限为777。如果您使用的是Windows主机,请联系管理员,将该文件设为everyone可写'); fclose($fp); }else{ return false; } } }