diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-11-06 16:37:45 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-11-06 16:37:45 +0000 |
| commit | a9f64635ff48ca1acc281d6d199a6fe244360e38 (patch) | |
| tree | 8af43a8c8d795a444244b2b5713419da3f15c945 /roundcubemail/program/steps/mail | |
| parent | 54d37b816e754157fc7141ddb517e33f821feeed (diff) | |
Added 'changed' col to contacts table and support for 160-bit session hashes
git-svn-id: https://svn.roundcube.net/trunk@75 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail')
| -rw-r--r-- | roundcubemail/program/steps/mail/addcontact.inc | 4 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/addcontact.inc b/roundcubemail/program/steps/mail/addcontact.inc index 6ead67812..ad1544e71 100644 --- a/roundcubemail/program/steps/mail/addcontact.inc +++ b/roundcubemail/program/steps/mail/addcontact.inc @@ -42,8 +42,8 @@ if ($_GET['_address']) else if ($contact['mailto']) { $DB->query("INSERT INTO ".get_table_name('contacts')." - (user_id, name, email) - VALUES (?, ?, ?)", + (user_id, changed, name, email) + VALUES (?, now(), ?, ?)", $_SESSION['user_id'], $contact['name'], $contact['mailto']); diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 04196541b..e6c58a7c1 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -274,7 +274,8 @@ function rcmail_message_list($attrib) $attrib_str = create_attrib_string($attrib, array('style', 'class', 'id', 'cellpadding', 'cellspacing', 'border', 'summary')); $out = '<table' . $attrib_str . ">\n"; - + + // define list of cols to be displayed $a_show_cols = is_array($CONFIG['list_cols']) ? $CONFIG['list_cols'] : array('subject'); $a_sort_cols = array('subject', 'date', 'from', 'to'); @@ -283,6 +284,15 @@ function rcmail_message_list($attrib) if (strtolower($IMAP->get_mailbox_name())=='sent' && ($f = array_search('from', $a_show_cols))) $a_show_cols[$f] = 'to'; + // add col definition + $out .= '<colgroup>'; + $out .= '<col class="icon">'; + + foreach ($a_show_cols as $col) + $out .= sprintf('<col class="%s">', $col); + + $out .= '<col class="icon">'; + $out .= "</colgroup>\n"; // add table title $out .= "<thead><tr>\n<td class=\"icon\"> </td>\n"; |
