Commit 5e016104 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Mark expired experiments.

parent 01d45f2b
......@@ -62,7 +62,10 @@ echo "<link rel='stylesheet'
href='css/tablesorter.css'>\n";
$query_result =
DBQueryFatal("select a.*,s.expires,s.hrn,u.email from apt_instances as a ".
DBQueryFatal("select a.*,s.expires,s.hrn,u.email, ".
" (UNIX_TIMESTAMP(now()) > ".
" UNIX_TIMESTAMP(s.expires)) as expired ".
" from apt_instances as a ".
"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 ".
......@@ -127,6 +130,9 @@ while ($row = mysql_fetch_array($query_result)) {
$creator = "<a href='$TBBASE/showuser.php3?user=$creator_idx'>".
"$creator_uid</a>";
}
if ($row["expired"]) {
$status = "expired";
}
$profile = Profile::Lookup($profile_id, $version);
if ($profile) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment