Skip to content
GitLab
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
ca0afe8a
Commit
ca0afe8a
authored
Apr 11, 2003
by
Mac Newbold
Browse files
Make a global ADMINMODE var, for use when you don't have a uid handy
to call ISADMIN(uid) with.
parent
0ad152b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/tbauth.php3
View file @
ca0afe8a
...
...
@@ -100,7 +100,7 @@ function GETUID() {
#
function
CHECKLOGIN
(
$uid
)
{
global
$TBAUTHCOOKIE
,
$HTTP_COOKIE_VARS
,
$TBAUTHTIMEOUT
;
global
$CHECKLOGIN_STATUS
,
$CHECKLOGIN_UID
;
global
$CHECKLOGIN_STATUS
,
$CHECKLOGIN_UID
,
$ADMINMODE
;
#
# If we already figured this out, do not duplicate work!
...
...
@@ -238,6 +238,9 @@ function CHECKLOGIN($uid) {
#
if
(
$admin
&&
!
$adminoff
)
{
putenv
(
"HTTP_WITH_TB_ADMIN_PRIVS=1"
);
$ADMINMODE
=
1
;
}
else
{
$ADMINMODE
=
0
;
}
return
$CHECKLOGIN_STATUS
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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