| | |
| | | +-----------------------------------------------------------------------+ |
| | | | Author: Thomas Bruederli <roundcube@gmail.com> | |
| | | +-----------------------------------------------------------------------+ |
| | | |
| | | $Id$ |
| | | |
| | | */ |
| | | |
| | | /** |
| | |
| | | * @var boolean |
| | | */ |
| | | public $noframe = false; |
| | | |
| | | /** |
| | | * A list of config option names that can be modified |
| | | * by the user via user interface (with save-pref command) |
| | | * |
| | | * @var array |
| | | */ |
| | | public $allowed_prefs; |
| | | |
| | | protected $home; |
| | | protected $urlbase; |
| | |
| | | */ |
| | | public function local_skin_path() |
| | | { |
| | | $skin_path = 'skins/'.$this->api->config->get('skin'); |
| | | if (!is_dir(realpath(slashify($this->home) . $skin_path))) |
| | | $skin_path = 'skins/default'; |
| | | $rcmail = rcmail::get_instance(); |
| | | foreach (array($rcmail->config->get('skin'), 'larry') as $skin) { |
| | | $skin_path = 'skins/' . $skin; |
| | | if (is_dir(realpath(slashify($this->home) . $skin_path))) |
| | | break; |
| | | } |
| | | |
| | | return $skin_path; |
| | | } |
| | | |