Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
495f1891
Commit
495f1891
authored
Oct 15, 2004
by
Leigh B. Stoller
Browse files
Make sure "home" link on the menu takes you to the front page, not the
My Emulab page when logged in.
parent
6b57f97c
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/index.php3
View file @
495f1891
...
...
@@ -9,11 +9,11 @@ require("defs.php3");
#
# The point of this is to redirect logged in users to their My Emulab
# page.
#
#
if
((
$uid
=
GETUID
()))
{
$check_status
=
CHECKLOGIN
(
$uid
)
&
CHECKLOGIN_STATUSMASK
;
if
(
$check_status
==
CHECKLOGIN_LOGGEDIN
)
{
if
(
!
isset
(
$stayhome
)
&&
$check_status
==
CHECKLOGIN_LOGGEDIN
)
{
# Zap to My Emulab page.
header
(
"Location:
$TBBASE
/showuser.php3?target_uid=
$uid
"
);
return
;
...
...
www/menu.php3
View file @
495f1891
...
...
@@ -270,7 +270,7 @@ function WRITESIDEBAR() {
$rootEmulab
=
0
;
}
WRITESIDEBARBUTTON
(
"Home"
,
$TBDOCBASE
,
"index.php3"
);
WRITESIDEBARBUTTON
(
"Home"
,
$TBDOCBASE
,
"index.php3
?stayhome=1
"
);
if
(
$rootEmulab
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment