Commit a5fffc01 authored by Leigh Stoller's avatar Leigh Stoller

A couple of bug fixes to the emails, and add a MembershipInfo() which

invokes the same named method on the default group (for convenience).
parent ca0fb64d
<?php
#
# Copyright (c) 2006-2015 University of Utah and the Flux Group.
# Copyright (c) 2006-2016 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -136,6 +136,7 @@ class Project
function pid() { return $this->field("pid"); }
function created() { return $this->field("created"); }
function expires() { return $this->field("expires"); }
function nagged() { return $this->field("nagged"); }
function name() { return $this->field("name"); }
function URL() { return $this->field("URL"); }
function funders() { return $this->field("funders"); }
......@@ -172,20 +173,20 @@ class Project
}
function wwwBase() {
global $TBWWW;
global $TBBASE;
return ($this->isAPT() ? "https://www.aptlab.net" :
($this->isCloud() ? "https://www.cloudlab.us" :
($this->isPNet() ? "https://www.phantomnet.org" :
$TBWWW)));
$TBBASE)));
}
function ApprovalEmailAddress() {
global $TBMAIL_APPROVAL;
global $TBMAILADDR_APPROVAL;
return ($this->isAPT() ? "aptlab-approval@aptlab.net" :
($this->isCloud() ? "cloudlab-approval@cloudlab.us" :
($this->isPNet() ? "phantomnet-approval@phantomnet.org" :
$TBMAIL_APPROVAL)));
$TBMAILADDR_APPROVAL)));
}
function EmailTag() {
global $THISHOMEBASE;
......@@ -393,6 +394,13 @@ class Project
return $group->UserTrust($user);
}
# Return membership info in the default group.
function MemberShipInfo($user) {
$group = $this->DefaultGroup();
return $group->MemberShipInfo($user);
}
#
# Load the default group for a project lazily.
#
......
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