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
f433ddca
Commit
f433ddca
authored
Feb 17, 2005
by
Robert Ricci
Browse files
Change title if this is being used for a mote.
parent
ecb54dc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/newimageid_ez.php3
View file @
f433ddca
...
...
@@ -15,10 +15,27 @@ include("osiddefs.php3");
# now, test for the shorted of the two.
#
#
# Options for using this page with different types of nodes
#
$nodetypes
=
array
(
"mote"
);
if
(
$nodetype
==
"mote"
)
{
$view
=
array
(
'hide_partition'
=>
1
,
'hide_os'
=>
1
,
'hide_version'
=>
1
,
'hide_snapshot'
=>
1
,
'hide_features'
=>
1
,
'hide_opmode'
=>
1
,
'hide_footnotes'
=>
1
);
$nodeclass
=
"mote"
;
$title
=
"Mote Form"
;
}
else
{
# Defaults to PC view
$view
=
array
(
'hide_upload'
=>
1
);
$nodeclass
=
"pc"
;
$title
=
"EZ Form"
;
}
#
# Standard Testbed Header
#
PAGEHEADER
(
"Create a new Image Descriptor (
EZ Form
)"
);
PAGEHEADER
(
"Create a new Image Descriptor (
$title
)"
);
#
# Only known and logged in users.
...
...
@@ -37,21 +54,6 @@ if (! count($projlist)) {
"you have permission to create new Image descriptors."
,
1
);
}
#
# Options for using this page with different types of nodes
#
$nodetypes
=
array
(
"mote"
);
if
(
$nodetype
==
"mote"
)
{
$view
=
array
(
'hide_partition'
=>
1
,
'hide_os'
=>
1
,
'hide_version'
=>
1
,
'hide_snapshot'
=>
1
,
'hide_features'
=>
1
,
'hide_opmode'
=>
1
,
'hide_footnotes'
=>
1
);
$nodeclass
=
"mote"
;
}
else
{
# Defaults to PC view
$view
=
array
(
'hide_upload'
=>
1
);
$nodeclass
=
"pc"
;
}
#
# Need a list of node types. We join this over the nodes table so that
# we get a list of just the nodes that currently in the testbed, not
...
...
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