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
86f8ccee
Commit
86f8ccee
authored
Mar 28, 2007
by
Russ Fish
Browse files
Fix the bug Eric reported: show the image name to the user, rather than the numeric ID.
parent
dc94abad
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/loadimage.php3
View file @
86f8ccee
...
...
@@ -54,11 +54,11 @@ if (! isset($node) || isset($canceled)) {
$url
=
CreateURL
(
"loadimage"
,
$image
);
echo
"<form action='
$url
' method='post'>
\n
"
.
"<font size=+1>Node to snapshot into image '
$image
id
':</font> "
.
"<font size=+1>Node to snapshot into image '
$image
_name
':</font> "
.
"<input type='text' name='node_id' value='
$node_id
'></input>
\n
"
.
"<input type='submit' name='submit' value='Go!'></input>
\n
"
.
"</form><br>"
;
echo
"<font size=+1>Information for Image Descriptor '
$image
id
':</font>
\n
"
;
echo
"<font size=+1>Information for Image Descriptor '
$image
_name
':</font>
\n
"
;
$image
->
Show
();
...
...
@@ -87,7 +87,7 @@ if (! isset($confirmed)) {
echo
"<center><form action='
$url
' method='post'>
\n
"
.
"<h2><b>Warning!</b></h2>"
.
"<h3>Doing a snapshot of node '
$node_id
' into image '
$image
id
' "
.
"<h3>Doing a snapshot of node '
$node_id
' into image '
$image
_name
' "
.
"will overwrite any previous snapshot for that image. "
.
"Are you sure you want to continue?</h3>"
.
"<input type='hidden' name='node_id' value='
$node_id
'></input>"
.
...
...
@@ -101,7 +101,7 @@ if (! isset($confirmed)) {
}
echo
"<br>
Taking a snapshot of node '
$node_id
' into image '
$image
id
' ...
Taking a snapshot of node '
$node_id
' into image '
$image
_name
' ...
<br><br>
\n
"
;
flush
();
...
...
@@ -114,7 +114,7 @@ echo "This will take 10 minutes or more; you will receive email
notification when the snapshot is complete. In the meantime,
<b>PLEASE DO NOT</b> delete the imageid or the experiment
$node_id
is in. In fact, it is best if you do not mess with
the node or the experiment at all until
u
ou receive email.<br>
\n
"
;
the node or the experiment at all until
y
ou receive email.<br>
\n
"
;
flush
();
...
...
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