| | |
| | | | Author: Thomas Bruederli <roundcube@gmail.com> | |
| | | | Author: Aleksander Machniak <alec@alec.pl> | |
| | | +-----------------------------------------------------------------------+ |
| | | |
| | | $Id$ |
| | | |
| | | */ |
| | | |
| | | |
| | |
| | | if ($override || !$this->message) { |
| | | if ($this->app->text_exists($message)) { |
| | | if (!empty($vars)) { |
| | | $vars = array_map(array('rcube_ui', 'Q'), $vars); |
| | | $vars = array_map(array('rcmail', 'Q'), $vars); |
| | | } |
| | | $msgtext = $this->app->gettext(array('name' => $message, 'vars' => $vars)); |
| | | } |
| | |
| | | */ |
| | | public function redirect($p = array(), $delay = 1) |
| | | { |
| | | $location = rcmail::get_instance()->url($p); |
| | | $this->remote_response(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);", JS_OBJECT_NAME, $location, $delay)); |
| | | $location = $this->app->url($p); |
| | | $this->remote_response(sprintf("window.setTimeout(function(){ %s.redirect('%s',true); }, %d);", |
| | | rcmail::JS_OBJECT_NAME, $location, $delay)); |
| | | exit; |
| | | } |
| | | |
| | |
| | | $rcmail = rcmail::get_instance(); |
| | | $response['action'] = $rcmail->action; |
| | | |
| | | if ($unlock = rcube_ui::get_input_value('_unlock', rcube_ui::INPUT_GPC)) { |
| | | if ($unlock = rcube_utils::get_input_value('_unlock', rcube_utils::INPUT_GPC)) { |
| | | $response['unlock'] = $unlock; |
| | | } |
| | | |