Changeset 2372 in subversion
- Timestamp:
- Apr 2, 2009 12:53:59 PM (4 years ago)
- Location:
- branches/devel-api
- Files:
-
- 3 edited
-
index.php (modified) (1 diff)
-
program/include/rcmail.php (modified) (1 diff)
-
program/include/rcube_template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/devel-api/index.php
r2371 r2372 108 108 $_SERVER['REMOTE_ADDR'])); 109 109 } 110 111 // restore original request parameters 112 $query = array(); 113 if ($url = get_input_value('_url', RCUBE_INPUT_POST)) 114 parse_str($url, $query); 110 115 111 116 // allow plugins to control the redirect url after login success 112 $redir = $RCMAIL->plugins->exec_hook('login_after', array('task' => $RCMAIL->task));117 $redir = $RCMAIL->plugins->exec_hook('login_after', $query + array('task' => $RCMAIL->task)); 113 118 unset($redir['abort']); 114 119 -
branches/devel-api/program/include/rcmail.php
r2371 r2372 929 929 if (!is_array($p)) 930 930 $p = array('_action' => @func_get_arg(0)); 931 932 if (!$p['task'] || !in_array($p['task'], rcmail::$main_tasks)) 933 $p['task'] = $this->task; 934 935 $p['_task'] = $p['task']; 931 932 $task = $p['_task'] ? $p['_task'] : $p['task']; 933 if (!$task || !in_array($task, rcmail::$main_tasks)) 934 $task = $this->task; 935 936 $p['_task'] = $task; 936 937 unset($p['task']); 937 938 -
branches/devel-api/program/include/rcube_template.php
r2304 r2372 933 933 934 934 $_SESSION['temp'] = true; 935 936 // save original url 937 $url = get_input_value('_url', RCUBE_INPUT_POST); 938 if (empty($url) && !preg_match('/_action=logout/', $_SERVER['QUERY_STRING'])) 939 $url = $_SERVER['QUERY_STRING']; 935 940 936 941 $input_user = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30) + $attrib); … … 938 943 $input_action = new html_hiddenfield(array('name' => '_action', 'value' => 'login')); 939 944 $input_tzone = new html_hiddenfield(array('name' => '_timezone', 'id' => 'rcmlogintz', 'value' => '_default_')); 945 $input_url = new html_hiddenfield(array('name' => '_url', 'id' => 'rcmloginurl', 'value' => $url)); 940 946 $input_host = null; 941 947 … … 977 983 $out = $input_action->show(); 978 984 $out .= $input_tzone->show(); 985 $out .= $input_url->show(); 979 986 $out .= $table->show(); 980 987
Note: See TracChangeset
for help on using the changeset viewer.
