Changeset 5543 in subversion
- Timestamp:
- Dec 5, 2011 2:24:36 AM (18 months ago)
- Location:
- branches/release-0.7
- Files:
-
- 6 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_mdb2.php (modified) (2 diffs)
-
program/js/app.js (modified) (1 diff)
-
program/steps/mail/attachments.inc (modified) (6 diffs)
-
program/steps/mail/compose.inc (modified) (1 diff)
-
program/steps/settings/save_prefs.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-0.7/CHANGELOG
r5527 r5543 2 2 =========================== 3 3 4 - Fix navigation in messages search results 4 5 - Improved handling of some malformed values encoded with quoted-printable (#1488232) 5 6 - Add possibility to do LDAP bind before searching for bind DN -
branches/release-0.7/program/include/rcube_mdb2.php
r5402 r5543 92 92 $db_options['seqname_format'] = '%s'; 93 93 } 94 $this->db_error = false; 95 $this->db_error_msg = null; 94 96 95 97 $dbh = MDB2::connect($dsn, $db_options); … … 145 147 $this->db_handle = $this->dsn_connect($dsn); 146 148 $this->db_connected = !PEAR::isError($this->db_handle); 149 150 // use write-master when read-only fails 151 if (!$this->db_connected && $mode == 'r') { 152 $mode = 'w'; 153 $this->db_handle = $this->dsn_connect($this->db_dsnw); 154 $this->db_connected = !PEAR::isError($this->db_handle); 155 } 147 156 148 157 if ($this->db_connected) -
branches/release-0.7/program/js/app.js
r5499 r5543 229 229 230 230 if (this.env.action == 'show') { 231 this.http_request('pagenav', '_uid='+this.env.uid+'&_mbox='+urlencode(this.env.mailbox), 231 this.http_request('pagenav', '_uid='+this.env.uid+'&_mbox='+urlencode(this.env.mailbox) 232 + (this.env.search_request ? '&_search='+this.env.search_request : ''), 232 233 this.display_message('', 'loading')); 233 234 } -
branches/release-0.7/program/steps/mail/attachments.inc
r5226 r5543 26 26 27 27 $COMPOSE_ID = get_input_value('_id', RCUBE_INPUT_GPC); 28 $ _SESSION['compose'] = $_SESSION['compose_data_'.$COMPOSE_ID];28 $COMPOSE = null; 29 29 30 if (!$_SESSION['compose']) { 30 if ($COMPOSE_ID && $_SESSION['compose_data_'.$COMPOSE_ID]) 31 $COMPOSE =& $_SESSION['compose_data_'.$COMPOSE_ID]; 32 33 if (!$COMPOSE) { 31 34 die("Invalid session var!"); 32 35 } … … 39 42 if (preg_match('/^rcmfile(\w+)$/', $_POST['_file'], $regs)) 40 43 $id = $regs[1]; 41 if ($attachment = $ _SESSION['compose']['attachments'][$id])44 if ($attachment = $COMPOSE['attachments'][$id]) 42 45 $attachment = $RCMAIL->plugins->exec_hook('attachment_delete', $attachment); 43 46 if ($attachment['status']) { 44 if (is_array($ _SESSION['compose']['attachments'][$id])) {45 unset($ _SESSION['compose']['attachments'][$id]);47 if (is_array($COMPOSE['attachments'][$id])) { 48 unset($COMPOSE['attachments'][$id]); 46 49 $OUTPUT->command('remove_from_attachment_list', "rcmfile$id"); 47 50 } 48 51 } 49 52 50 53 $OUTPUT->send(); 51 54 exit; … … 57 60 if (preg_match('/^rcmfile(\w+)$/', $_GET['_file'], $regs)) 58 61 $id = $regs[1]; 59 if ($attachment = $ _SESSION['compose']['attachments'][$id])62 if ($attachment = $COMPOSE['attachments'][$id]) 60 63 $attachment = $RCMAIL->plugins->exec_hook('attachment_display', $attachment); 61 64 62 65 if ($attachment['status']) { 63 66 if (empty($attachment['size'])) … … 66 69 header('Content-Type: ' . $attachment['mimetype']); 67 70 header('Content-Length: ' . $attachment['size']); 68 71 69 72 if ($attachment['data']) 70 73 echo $attachment['data']; … … 77 80 // attachment upload action 78 81 79 if (!is_array($ _SESSION['compose']['attachments'])) {80 $ _SESSION['compose']['attachments'] = array();82 if (!is_array($COMPOSE['attachments'])) { 83 $COMPOSE['attachments'] = array(); 81 84 } 82 85 … … 108 111 // store new attachment in session 109 112 unset($attachment['status'], $attachment['abort']); 110 $ _SESSION['compose']['attachments'][$id] = $attachment;113 $COMPOSE['attachments'][$id] = $attachment; 111 114 112 if (($icon = $ _SESSION['compose']['deleteicon']) && is_file($icon)) {115 if (($icon = $COMPOSE['deleteicon']) && is_file($icon)) { 113 116 $button = html::img(array( 114 117 'src' => $icon, -
branches/release-0.7/program/steps/mail/compose.inc
r5527 r5543 347 347 // we have a set of recipients stored is session 348 348 if ($header == 'to' && ($mailto_id = $COMPOSE['param']['mailto']) 349 && $ COMPOSE[$mailto_id]349 && $_SESSION['mailto'][$mailto_id] 350 350 ) { 351 $fvalue = urldecode($ COMPOSE[$mailto_id]);351 $fvalue = urldecode($_SESSION['mailto'][$mailto_id]); 352 352 $decode_header = false; 353 354 // make session to not grow up too much 355 unset($_SESSION['mailto'][$mailto_id]); 356 $COMPOSE['param']['to'] = $fvalue; 353 357 } 354 358 else if (!empty($_POST['_'.$header])) { -
branches/release-0.7/program/steps/settings/save_prefs.inc
r5415 r5543 146 146 if (!$OUTPUT->set_skin($a_user_prefs['skin'])) 147 147 unset($a_user_prefs['skin']); 148 else if ($RCMAIL->config->get('skin') != $a_user_prefs['skin']) 149 $OUTPUT->command('reload', 500); 148 150 149 151 // force min size
Note: See TracChangeset
for help on using the changeset viewer.
