Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
c0632cab
Commit
c0632cab
authored
Apr 05, 2012
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug Fix: Print out URNs in addition to HRNs.
parent
da3e4dee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
www/genihistory.php
www/genihistory.php
+16
-4
www/genislices.php
www/genislices.php
+2
-2
www/showslice.php
www/showslice.php
+2
-2
No files found.
www/genihistory.php
View file @
c0632cab
...
@@ -72,8 +72,8 @@ if (isset($showtypes["aggregates"])) {
...
@@ -72,8 +72,8 @@ if (isset($showtypes["aggregates"])) {
$table
=
array
(
'#id'
=>
'aggregate'
,
$table
=
array
(
'#id'
=>
'aggregate'
,
'#title'
=>
"Aggregate History"
,
'#title'
=>
"Aggregate History"
,
'#headings'
=>
array
(
"idx"
=>
"ID"
,
'#headings'
=>
array
(
"idx"
=>
"ID"
,
"slice_hrn"
=>
"Slice HRN"
,
"slice_hrn"
=>
"Slice HRN
/URN
"
,
"creator_hrn"
=>
"Creator HRN"
,
"creator_hrn"
=>
"Creator HRN
/URN
"
,
"created"
=>
"Created"
,
"created"
=>
"Created"
,
"Destroyed"
=>
"Destroyed"
,
"Destroyed"
=>
"Destroyed"
,
"Manifest"
=>
"Manifest"
));
"Manifest"
=>
"Manifest"
));
...
@@ -85,12 +85,24 @@ if (isset($showtypes["aggregates"])) {
...
@@ -85,12 +85,24 @@ if (isset($showtypes["aggregates"])) {
$uuid
=
$row
[
"uuid"
];
$uuid
=
$row
[
"uuid"
];
$slice_hrn
=
$row
[
"slice_hrn"
];
$slice_hrn
=
$row
[
"slice_hrn"
];
$creator_hrn
=
$row
[
"creator_hrn"
];
$creator_hrn
=
$row
[
"creator_hrn"
];
$slice_urn
=
$row
[
"slice_urn"
];
$creator_urn
=
$row
[
"creator_urn"
];
$created
=
$row
[
"created"
];
$created
=
$row
[
"created"
];
$destroyed
=
$row
[
"destroyed"
];
$destroyed
=
$row
[
"destroyed"
];
# If we have urns, show those instead.
$slice_info
=
$slice_hrn
;
if
(
isset
(
$slice_urn
))
{
$slice_info
=
"
$slice_urn
"
;
}
$creator_info
=
$creator_hrn
;
if
(
isset
(
$creator_urn
))
{
$creator_info
=
"
$creator_urn
"
;
}
$tablerow
=
array
(
"idx"
=>
$idx
,
$tablerow
=
array
(
"idx"
=>
$idx
,
"hrn"
=>
$slice_
hrn
,
"hrn"
=>
$slice_
info
,
"creator"
=>
$creator_
hrn
,
"creator"
=>
$creator_
info
,
"created"
=>
$created
,
"created"
=>
$created
,
"destroyed"
=>
$destroyed
);
"destroyed"
=>
$destroyed
);
...
...
www/genislices.php
View file @
c0632cab
<?php
<?php
#
#
# EMULAB-COPYRIGHT
# EMULAB-COPYRIGHT
# Copyright (c) 2000-201
1
University of Utah and the Flux Group.
# Copyright (c) 2000-201
2
University of Utah and the Flux Group.
# All rights reserved.
# All rights reserved.
#
#
include
(
"defs.php3"
);
include
(
"defs.php3"
);
...
@@ -39,7 +39,7 @@ else {
...
@@ -39,7 +39,7 @@ else {
#
#
PAGEHEADER
(
"Geni Slice List"
);
PAGEHEADER
(
"Geni Slice List"
);
if
(
!
$isadmin
)
{
if
(
!
(
$isadmin
||
STUDLY
())
)
{
USERERROR
(
"You do not have permission to view Geni slice list!"
,
1
);
USERERROR
(
"You do not have permission to view Geni slice list!"
,
1
);
}
}
...
...
www/showslice.php
View file @
c0632cab
<?php
<?php
#
#
# EMULAB-COPYRIGHT
# EMULAB-COPYRIGHT
# Copyright (c) 2000-201
1
University of Utah and the Flux Group.
# Copyright (c) 2000-201
2
University of Utah and the Flux Group.
# All rights reserved.
# All rights reserved.
#
#
include
(
"defs.php3"
);
include
(
"defs.php3"
);
...
@@ -32,7 +32,7 @@ if (!isset($showtype)) {
...
@@ -32,7 +32,7 @@ if (!isset($showtype)) {
#
#
PAGEHEADER
(
"Geni Slice"
);
PAGEHEADER
(
"Geni Slice"
);
if
(
!
$isadmin
)
{
if
(
!
(
$isadmin
||
STUDLY
())
)
{
USERERROR
(
"You do not have permission to view Geni slices!"
,
1
);
USERERROR
(
"You do not have permission to view Geni slices!"
,
1
);
}
}
...
...
Write
Preview
Markdown
is supported
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