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
3c6e6308
Commit
3c6e6308
authored
May 31, 2016
by
Leigh B Stoller
Browse files
Show expired/locked down experiments as per Rob's request.
parent
3159a5d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/myexperiments.php
View file @
3c6e6308
...
...
@@ -75,7 +75,7 @@ $query_result2 = null;
if
((
$all
||
$extend
)
&&
(
ISADMIN
()
||
ISFOREIGN_ADMIN
()))
{
$where
=
""
;
if
(
$extend
)
{
$where
=
"where a.extension_requested=1"
;
$where
=
"where a.extension_requested=1
or a.admin_lockdown=1
"
;
}
$query_result1
=
DBQueryFatal
(
"select a.*,s.expires,s.hrn,u.email, "
.
...
...
@@ -96,7 +96,7 @@ if (($all || $extend) && (ISADMIN() || ISFOREIGN_ADMIN())) {
"left join geni.geni_slices as s on "
.
" s.uuid=a.slice_uuid "
.
"left join geni.geni_users as u on u.uuid=a.creator_uuid "
.
"
$where
order by
a.creator
"
);
"
$where
order by
expired,a.name
"
);
}
else
{
$query_result1
=
...
...
@@ -183,16 +183,24 @@ function SPITROWS($showall, $name, $result)
$canceled
=
$row
[
"canceled"
];
$created
=
DateStringGMT
(
$row
[
"created"
]);
$expires
=
DateStringGMT
(
$row
[
"expires"
]);
$expired
=
$row
[
"expired"
];
$creator_idx
=
$row
[
"creator_idx"
];
$profile_name
=
"
$profile_id
:
$version
"
;
$creator_uid
=
$row
[
"creator"
];
$pid
=
$row
[
"pid"
];
$pcount
=
$row
[
"physnode_count"
];
$vcount
=
$row
[
"virtnode_count"
];
$extending
=
$row
[
"extension_requested"
];
$lockdown
=
$row
[
"admin_lockdown"
]
||
$row
[
"user_lockdown"
]
?
1
:
0
;
$phours
=
$row
[
"phours"
];
list
(
$foo
,
$hrn
)
=
preg_split
(
"/\./"
,
$row
[
"hrn"
]);
$email
=
$row
[
"email"
];
if
(
$extend
)
{
if
(
!
(
$extending
||
$expired
))
{
continue
;
}
}
# If a guest user, use email instead.
if
(
isset
(
$email
))
{
$creator
=
$email
;
...
...
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