Commit 36874f90 authored by Leigh Stoller's avatar Leigh Stoller

Add genesis (isAPT, isEmulab, isCloud) for branding.

parent 0c087d31
......@@ -345,6 +345,9 @@ class User
function wikiname() { return $this->field("wikiname"); }
function wikionly() { return $this->field("wikionly"); }
function mailman_password() { return $this->field("mailman_password"); }
function genesis() { return $this->field("genesis"); }
function isAPT() { return $this->genesis() == "aptlab" ? 1 : 0; }
function isCloud() { return $this->genesis() == "cloudlab" ? 1 : 0; }
# Temporary data storage ... useful.
function SetTempData($value) {
......@@ -717,6 +720,7 @@ class User
$wikionly = $user->wikionly();
$stud = $user->stud();
$uuid = $user->uuid();
$genesis = $user->genesis();
if (!strcmp($usr_addr2, ""))
$usr_addr2 = " ";
......@@ -890,6 +894,13 @@ class User
<td>UUID: </td>
<td class=left>$uuid</td>
</tr>\n";
if ($genesis != "emulab") {
echo "<tr>
<td>Genesis: </td>
<td class=left>$genesis</td>
</tr>\n";
}
}
if (ISADMIN() && $status != TBDB_USERSTATUS_ARCHIVED) {
$cvswebflip = ($cvsweb ? 0 : 1);
......
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