diff options
| author | Carson Fleming <[email protected]> | 2024-12-31 18:34:21 -0800 |
|---|---|---|
| committer | Carson Fleming <[email protected]> | 2024-12-31 18:34:21 -0800 |
| commit | 27cfb2476d94f93bbb1839d179f473bf0e5ef9ec (patch) | |
| tree | 59cf5535927bfaa1f0c39096223261e2f2ecc161 /inbox_settings.php | |
| parent | 34be920302d61cf6f1cae3ebc8b7eda34ca3ba26 (diff) | |
| download | rc-inbox-settings-27cfb2476d94f93bbb1839d179f473bf0e5ef9ec.tar.gz | |
stub import mechanics
Diffstat (limited to 'inbox_settings.php')
| -rw-r--r-- | inbox_settings.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/inbox_settings.php b/inbox_settings.php index c70b38b..24a3326 100644 --- a/inbox_settings.php +++ b/inbox_settings.php @@ -192,10 +192,22 @@ class inbox_settings extends rcube_plugin { return '<p>Not yet implemented.</p>'; } + private function import_keys() { + if (!isset($_POST['import'])) + return false; + + return true; + } + function render_import_ui() { $this->rcmail->output->set_pagetitle($this->gettext('key_import')); - // TODO: save results - $this->rcmail->output->send('inbox_settings.key_import'); + if ($this->import_keys()) { + $this->rcmail->output->command( + 'display_message', $this->gettext('keys_imported'), 'notice'); + $this->rcmail->output->redirect('plugin.inbox_keys'); + } else { + $this->rcmail->output->send('inbox_settings.key_import'); + } } function delete_selected_keys() { |
