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
d859def5
Commit
d859def5
authored
May 15, 2012
by
Leigh B Stoller
Browse files
Print out hash and updated slots.
parent
fe2ad856
Changes
1
Show whitespace changes
Inline
Side-by-side
www/imageid_defs.php
View file @
d859def5
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006-201
1
University of Utah and the Flux Group.
# Copyright (c) 2006-201
2
University of Utah and the Flux Group.
# All rights reserved.
#
include_once
(
"osinfo_defs.php"
);
# For SpitOSIDLink() below.
...
...
@@ -307,6 +307,7 @@ class Image
function
isglobal
()
{
return
$this
->
field
(
"global"
);
}
function
updated
()
{
return
$this
->
field
(
"updated"
);
}
function
mbr_version
()
{
return
$this
->
field
(
"mbr_version"
);
}
function
hash
()
{
return
$this
->
field
(
"hash"
);
}
# Return the DB data.
function
DBData
()
{
return
$this
->
image
;
}
...
...
@@ -470,8 +471,10 @@ class Image
$globalid
=
$this
->
isglobal
();
$creator
=
$this
->
creator
();
$created
=
$this
->
created
();
$updated
=
$this
->
updated
();
$uuid
=
$this
->
uuid
();
$mbr_version
=
$this
->
mbr_version
();
$hash
=
$this
->
hash
();
if
(
!
$description
)
$description
=
" "
;
...
...
@@ -512,6 +515,13 @@ class Image
<td class=left>
$created
</td>
</tr>
\n
"
;
if
(
$updated
)
{
echo
"<tr>
<td>Updated: </td>
<td class=left>
$updated
</td>
</tr>
\n
"
;
}
echo
"<tr>
<td>Description: </td>
<td class=left>
\n
"
;
...
...
@@ -624,6 +634,13 @@ class Image
<td class=left>
$mbr_version
</td>
</tr>
\n
"
;
if
(
$hash
)
{
echo
"<tr>
<td>SHA1 Hash: </td>
<td class=left>
$hash
</td>
</tr>
\n
"
;
}
echo
"<tr>
<td>UUID: </td>
<td class=left>
$uuid
</td>
...
...
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