function fastpick_export() { global $_G; $id = $_GET['id']; if (!$id) { cpmsg_error(milu_pick('select_rules')); } $rules_info = fastpick_info($id); unset($rules_info['id']); $args = array('type' => milu_lang('fastpick_rules'), 'author' => $_G['setting']['bbname'], 'rules_name' => $rules_info['rules_name'], 'rule_desc' => $rules_info['rule_desc']); $info['version'] = PICK_VERSION; exportfile($rules_info, $rules_info['rules_name'], $args); }
function rules_export() { global $_G; $rid = $_GET['rid']; if (!$rid) { cpmsg_error(milu_pick('select_rules')); } $rules_info = get_rules_info($rid); unset($rules_info['rid']); exportfile($rules_info, $rules_info['rules_name']); }