| | |
| | | } |
| | | } |
| | | |
| | | if ($_action=='display-attachment' && preg_match('/^rcmfile([0-9]+)$/', $_GET['_file'], $regs)) |
| | | { |
| | | $id = $regs[1]; |
| | | if (is_array($_SESSION['compose']['attachments'][$id])) |
| | | { |
| | | $apath = $_SESSION['compose']['attachments'][$id]['path']; |
| | | header('Content-Type: ' . $_SESSION['compose']['attachments'][$id]['mimetype']); |
| | | header('Content-Length: ' . filesize($apath)); |
| | | readfile($apath); |
| | | } |
| | | exit; |
| | | } |
| | | |
| | | $MESSAGE_FORM = NULL; |
| | | $MESSAGE = NULL; |
| | |
| | | { |
| | | $_SESSION['compose']['draft_uid'] = $msg_uid; |
| | | } |
| | | |
| | | } |
| | | |
| | | /****** compose mode functions ********/ |
| | |
| | | $allow_attrib = array('id', 'class', 'style', 'size', 'tabindex'); |
| | | $field_type = 'textfield'; |
| | | break; |
| | | |
| | | } |
| | | |
| | | if ($fname && !empty($_POST[$fname])) |
| | |
| | | |
| | | return $out; |
| | | } |
| | | |
| | | |
| | | |
| | | function rcmail_compose_body($attrib) |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | function rcmail_compose_attachment_form($attrib) |
| | | { |
| | | global $OUTPUT, $SESS_HIDDEN_FIELD; |
| | |
| | | 'receiptcheckbox' => 'rcmail_receipt_checkbox', |
| | | )); |
| | | |
| | | |
| | | /****** get contacts for this user and add them to client scripts ********/ |
| | | |
| | | require_once('include/rcube_contacts.inc'); |
| | |
| | | |
| | | $OUTPUT->set_env('contacts', $a_contacts); |
| | | } |
| | | |
| | | |
| | | parse_template('compose'); |
| | | ?> |