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
ece086df
Commit
ece086df
authored
Jan 29, 2014
by
Leigh B Stoller
Browse files
Minor fixups for cookie handling and login/logout buttons.
parent
22231ac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/quickvm_sup.php
View file @
ece086df
...
...
@@ -40,6 +40,7 @@ $disable_accounts = 0;
if
(
$TBMAINSITE
&&
$_SERVER
[
"SERVER_NAME"
]
==
"www.aptlab.net"
)
{
$TBAUTHDOMAIN
=
".aptlab.net"
;
$APTHOST
=
"www.aptlab.net"
;
$WWWHOST
=
"www.aptlab.net"
;
$APTBASE
=
"https://www.aptlab.net"
;
}
...
...
@@ -84,11 +85,11 @@ function SPITHEADER($thinheader = 0)
<ul class='nav navbar-nav navbar-right'>"
;
if
(
!
$disable_accounts
)
{
if
(
$login_user
)
{
echo
"<li><a>
$login_uid
logged in</a></li>
\n
"
;
echo
"<li><a
id='loginbutton'
>
$login_uid
logged in</a></li>
\n
"
;
}
elseif
(
!
NOLOGINS
())
{
echo
"<li><a class='btn btn-primary navbar-btn'
id='login
_
button'
id='loginbutton'
data-toggle='modal'
href='#quickvm_login_modal'
data-target='#quickvm_login_modal'>
...
...
@@ -100,7 +101,7 @@ function SPITHEADER($thinheader = 0)
<ul class='nav navbar-nav navbar-left'>
<li><a href='quickvm.php'>Home</a></li>
\n
"
;
if
(
!
$disable_accounts
&&
$login_user
)
{
echo
" <li><a href='#' id='logout
_
button'>Logout</a></li>
\n
"
;
echo
" <li><a href='#' id='logoutbutton'>Logout</a></li>
\n
"
;
}
echo
" </ul>
</div>
...
...
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