diff options
author | Andrew Gaffney <agaffney@gentoo.org> | 2006-06-11 16:15:36 +0000 |
---|---|---|
committer | Andrew Gaffney <agaffney@gentoo.org> | 2006-06-11 16:15:36 +0000 |
commit | c2be7ddc67d7c82c8d03e4ec8eaf289c31fb4319 (patch) | |
tree | e0cf2bb0fe46af732bac69da2f73b4dbbec49ff4 /scire | |
parent | add 'afterlogin' parameter for login.php and include when redirecting to logi... (diff) | |
download | scire-c2be7ddc67d7c82c8d03e4ec8eaf289c31fb4319.tar.gz scire-c2be7ddc67d7c82c8d03e4ec8eaf289c31fb4319.tar.bz2 scire-c2be7ddc67d7c82c8d03e4ec8eaf289c31fb4319.zip |
put the afterlogin redirect in the right place :P
svn path=/; revision=98
Diffstat (limited to 'scire')
-rw-r--r-- | scire/.lib/common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scire/.lib/common.php b/scire/.lib/common.php index f268314..191a2bb 100644 --- a/scire/.lib/common.php +++ b/scire/.lib/common.php @@ -44,7 +44,7 @@ require_once('phpGACL.php'); # Check login if (!isset($_SESSION['userid'])) { - header('Location: ' . $baseurl . 'login.php'); + header('Location: ' . $baseurl . 'login.php?afterlogin=' . urlencode($_SERVER['REQUEST_URI'])); exit(0); } else { $smarty->assign('user', $_SESSION['userid']); |