From 63a3dc5fde5a3ceed4f03c19c5015aab19050bee Mon Sep 17 00:00:00 2001 From: till Date: Sat, 20 Mar 2010 14:20:01 +0000 Subject: moved plugins --- .../subscriptions_option/localization/cs_CZ.inc | 23 ------ .../subscriptions_option/localization/de_CH.inc | 6 -- .../subscriptions_option/localization/de_DE.inc | 6 -- .../subscriptions_option/localization/en_US.inc | 6 -- .../subscriptions_option/localization/et_EE.inc | 6 -- .../subscriptions_option/localization/pl_PL.inc | 6 -- .../subscriptions_option/localization/ru_RU.inc | 6 -- .../subscriptions_option/localization/sv_SE.inc | 6 -- .../subscriptions_option/subscriptions_option.php | 92 ---------------------- 9 files changed, 157 deletions(-) delete mode 100644 plugins/subscriptions_option/localization/cs_CZ.inc delete mode 100644 plugins/subscriptions_option/localization/de_CH.inc delete mode 100644 plugins/subscriptions_option/localization/de_DE.inc delete mode 100644 plugins/subscriptions_option/localization/en_US.inc delete mode 100644 plugins/subscriptions_option/localization/et_EE.inc delete mode 100644 plugins/subscriptions_option/localization/pl_PL.inc delete mode 100644 plugins/subscriptions_option/localization/ru_RU.inc delete mode 100644 plugins/subscriptions_option/localization/sv_SE.inc delete mode 100644 plugins/subscriptions_option/subscriptions_option.php (limited to 'plugins/subscriptions_option') diff --git a/plugins/subscriptions_option/localization/cs_CZ.inc b/plugins/subscriptions_option/localization/cs_CZ.inc deleted file mode 100644 index ca637fc6c..000000000 --- a/plugins/subscriptions_option/localization/cs_CZ.inc +++ /dev/null @@ -1,23 +0,0 @@ - | -+-----------------------------------------------------------------------+ - -@version $Id: labels.inc 2993 2009-09-26 18:32:07Z alec $ - -*/ - -$labels = array(); -$labels['useimapsubscriptions'] = 'Používat odebírání IMAP složek'; - -?> diff --git a/plugins/subscriptions_option/localization/de_CH.inc b/plugins/subscriptions_option/localization/de_CH.inc deleted file mode 100644 index b4affe0c8..000000000 --- a/plugins/subscriptions_option/localization/de_CH.inc +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/plugins/subscriptions_option/localization/de_DE.inc b/plugins/subscriptions_option/localization/de_DE.inc deleted file mode 100644 index b4affe0c8..000000000 --- a/plugins/subscriptions_option/localization/de_DE.inc +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/plugins/subscriptions_option/localization/en_US.inc b/plugins/subscriptions_option/localization/en_US.inc deleted file mode 100644 index 5a348e0ee..000000000 --- a/plugins/subscriptions_option/localization/en_US.inc +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/plugins/subscriptions_option/localization/et_EE.inc b/plugins/subscriptions_option/localization/et_EE.inc deleted file mode 100644 index 6c5f6f435..000000000 --- a/plugins/subscriptions_option/localization/et_EE.inc +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/plugins/subscriptions_option/localization/pl_PL.inc b/plugins/subscriptions_option/localization/pl_PL.inc deleted file mode 100644 index 8544c7d30..000000000 --- a/plugins/subscriptions_option/localization/pl_PL.inc +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/plugins/subscriptions_option/localization/ru_RU.inc b/plugins/subscriptions_option/localization/ru_RU.inc deleted file mode 100644 index 5deb84e0d..000000000 --- a/plugins/subscriptions_option/localization/ru_RU.inc +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/plugins/subscriptions_option/localization/sv_SE.inc b/plugins/subscriptions_option/localization/sv_SE.inc deleted file mode 100644 index 05b7006f4..000000000 --- a/plugins/subscriptions_option/localization/sv_SE.inc +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/plugins/subscriptions_option/subscriptions_option.php b/plugins/subscriptions_option/subscriptions_option.php deleted file mode 100644 index 4d471b8e6..000000000 --- a/plugins/subscriptions_option/subscriptions_option.php +++ /dev/null @@ -1,92 +0,0 @@ -add_texts('localization/', false); - $dont_override = rcmail::get_instance()->config->get('dont_override', array()); - if (!in_array('use_subscriptions', $dont_override)) { - $this->add_hook('user_preferences', array($this, 'settings_blocks')); - $this->add_hook('save_preferences', array($this, 'save_prefs')); - } - $this->add_hook('list_mailboxes', array($this, 'list_mailboxes')); - $this->add_hook('manage_folders', array($this, 'manage_folders')); - } - - function settings_blocks($args) - { - if ($args['section'] == 'server') { - $use_subscriptions = rcmail::get_instance()->config->get('use_subscriptions'); - $field_id = 'rcmfd_use_subscriptions'; - $checkbox = new html_checkbox(array('name' => '_use_subscriptions', 'id' => $field_id, 'value' => 1)); - - $args['blocks']['main']['options']['use_subscriptions'] = array( - 'title' => html::label($field_id, Q($this->gettext('useimapsubscriptions'))), - 'content' => $checkbox->show($use_subscriptions?1:0), - ); - } - - return $args; - } - - function save_prefs($args) - { - if ($args['section'] == 'server') { - $rcmail = rcmail::get_instance(); - $use_subscriptions = $rcmail->config->get('use_subscriptions'); - - $args['prefs']['use_subscriptions'] = isset($_POST['_use_subscriptions']) ? true : false; - - // if the use_subscriptions preference changes, flush the folder cache - if (($use_subscriptions && !isset($_POST['_use_subscriptions'])) || - (!$use_subscriptions && isset($_POST['_use_subscriptions']))) { - $rcmail->imap_connect(); - $rcmail->imap->clear_cache('mailboxes'); - } - } - return $args; - } - - function list_mailboxes($args) - { - $rcmail = rcmail::get_instance(); - if (!$rcmail->config->get('use_subscriptions', true)) { - $args['folders'] = iil_C_ListMailboxes($rcmail->imap->conn, $rcmail->imap->mod_mailbox($args['root']), $args['filter']); - } - return $args; - } - - function manage_folders($args) - { - $rcmail = rcmail::get_instance(); - if (!$rcmail->config->get('use_subscriptions', true)) { - $args['table']->remove_column('subscribed'); - } - return $args; - } -} -- cgit v1.2.3