Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
5751dc2e
Commit
5751dc2e
authored
Jun 27, 2003
by
Leigh B. Stoller
Browse files
Add email to group member list, but only when pid!=gid.
parent
55566879
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/showstuff.php3
View file @
5751dc2e
...
@@ -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
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment