This commit is contained in:
2012-10-31 21:13:20 +08:00
parent aa5ae34544
commit d5f3b47056
14 changed files with 223 additions and 264 deletions

21
autopub_cron.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
/**
* 自动发布插件
* @copyright (c) xiaosong.org All Rights Reserved
*/
ignore_user_abort(true);
set_time_limit(0);
if (!defined('EMLOG_ROOT')) {
require_once('../../../init.php');
}
do {
clearstatcache();
$run = EMLOG_ROOT.'/content/plugins/autopub/autopub_cron_pid.php';
if(!file_exists($run)) die('do nothing');
doPub();
sleep(30);
} while (true);
?>