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
c19f7018
Commit
c19f7018
authored
May 13, 2004
by
Leigh B. Stoller
Browse files
Fix a couple of menu item bugs; options that should not appear on
inactive experiments.
parent
92697a05
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showexp.php3
View file @
c19f7018
...
...
@@ -148,18 +148,24 @@ WRITESUBMENUBUTTON("Edit Experiment Metadata",
#
# Admin and project/experiment leader get this option.
#
if
(
$expstate
==
$TB_EXPTSTATE_ACTIVE
&&
TBExptAccessCheck
(
$uid
,
$exp_pid
,
$exp_eid
,
$TB_EXPT_UPDATE
))
{
WRITESUBMENUBUTTON
(
"Update All Nodes"
,
"updateaccounts.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
}
if
(
$expstate
==
$TB_EXPTSTATE_ACTIVE
)
{
if
(
TBExptAccessCheck
(
$uid
,
$exp_pid
,
$exp_eid
,
$TB_EXPT_UPDATE
))
{
WRITESUBMENUBUTTON
(
"Update All Nodes"
,
"updateaccounts.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
}
# Reboot option
if
(
TBExptAccessCheck
(
$uid
,
$exp_pid
,
$exp_eid
,
$TB_EXPT_MODIFY
))
{
WRITESUBMENUBUTTON
(
"Reboot All Nodes"
,
"boot.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
}
# Reboot option
if
(
TBExptAccessCheck
(
$uid
,
$exp_pid
,
$exp_eid
,
$TB_EXPT_MODIFY
))
{
WRITESUBMENUBUTTON
(
"Reboot All Nodes"
,
"boot.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
}
if
(
STUDLY
())
{
WRITESUBMENUBUTTON
(
"Run Linktest"
,
"linktest.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
}
}
# Wireless maps if experiment includes wireless lans.
if
(
$wireless
)
{
WRITESUBMENUBUTTON
(
"Wireless Node Map"
,
...
...
@@ -172,11 +178,6 @@ if ($wireless) {
WRITESUBMENUBUTTON
(
"Show History"
,
"showstats.php3?showby=expt&which=
$expindex
"
);
if
(
STUDLY
())
{
WRITESUBMENUBUTTON
(
"Run Linktest"
,
"linktest.php3?pid=
$exp_pid
&eid=
$exp_eid
"
);
}
if
(
ISADMIN
(
$uid
))
{
if
(
$expstate
==
$TB_EXPTSTATE_ACTIVE
)
{
SUBMENUSECTION
(
"Beta-Test Options"
);
...
...
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