diff options
author | thomascube <thomas@roundcube.net> | 2008-06-20 10:40:01 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-06-20 10:40:01 +0000 |
commit | c719f3c1e06c00fa4723f2f1298b3c94a1bec7e7 (patch) | |
tree | b343f67ba679e5761c6b27e2cb398de0e6a83a2d /program/include/rcube_template.php | |
parent | 4e59f63323341b546eaf0dddbb23f38128d7fb14 (diff) |
Store compose parameters in session and redirect to a unique URL
Diffstat (limited to 'program/include/rcube_template.php')
-rwxr-xr-x | program/include/rcube_template.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index 53808bd2b..75a9a601d 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -218,7 +218,7 @@ class rcube_template extends rcube_html_page * @uses self::$js_commands * @uses self::$object_handlers */ - public public function reset() + public function reset() { $this->env = array(); $this->js_env = array(); @@ -229,6 +229,20 @@ class rcube_template extends rcube_html_page /** + * Redirect to a certain url + * + * @param mixed Either a string with the action or url parameters as key-value pairs + * @see rcmail::url() + */ + public function redirect($p = array()) + { + $location = $this->app->url($p); + header('Location: ' . $location); + exit; + } + + + /** * Send the request output to the client. * This will either parse a skin tempalte or send an AJAX response * |