| | |
| | | // replace all strings ($varname) with the content of the according global variable |
| | | function parse_with_globals($input) |
| | | { |
| | | $GLOBALS['__comm_path'] = $GLOBALS['COMM_PATH']; |
| | | $output = preg_replace('/\$(__[a-z0-9_\-]+)/e', '$GLOBALS["\\1"]', $input); |
| | | return $output; |
| | | } |
| | |
| | | |
| | | // sort headers by a specific col |
| | | $a_headers = iil_SortHeaders($a_msg_headers, $sort_field, $sort_order); |
| | | $headers_count = count($a_headers); |
| | | |
| | | // free memory |
| | | unset($a_msg_headers); |
| | |
| | | // write headers list to cache |
| | | if (!$headers_cached) |
| | | $this->update_cache($mailbox.'.msg', $a_headers); |
| | | |
| | | // update message count cache |
| | | $a_mailbox_cache = $this->get_cache('messagecount'); |
| | | if (isset($a_mailbox_cache[$mailbox]['ALL']) && $a_mailbox_cache[$mailbox]['ALL'] != $headers_count) |
| | | { |
| | | $a_mailbox_cache[$mailbox]['ALL'] = (int)$headers_count; |
| | | $this->update_cache('messagecount', $a_mailbox_cache); |
| | | } |
| | | |
| | | if (empty($a_headers)) |
| | | return array(); |
| | |
| | | } |
| | | |
| | | // part is file/attachment |
| | | else if ($mail_part->disposition=='attachment' || $mail_part->disposition=='inline' || $mail_part->headers['content-id']) |
| | | else if ($mail_part->disposition=='attachment' || $mail_part->disposition=='inline' || $mail_part->headers['content-id'] || |
| | | (empty($mail_part->disposition) && ($mail_part->d_parameters['filename'] || $mail_part->d_parameters['name']))) |
| | | { |
| | | if ($message_ctype_secondary=='related' && $mail_part->headers['content-id']) |
| | | $sa_inline_objects[] = array('filename' => $mail_part->d_parameters['filename'], |
| | |
| | | <link rel="index" href="$__comm_path" /> |
| | | <link rel="shortcut icon" href="/images/favicon.ico"/> |
| | | <link rel="stylesheet" type="text/css" href="/common.css" /> |
| | |
| | | <roundcube:include file="/includes/links.html" /> |
| | | <style type="text/css"> |
| | | |
| | | #login-form |
| | | { |
| | | margin-left: auto; |
| | | margin-right: auto; |
| | | margin-top: 50px; |
| | | width: 350px; |
| | | } |
| | | #login-form { |
| | | margin-left: auto; |
| | | margin-right: auto; |
| | | margin-top: 50px; |
| | | width: 350px; |
| | | } |
| | | |
| | | </style> |
| | | </head> |