com web/master: Don't display a link to people.php.net for unapproved accounts as they do not exists there: manage/users.php
| From: | Kalle Sommer Nielsen | Date: | Sat, 19 Nov 2016 15:25:42 +0000 |
| Subject: | com web/master: Don't display a link to people.php.net for unapproved accounts as they do not exists there: manage/users.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25340@lists.php.net to get a copy of this message | ||
Commit: 608174ee7c426e5bc723ebe14e0da0aeb8b34c90
Author: Kalle Sommer Nielsen <kalle@php.net> Sat, 19 Nov 2016 16:25:42 +0100
Parents: f34c9ee4df1e5615a80f2a8a832f56bb77240bda
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=608174ee7c426e5bc723ebe14e0da0aeb8b34c90
Log:
Don't display a link to people.php.net for unapproved accounts as they do not exists there
Changed paths:
M manage/users.php
Diff:
diff --git a/manage/users.php b/manage/users.php
index 6721580..21cd5d7 100644
--- a/manage/users.php
+++ b/manage/users.php
@@ -373,7 +373,11 @@ $extra = array(
<th><a href="?<?php echo
array_to_url($extra,array("unapproved"=>!$unapproved));?>"><?php echo
$unapproved ? "&otimes" : "&oplus"; ?>;</a></th>
<th><a href="?<?php echo
array_to_url($extra,array("order"=>"name"));?>">name</a></th>
<th><a href="?<?php echo
array_to_url($extra,array("order"=>"email"));?>">email</a></th>
+<?php if (!$unapproved) { ?>
<th><a href="?<?php echo
array_to_url($extra,array("order"=>"username"));?>">username</a></th>
+<?php } else { ?>
+ <th> </th>
+<?php } ?>
</tr>
<?php
while ($userdata = mysql_fetch_array($res)) {
@@ -382,7 +386,11 @@ while ($userdata = mysql_fetch_array($res)) {
<td><a href="?username=<?php echo
$userdata["username"];?>">edit</a></td>
<td><?php echo $userdata['name'];?></td>
<td><?php echo $userdata['email'];?></td>
+<?php if (!$unapproved) { ?>
<td><a href="https://people.php.net/?username=<?php echo
hscr($userdata['username'])?>"><?php echo
hscr($userdata['username']) ?></a></td>
+<?php } else { ?>
+ <td> </td>
+<?php } ?>
</tr>
<?php
}