| | |
| | | |
| | | // include styles |
| | | $skin_path = $this->local_skin_path(); |
| | | if ($this->rc->task == 'settings' || $sieve_action) { |
| | | if (is_file($this->home . "/$skin_path/managesieve.css")) { |
| | | $this->include_stylesheet("$skin_path/managesieve.css"); |
| | | } |
| | | if ($sieve_action || ($this->rc->task == 'settings' && empty($_REQUEST['_framed']))) { |
| | | $this->include_stylesheet("$skin_path/managesieve.css"); |
| | | } |
| | | else { |
| | | if (is_file($this->home . "/$skin_path/managesieve_mail.css")) { |
| | | $this->include_stylesheet("$skin_path/managesieve_mail.css"); |
| | | } |
| | | else if ($this->rc->task == 'mail') { |
| | | $this->include_stylesheet("$skin_path/managesieve_mail.css"); |
| | | } |
| | | |
| | | $this->ui_initialized = true; |
| | |
| | | $include_path .= ini_get('include_path'); |
| | | set_include_path($include_path); |
| | | |
| | | $class_name = 'rcube_sieve_' . ($type ? $type : 'engine'); |
| | | $class_name = 'rcube_sieve_' . ($type ?: 'engine'); |
| | | $this->engine = new $class_name($this); |
| | | } |
| | | |