- don't load some stuff before login (#1486475)
| | |
| | | |
| | | function init() |
| | | { |
| | | $rcmail = rcmail::get_instance(); |
| | | |
| | | if (!$rcmail->user->ID) |
| | | return; |
| | | |
| | | $this->register_action('plugin.archive', array($this, 'request_action')); |
| | | |
| | | // There is no "Archived flags" |
| | | // $GLOBALS['IMAP_FLAGS']['ARCHIVED'] = 'Archive'; |
| | | |
| | | $rcmail = rcmail::get_instance(); |
| | | if ($rcmail->task == 'mail' && ($rcmail->action == '' || $rcmail->action == 'show') |
| | | && ($archive_folder = $rcmail->config->get('archive_mbox'))) { |
| | | |
| | | $skin_path = $this->local_skin_path(); |
| | | |
| | | $this->include_script('archive.js'); |
| | |
| | | { |
| | | function init() |
| | | { |
| | | $rcmail = rcmail::get_instance(); |
| | | |
| | | if (!$rcmail->user->ID) |
| | | return; |
| | | |
| | | $this->add_texts('localization/', false); |
| | | |
| | | // register actions |
| | |
| | | 'href' => './?_task=dummy&_action=plugin.help', |
| | | ), 'taskbar'); |
| | | |
| | | $skin = rcmail::get_instance()->config->get('skin'); |
| | | $skin = $rcmail->config->get('skin'); |
| | | if (!file_exists($this->home."/skins/$skin/help.css")) |
| | | $skin = 'default'; |
| | | |
| | |
| | | |
| | | function init() |
| | | { |
| | | $this->register_action('plugin.markasjunk', array($this, 'request_action')); |
| | | |
| | | $rcmail = rcmail::get_instance(); |
| | | |
| | | if (!$rcmail->user->ID) |
| | | return; |
| | | |
| | | $this->register_action('plugin.markasjunk', array($this, 'request_action')); |
| | | |
| | | if ($rcmail->action == '' || $rcmail->action == 'show') { |
| | | $skin_path = $this->local_skin_path(); |
| | | $this->include_script('markasjunk.js'); |