summaryrefslogtreecommitdiff
path: root/scire
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2006-06-11 16:15:36 +0000
committerAndrew Gaffney <agaffney@gentoo.org>2006-06-11 16:15:36 +0000
commitc2be7ddc67d7c82c8d03e4ec8eaf289c31fb4319 (patch)
treee0cf2bb0fe46af732bac69da2f73b4dbbec49ff4 /scire
parentadd 'afterlogin' parameter for login.php and include when redirecting to logi... (diff)
downloadscire-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.php2
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']);