function del_picker($pid) { if (!$pid) { return; } DB::query('DELETE FROM ' . DB::table('strayer_url') . " WHERE pid= '{$pid}'"); pload('F:article'); article_batch_del($pid); del_pick_log($pid); DB::query('DELETE FROM ' . DB::table('strayer_picker') . " WHERE pid= '{$pid}'"); }
if ($_GET['clear'] || $_GET['submit'] == 2) { cache_del('pick' . $pid); } $info['save_data'] = load_cache('pick' . $pid); $info['no_check_url'] = intval($_GET['no_check_url']); $info['header'] = pick_header_output($header_config, $head_url); include template('milu_pick:get_article'); break; case 'pick_empty': if ($pid && $submit) { save_syscache('pick_run', TIMESTAMP); article_batch_del($pid); DB::query('DELETE FROM ' . DB::table('strayer_url') . " WHERE pid='{$pid}'"); $setarr = array('run_times' => 0, 'lastrun' => 0, 'nextrun' => 0); DB::update('strayer_picker', $setarr, array('pid' => $pid)); del_pick_log($pid); cpmsg(milu_lang('empty_finsh'), PICK_GO . "picker_manage", 'succeed'); } else { cpmsg(milu_lang('empty_pick_confirm'), PICK_GO . 'picker_manage&myaction=pick_empty&pid=' . $pid . '&submit=1', 'form'); } break; case 'pick_del': if ($pid && $submit) { del_picker($pid); cpmsg(milu_lang('del_finsh'), PICK_GO . "picker_manage", 'succeed'); } else { cpmsg(milu_lang('pick_del_confirm'), PICK_GO . 'picker_manage&myaction=pick_del&pid=' . $pid . '&submit=1', 'form'); } break; case 'export': $info['pick'] = get_pick_info();