Commit 5751dc2e authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add email to group member list, but only when pid!=gid.

parent 55566879
...@@ -267,8 +267,11 @@ function SHOWGROUPMEMBERS($pid, $gid, $prived = 0) { ...@@ -267,8 +267,11 @@ function SHOWGROUPMEMBERS($pid, $gid, $prived = 0) {
<table align=center border=1 cellpadding=1 cellspacing=2>\n"; <table align=center border=1 cellpadding=1 cellspacing=2>\n";
echo "<tr> echo "<tr>
<th>Name</th> <th>Name</th>\n";
<th>UID</th> if (strcmp($pid, $gid)) {
echo "<th>Email</th>\n";
}
echo " <th>UID</th>
<th>Privs</th>\n"; <th>Privs</th>\n";
if ($showdel) { if ($showdel) {
echo "<th>Remove</th>\n"; echo "<th>Remove</th>\n";
...@@ -278,11 +281,15 @@ function SHOWGROUPMEMBERS($pid, $gid, $prived = 0) { ...@@ -278,11 +281,15 @@ function SHOWGROUPMEMBERS($pid, $gid, $prived = 0) {
while ($row = mysql_fetch_array($query_result)) { while ($row = mysql_fetch_array($query_result)) {
$target_uid = $row[uid]; $target_uid = $row[uid];
$usr_name = $row[usr_name]; $usr_name = $row[usr_name];
$usr_email = $row[usr_email];
$trust = $row[trust]; $trust = $row[trust];
echo "<tr> echo "<tr>
<td>$usr_name</td> <td>$usr_name</td>\n";
<td> if (strcmp($pid, $gid)) {
echo "<td>$usr_email</td>\n";
}
echo " <td>
<A href='showuser.php3?target_uid=$target_uid'> <A href='showuser.php3?target_uid=$target_uid'>
$target_uid</A> $target_uid</A>
</td>\n"; </td>\n";
......
Supports Markdown
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