| | |
| | | $result = $def; |
| | | } |
| | | |
| | | $rcmail = rcube::get_instance(); |
| | | $rcube = rcube::get_instance(); |
| | | |
| | | if ($name == 'timezone' && isset($this->prop['_timezone_value'])) |
| | | $result = $this->prop['_timezone_value']; |
| | | |
| | | if (is_object($rcmail->plugins)) { |
| | | $plugin = $rcmail->plugins->exec_hook('config_get', array( |
| | | 'name' => $name, 'default' => $def, 'result' => $result)); |
| | | $plugin = $rcube->plugins->exec_hook('config_get', array( |
| | | 'name' => $name, 'default' => $def, 'result' => $result)); |
| | | |
| | | return $plugin['result']; |
| | | } |
| | | |
| | | return $result; |
| | | return $plugin['result']; |
| | | } |
| | | |
| | | |
| | |
| | | if (isset($this->prop['mail_domain'][$host])) |
| | | $domain = $this->prop['mail_domain'][$host]; |
| | | } |
| | | else if (!empty($this->prop['mail_domain'])) |
| | | $domain = rcmail::parse_host($this->prop['mail_domain']); |
| | | else if (!empty($this->prop['mail_domain'])) { |
| | | $domain = rcube_utils::parse_host($this->prop['mail_domain']); |
| | | } |
| | | |
| | | if ($encode) |
| | | $domain = rcube_idn_to_ascii($domain); |
| | | if ($encode) { |
| | | $domain = rcube_utils::idn_to_ascii($domain); |
| | | } |
| | | |
| | | return $domain; |
| | | } |