Commit a2beb164 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Fix minor bugs in previous revisions.

parent 4861cf13
...@@ -1067,7 +1067,7 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null, $adminon = 0) ...@@ -1067,7 +1067,7 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null, $adminon = 0)
# Proj-vis cookies # Proj-vis cookies
if ($EXP_VIS) { if ($EXP_VIS) {
setcookie("exp_vis_session", $opskey, 0, "/", $TBAUTHDOMAIN, 0); setcookie("exp_vis_session", $opskey, 0, "/", $TBAUTHDOMAIN, 0);
SUEXEC($uid,"nobody", "write-vis-auth &", $SUEXEC_ACTION_CONTINUE); SUEXEC($uid,"nobody", "write-vis-auth &", SUEXEC_ACTION_CONTINUE);
} }
return 0; return 0;
...@@ -1109,6 +1109,7 @@ function DOLOGOUT($user) { ...@@ -1109,6 +1109,7 @@ function DOLOGOUT($user) {
return 1; return 1;
$uid_idx = $user->uid_idx(); $uid_idx = $user->uid_idx();
$uid = $user->$uid();
# #
# An admin logging out another user. Nothing else to do. # An admin logging out another user. Nothing else to do.
...@@ -1182,7 +1183,7 @@ function DOLOGOUT($user) { ...@@ -1182,7 +1183,7 @@ function DOLOGOUT($user) {
# #
if ($EXP_VIS) { if ($EXP_VIS) {
setcookie("exp_vis_session", "", $timeout, "/", $TBAUTHDOMAIN, 0); setcookie("exp_vis_session", "", $timeout, "/", $TBAUTHDOMAIN, 0);
SUEXEC($uid,"nobody", "write-vis-auth &", $SUEXEC_ACTION_CONTINUE); SUEXEC($uid, "nobody", "write-vis-auth &", SUEXEC_ACTION_CONTINUE);
} }
return 0; return 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment