cvs: pearweb /public_html account-edit.php account-info.php
| From: | Martin Jansen | Date: | Fri, 10 May 2002 06:08:50 +0000 |
| Subject: | cvs: pearweb /public_html account-edit.php account-info.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3742@lists.php.net to get a copy of this message | ||
mj Fri May 10 02:08:50 2002 EDT
Modified files:
/pearweb/public_html account-info.php account-edit.php
Log:
* Implement displaying and editing of wishlist url.
Index: pearweb/public_html/account-info.php
diff -u pearweb/public_html/account-info.php:1.11 pearweb/public_html/account-info.php:1.12
--- pearweb/public_html/account-info.php:1.11 Fri May 3 09:29:43 2002
+++ pearweb/public_html/account-info.php Fri May 10 02:08:50 2002
@@ -2,7 +2,7 @@
/**
* Details about PEAR accounts
*
- * $Id: account-info.php,v 1.11 2002/05/03 13:29:43 mj Exp $
+ * $Id: account-info.php,v 1.12 2002/05/10 06:08:50 mj Exp $
*/
/**
@@ -51,6 +51,10 @@
$bb->horizHeadRow("Registered since:", $row['created']);
$bb->horizHeadRow("Additional information:",
empty($row['userinfo'])?" ":$row['userinfo']);
$bb->horizHeadRow("CVS Access:", implode("<br />", $access));
+
+if ($row['wishlist'] != "") {
+ $bb->horizHeadRow("Wishlist:", make_link($row['wishlist']));
+}
if ($row['admin'] == 1) {
$bb->fullRow("$row[name] is a PEAR administrator.");
Index: pearweb/public_html/account-edit.php
diff -u pearweb/public_html/account-edit.php:1.12 pearweb/public_html/account-edit.php:1.13
--- pearweb/public_html/account-edit.php:1.12 Fri Apr 12 21:35:39 2002
+++ pearweb/public_html/account-edit.php Fri May 10 02:08:50 2002
@@ -35,11 +35,12 @@
case "update" : {
- $query = sprintf("UPDATE users SET name = '%s', email = '%s',
homepage = '%s', userinfo = '%s', showemail = '%s', admin =
'%s'",
+ $query = sprintf("UPDATE users SET name = '%s', email = '%s',
homepage = '%s', userinfo = '%s', wishlist = '%s', showemail =
'%s', admin = '%s'",
$HTTP_POST_VARS['name'],
$HTTP_POST_VARS['email'],
$HTTP_POST_VARS['homepage'],
$HTTP_POST_VARS['userinfo'],
+ $HTTP_POST_VARS['wishlist'],
isset($HTTP_POST_VARS['showemail']) ? 1 : 0,
isset($HTTP_POST_VARS['admin']) ? 1 : 0);
$query .= " WHERE handle = '" . $HTTP_POST_VARS['handle'] .
"'";
@@ -138,6 +139,13 @@
print " <th bgcolor=\"#CCCCCC\">CVS Access:</th>\n";
print " <td bgcolor=\"#e8e8e8\">";
HTML_Form::displayTextarea("cvs_acl", $cvs_acl);
+ print " </td>\n";
+ print " </tr>\n";
+
+ print " <tr>\n";
+ print " <th bgcolor=\"#CCCCCC\">URL to wishlist:</th>\n";
+ print " <td bgcolor=\"#e8e8e8\">";
+ HTML_Form::displayText("wishlist", $row['wishlist']);
print " </td>\n";
print " </tr>\n";