Commit ba3d8f50 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add per-group email lists as per payment by Eric.

parent fc7aec1c
......@@ -155,6 +155,8 @@ function SHOWPROJECT($pid, $thisuid) {
# A Group
#
function SHOWGROUP($pid, $gid) {
global $OURDOMAIN;
$query_result =
DBQueryFatal("SELECT * FROM groups WHERE pid='$pid' and gid='$gid'");
$row = mysql_fetch_array($query_result);
......@@ -172,6 +174,11 @@ function SHOWGROUP($pid, $gid) {
$unix_gid = $row[unix_gid];
$unix_name = $row[unix_name];
if (strcmp($pid,$gid))
$mail = "$pid-$gid" . "-users@" . $OURDOMAIN;
else
$mail = "$pid" . "-users@" . $OURDOMAIN;
if (!$expt_last) {
$expt_last = "&nbsp";
}
......@@ -212,6 +219,11 @@ function SHOWGROUP($pid, $gid) {
<A href='showuser.php3?target_uid=$leader'>$leader</A></td>
</tr>\n";
echo "<tr>
<td>Email List: </td>
<td class=\"left\">$mail</td>
</tr>\n";
echo "<tr>
<td>Created: </td>
<td class=\"left\">$created</td>
......
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