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
f8a93b90
Commit
f8a93b90
authored
Nov 11, 2014
by
Leigh B Stoller
Browse files
Add IsNonLocal() predicate.
parent
1c428380
Changes
1
Show whitespace changes
Inline
Side-by-side
www/user_defs.php
View file @
f8a93b90
...
...
@@ -349,6 +349,10 @@ class User
function
isAPT
()
{
return
$this
->
genesis
()
==
"aptlab"
?
1
:
0
;
}
function
isCloud
()
{
return
$this
->
genesis
()
==
"cloudlab"
?
1
:
0
;
}
function
IsNonLocal
()
{
return
(
$this
->
field
(
"nonlocal_id"
)
?
1
:
0
);
}
# Temporary data storage ... useful.
function
SetTempData
(
$value
)
{
$this
->
tempdata
=
$value
;
...
...
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