cvs: pearweb /public_html account-edit.php
| From: | Martin Jansen | Date: | Fri, 26 Sep 2003 19:50:47 +0000 |
| Subject: | cvs: pearweb /public_html account-edit.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13117@lists.php.net to get a copy of this message | ||
mj Fri Sep 26 15:50:47 2003 EDT
Modified files:
/pearweb/public_html account-edit.php
Log:
* Administrator status will be granted via /admin/karma.php now.
Index: pearweb/public_html/account-edit.php
diff -u pearweb/public_html/account-edit.php:1.20 pearweb/public_html/account-edit.php:1.21
--- pearweb/public_html/account-edit.php:1.20 Fri Aug 1 16:09:37 2003
+++ pearweb/public_html/account-edit.php Fri Sep 26 15:50:47 2003
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: account-edit.php,v 1.20 2003/08/01 20:09:37 mj Exp $
+ $Id: account-edit.php,v 1.21 2003/09/26 19:50:47 mj Exp $
*/
auth_require();
@@ -54,14 +54,13 @@
case "update" : {
- $query = sprintf("UPDATE users SET name = '%s', email = '%s',
homepage = '%s', userinfo = '%s', wishlist = '%s', showemail =
'%s', admin = '%s'",
+ $query = sprintf("UPDATE users SET name = '%s', email = '%s',
homepage = '%s', userinfo = '%s', wishlist = '%s', showemail =
'%s'",
$HTTP_POST_VARS['name'],
$HTTP_POST_VARS['email'],
$HTTP_POST_VARS['homepage'],
addslashes($HTTP_POST_VARS['userinfo']),
$HTTP_POST_VARS['wishlist'],
- isset($HTTP_POST_VARS['showemail']) ? 1 : 0,
- $admin && isset($HTTP_POST_VARS['admin']) ? 1 : 0);
+ isset($HTTP_POST_VARS['showemail']) ? 1 : 0);
$query .= " WHERE handle = '" . $HTTP_POST_VARS['handle'] .
"'";
$sth = $dbh->query($query);
@@ -209,15 +208,6 @@
print " </td>\n";
print " </tr>\n";
- if ($admin) { /* show the admin checkbox only when the visitor is admin */
- print " <tr>\n";
- print " <th
bgcolor=\"#CCCCCC\">Administrator:</th>\n";
- print " <td bgcolor=\"#e8e8e8\">";
- HTML_Form::displayCheckbox("admin", $row['admin']);
- print " </td>\n";
- print " </tr>\n";
- }
-
print " <tr>\n";
print " <th bgcolor=\"#CCCCCC\"> </th>\n";
print " <td bgcolor=\"#e8e8e8\"><input type=\"submit\"
value=\"Submit\" name=\"submit\" /> <input
type=\"reset\" name=\"reset\" value=\"Reset\"
/></td>\n";