| | |
| | | } |
| | | |
| | | |
| | | // log in to imap server |
| | | if (!empty($RCMAIL->user->ID) && $RCMAIL->task == 'mail') { |
| | | if (!$RCMAIL->imap_connect()) { |
| | | $RCMAIL->kill_session(); |
| | | } |
| | | } |
| | | |
| | | |
| | | // check client X-header to verify request origin |
| | | if ($OUTPUT->ajax_call) { |
| | | if (!$RCMAIL->config->get('devel_mode') && !rc_request_header('X-RoundCube-Referer')) { |
| | |
| | | 'send' => 'sendmail.inc', |
| | | 'expunge' => 'folders.inc', |
| | | 'purge' => 'folders.inc', |
| | | 'remove-attachment' => 'compose.inc', |
| | | 'display-attachment' => 'compose.inc', |
| | | 'remove-attachment' => 'attachments.inc', |
| | | 'display-attachment' => 'attachments.inc', |
| | | 'upload' => 'attachments.inc', |
| | | ), |
| | | |
| | | 'addressbook' => array( |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | // make sure the message count is refreshed (for default view) |
| | | if ($RCMAIL->task == 'mail') { |
| | | $IMAP->messagecount($_SESSION['mbox'], 'ALL', true); |
| | | } |
| | | |
| | | // parse main template (default) |
| | | $OUTPUT->send($RCMAIL->task); |