cvs: php-master-web /manage users.php
| From: | jim winstead | Date: | Fri, 10 May 2002 19:21:14 +0000 |
| Subject: | cvs: php-master-web /manage users.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-10106@lists.php.net to get a copy of this message | ||
jimw Fri May 10 15:21:14 2002 EDT
Modified files:
/php-master-web/manage users.php
Log:
only admins can change cvs username
Index: php-master-web/manage/users.php
diff -u php-master-web/manage/users.php:1.26 php-master-web/manage/users.php:1.27
--- php-master-web/manage/users.php:1.26 Sat May 4 12:11:16 2002
+++ php-master-web/manage/users.php Fri May 10 15:21:14 2002
@@ -117,7 +117,7 @@
if (isset($in[email]) && isset($in[name])) {
$query = "UPDATE users SET
name='$in[name]',email='$in[email]'"
. ($in[passwd] ? ",passwd='$in[passwd]'" : "")
- . ($in[username] ? ",username='$in[username]'" : "")
+ . ((is_admin($user) && $in[username]) ?
",username='$in[username]'" : "")
. (is_admin($user) ? ",cvsaccess=$cvsaccess" : "")
. ",spamprotect=$spamprotect"
. " WHERE userid=$id";
@@ -180,11 +180,11 @@
<th align="right">Password (crypted):</th>
<td><input type="text" name="in[passwd]" value="<?php echo
htmlspecialchars($row[passwd]);?>" size="20" maxlength="20"
/></td>
</tr>
-<?php }?>
<tr>
<th align="right">CVS username:</th>
<td><input type="text" name="in[username]" value="<?php echo
htmlspecialchars($row[username]);?>" size="16" maxlength="16"
/></td>
</tr>
+<?php }?>
<?php if (is_admin($user)) {?>
<tr>
<th align="right">CVS access?</th>