⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 delete.inc

📁 开源邮件管理系统
💻 INC
字号:
<?php/* +-----------------------------------------------------------------------+ | program/steps/addressbook/delete.inc                                  | |                                                                       | | This file is part of the RoundCube Webmail client                     | | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 | | Licensed under the GNU GPL                                            | |                                                                       | | PURPOSE:                                                              | |   Delete the submitted contacts (CIDs) from the users address book    | |                                                                       | +-----------------------------------------------------------------------+ | Author: Thomas Bruederli <roundcube@gmail.com>                        | +-----------------------------------------------------------------------+ $Id: delete.inc 1361 2008-05-07 22:16:00Z richs $*/if (($cid = get_input_value('_cid', RCUBE_INPUT_POST)) &&    (preg_match('/^[0-9]+(,[0-9]+)*$/', $cid) ||     preg_match('/^[a-zA-Z0-9=]+(,[a-zA-Z0-9=]+)*$/', $cid))   )  {  $deleted = $CONTACTS->delete($cid);  if (!$deleted)    {    // send error message    exit;    }  // count contacts for this user  $result = $CONTACTS->count();  // update message count display  $OUTPUT->set_env('pagecount', ceil($result->count / $CONTACTS->page_size));  $OUTPUT->command('set_rowcount', rcmail_get_rowcount_text($result->count));  // add new rows from next page (if any)  $pages = ceil(($result->count + $deleted) / $CONTACTS->page_size);  if ($_GET['_from'] != 'show' && $pages > 1 && $CONTACTS->list_page < $pages)    rcmail_js_contacts_list($CONTACTS->list_records(null, -$deleted));  // send response  $OUTPUT->send();  }exit;?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -