} else { extract($item); $totime = $totime ? timetodate($totime, 3) : ''; } break; case 'delete': $MG['delete'] or message(); $itemid or message(); $itemids = is_array($itemid) ? $itemid : array($itemid); foreach ($itemids as $itemid) { $do->itemid = $itemid; $item = $do->get_one(); if (!$item || $item['username'] != $_username) { message(); } $do->recycle($itemid); } dmsg($L['success_delete'], $forward); break; case 'refresh': $MG['refresh_limit'] > -1 or dalert(lang('message->without_permission_and_upgrade'), 'goback'); $do->_update($_username); $itemid or message($L['select_info']); $itemids = $itemid; $s = $f = 0; foreach ($itemids as $itemid) { $do->itemid = $itemid; $item = $do->get_one(); $could_refresh = $item && $item['username'] == $_username; if ($could_refresh && $MG['refresh_limit'] && $DT_TIME - $item['edittime'] < $MG['refresh_limit']) { $could_refresh = false;
is_array($itemid) or msg('请选择' . $MOD['name']); foreach ($itemid as $v) { $do->update($v); } dmsg('更新成功', $forward); break; case 'tohtml': is_array($itemid) or msg('请选择' . $MOD['name']); foreach ($itemid as $itemid) { tohtml('show', $module); } dmsg('生成成功', $forward); break; case 'delete': $itemid or msg('请选择' . $MOD['name']); isset($recycle) ? $do->recycle($itemid) : $do->delete($itemid); dmsg('删除成功', $forward); break; case 'restore': $itemid or msg('请选择' . $MOD['name']); $do->restore($itemid); dmsg('还原成功', $forward); break; case 'restore': $itemid or msg('请选择' . $MOD['name']); $do->restore($itemid); dmsg('还原成功', $forward); break; case 'refresh': $itemid or msg('请选择' . $MOD['name']); $do->refresh($itemid);