Changeset 333c48c in github
- Timestamp:
- Feb 23, 2010 1:31:23 PM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 7481dd9
- Parents:
- 6a31558
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
plugins/squirrelmail_usercopy/squirrelmail_usercopy.php (modified) (3 diffs)
-
program/include/rcube_user.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r1617dbb r333c48c 2 2 =========================== 3 3 4 - Squirrelmail_usercopy: support reply-to field (#1486506) 4 5 - Fix IE spellcheck suggestion popup issue (#1486471) 5 6 - Fix email address auto-completion shows regexp pattern (#1486258) -
plugins/squirrelmail_usercopy/squirrelmail_usercopy.php
r9b94eb6 r333c48c 6 6 * Currently only file-based data storage of Squirrelmail is supported. 7 7 * 8 * @version 1. 08 * @version 1.1 9 9 * @author Thomas Bruederli 10 10 */ … … 34 34 public function create_identity($p) 35 35 { 36 $rcmail = rcmail::get_instance(); 37 36 38 // only execute on login 37 if ($ p['login']&& $this->prefs) {39 if ($rcmail->task == 'login' && $this->prefs) { 38 40 if ($this->prefs['full_name']) 39 41 $p['record']['name'] = $this->prefs['full_name']; … … 42 44 if ($this->prefs['signature']) 43 45 $p['record']['signature'] = $this->prefs['signature']; 44 46 if ($this->prefs['reply-to']) 47 $p['record']['reply-to'] = $this->prefs['reply-to']; 48 45 49 // copy address book 46 $rcmail = rcmail::get_instance();47 50 $contacts = $rcmail->get_address_book(null, true); 48 51 if ($contacts && count($this->abook)) { -
program/include/rcube_user.php
r6a31558 r333c48c 216 216 return false; 217 217 218 unset($data['user_id']); 219 218 220 $insert_cols = $insert_values = array(); 219 221 foreach ((array)$data as $col => $value) … … 423 425 'email' => $email, 424 426 'standard' => $standard, 425 'signature' => '',426 427 ), 427 428 )); 428 429 429 430 if (!$plugin['abort'] && $plugin['record']['email']) { 430 $dbh->query( 431 "INSERT INTO ".get_table_name('identities')." 432 (user_id, del, standard, name, email, signature) 433 VALUES (?, 0, ?, ?, ?, ?)", 434 $user_id, 435 $plugin['record']['standard'], 436 $plugin['record']['name'] != NULL ? $plugin['record']['name'] : '', 437 $plugin['record']['email'], 438 $plugin['record']['signature']); 431 $rcmail->user->insert_identity($plugin['record']); 439 432 } 440 433 $standard = 0;
Note: See TracChangeset
for help on using the changeset viewer.
