Patches for 20051021 release
| | |
| | | - replace index.php |
| | | - replace all files in folder /program/ |
| | | - replace all files in folder /skins/default/ |
| | | - add $rcmail_config['smtp_auth_type'] if you need to specify an auth method for SMTP |
| | | - add $rcmail_config['smtp_auth_type'] if you need to specify an auth method for SMTP |
| | | - $rcmail_config['session_lifetime'] to specify the session lifetime in minutes |
| | |
| | | if (!$host) |
| | | $host = $CONFIG['default_host']; |
| | | |
| | | // parse $host URL |
| | | $a_host = parse_url($host); |
| | | if ($a_host['host']) |
| | | { |
| | | $host = $a_host['host']; |
| | | $imap_ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? TRUE : FALSE; |
| | | $imap_port = isset($a_host['port']) ? $a_host['port'] : ($imap_ssl ? 993 : $CONFIG['default_port']); |
| | | } |
| | | |
| | | // query if user already registered |
| | | $sql_result = $DB->query(sprintf("SELECT user_id, username, language, preferences |
| | | FROM %s |
| | |
| | | { |
| | | $user_id = $sql_arr['user_id']; |
| | | $user = $sql_arr['username']; |
| | | } |
| | | |
| | | // parse $host URL |
| | | $a_host = parse_url($host); |
| | | if ($a_host['host']) |
| | | { |
| | | $host = $a_host['host']; |
| | | $imap_ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? TRUE : FALSE; |
| | | $imap_port = isset($a_host['port']) ? $a_host['port'] : ($imap_ssl ? 993 : $CONFIG['default_port']); |
| | | } |
| | | |
| | | // exit if IMAP login failed |
| | |
| | | |
| | | function _mod_mailbox($mbox, $mode='in') |
| | | { |
| | | if (!empty($this->root_ns) && $this->root_ns == $mbox) |
| | | if ((!empty($this->root_ns) && $this->root_ns == $mbox) || ($mbox == 'INBOX' && $mode == 'in')) |
| | | return $mbox; |
| | | |
| | | if (!empty($this->root_dir) && $mode=='in') |
| | | if (!empty($this->root_dir) && $mode=='in') |
| | | $mbox = $this->root_dir.$this->delimiter.$mbox; |
| | | else if (strlen($this->root_dir) && $mode=='out') |
| | | $mbox = substr($mbox, strlen($this->root_dir)+1); |
| | |
| | | |
| | | // encode for javascript use |
| | | if ($enctype=='js') |
| | | return preg_replace(array("/\r\n/", '/"/', "/'/"), array('\n', '\"', "\'"), strtr($str, $js_rep_table)); |
| | | return preg_replace(array("/\r\n/", '/"/', "/([^\\\])'/"), array('\n', '\"', "$1\'"), strtr($str, $js_rep_table)); |
| | | |
| | | // encode for RTF |
| | | if ($enctype=='rtf') |
| | |
| | | |
| | | $labels['mailboxlist'] = 'Ordner'; |
| | | $labels['messagesfromto'] = 'Nachrichten $from bis $to von $count'; |
| | | $labels['messagenrof'] = 'Nachrichten $nr von $count'; |
| | | $labels['messagenrof'] = 'Nachricht $nr von $count'; |
| | | |
| | | $labels['moveto'] = 'Verschieben nach...'; |
| | | $labels['download'] = 'Download'; |
| | |
| | | |
| | | <div id="header"><roundcube:button command="mail" image="/images/roundcube_logo.png" alt="RoundCube Webmail" width="165" height="55" /></div> |
| | | |
| | | <roundcube:object name="message" id="message" /> |
| | | <roundcube:object name="message" id="message" /> |