function callback_inactive() { global $m; $m->query("DROP TABLE IF EXISTS `" . DB_PREFIX . "pch18_relist`"); $m->query("DELETE FROM `" . DB_NAME . "`.`" . DB_PREFIX . "options` WHERE `name`= 'relist'"); cron::del('pch18_relist'); }
function callback_remove() { cron::del('reg_supervise'); option::xdel('reg_supervise'); global $m; $m->query('DROP TABLE `' . DB_NAME . '`.`' . DB_PREFIX . 'reg`'); option::del('reg_supervise_run'); }
function callback_inactive() { cron::del('weixinArticle'); }
function callback_inactive() { cron::del('wmzz_ban'); }
function callback_inactive() { cron::del('mok_zdwk'); }
Redirect('index.php?mod=admin:users&ok'); break; default: msg('未定义操作'); break; } Redirect('index.php?mod=admin:users&ok'); break; case 'admin:cron': doAction('cron_setting_1'); if (!empty($_GET['act'])) { cron::aset($_GET['act'], array('no' => 0)); } elseif (!empty($_GET['dis'])) { cron::aset($_GET['dis'], array('no' => 1)); } elseif (isset($_GET['uninst'])) { cron::del($_GET['uninst']); } elseif (isset($_GET['add'])) { if (stripos($_POST['file'], 'do.php') !== false) { msg('<h4>请不要将do.php加入到云签的计划任务中来</h4>若需签到,请用云监控监控<br/>' . SYSTEM_URL . 'do.php<br/>即可实现计划任务(cron)的效果<br/><br/>推荐云监控:<a href="http://www.aliyun.com/product/jiankong/" target="_blank">阿里云监控</a> 或 <a href="http://jk.cloud.360.cn/" target="_blank">360网站服务监控</a> 或 <a href="http://ce.baidu.com/" target="_blank">百度云观测</a><br/>如果你的服务器在国外且国内访问较慢,则推荐使用:<a href="http://www.mywebcron.com/" target="_blank">Free Web Cron Service </a>', SYSTEM_URL . 'index.php?mod=admin:cron'); } else { cron::set($_POST['name'], $_POST['file'], $_POST['no'], $_POST['status'], $_POST['freq'], $_POST['lastdo'], $_POST['log']); } } elseif (isset($_GET['run'])) { $return = cron::run($_GET['file'], $_GET['run']); cron::aset($_GET['run'], array('lastdo' => time(), 'log' => $return)); } elseif (isset($_GET['xorder'])) { foreach ($_POST['order'] as $key => $value) { cron::aset($key, array('orde' => $value)); } } doAction('cron_setting_2');
} } if (isset($_GET['in_thread'])) { define('SYSTEM_CRON_THREAD', true); } doAction('cron_1'); if (SYSTEM_PAGE == 'runcron') { $cron = isset($_GET['cron']) ? sqladds(strip_tags($_GET['cron'])) : msg('运行失败:计划任务未指定'); $cpw = option::get('cron_pw'); $x = $m->once_fetch_array("SELECT * FROM `" . DB_PREFIX . "cron` WHERE `name` = '{$cron}';"); if (empty($x['id'])) { msg('运行失败:此计划任务不存在'); } $log = cron::run($x['file'], $x['name']); if ($x['freq'] == '-1') { cron::del($x['name']); } else { cron::aset($x['name'], array('lastdo' => time(), 'log' => $log)); } } else { $sign_multith = option::get('sign_multith'); if (!isset($_GET['donnot_sign_multith']) && !empty($sign_multith) && function_exists('fsockopen')) { for ($ii = 0; $ii < $sign_multith; $ii++) { sendRequest(SYSTEM_URL . 'do.php?donnot_sign_multith&in_thread&pw=' . $cron_pw); } } $return = ''; if (option::get('cron_last_do_time') != $today) { option::set('cron_last_do_time', $today); option::set('cron_last_do', '0'); }
function callback_remove() { //global $m; //$m->query("DROP TABLE IF EXISTS `".DB_NAME."`.`".DB_PREFIX."tdou_log`"); cron::del('signtz_mail'); }
function callback_inactive() { cron::del('wmzz_post'); }
function callback_inactive() { cron::del('verifyTiezi'); }
function callback_inactive() { cron::del('lwl12_resign'); }
function callback_inactive() { cron::del('dl_yjtz'); }
function callback_inactive() { cron::del('dl_backup'); }