cvs: pearweb /public_html account-edit.php account-info.php
| From: | Thomas V.V.Cox | Date: | Wed, 26 Dec 2001 19:54:25 +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-1704@lists.php.net to get a copy of this message | ||
cox Wed Dec 26 14:54:25 2001 EDT
Modified files:
/pearweb/public_html account-edit.php account-info.php
Log:
use the "handle" column from "users" table instead of "username" for
now
Index: pearweb/public_html/account-edit.php
diff -u pearweb/public_html/account-edit.php:1.3 pearweb/public_html/account-edit.php:1.4
--- pearweb/public_html/account-edit.php:1.3 Wed Dec 26 14:51:39 2001
+++ pearweb/public_html/account-edit.php Wed Dec 26 14:54:25 2001
@@ -33,7 +33,7 @@
$HTTP_POST_VARS['userinfo'],
isset($HTTP_POST_VARS['showemail']) ? 1 : 0,
isset($HTTP_POST_VARS['admin']) ? 1 : 0);
- $query .= " WHERE username = '" . $HTTP_POST_VARS['handle'] .
"'";
+ $query .= " WHERE handle = '" . $HTTP_POST_VARS['handle'] .
"'";
$sth = $dbh->query($query);
$old_acl = $dbh->getCol("SELECT path FROM cvs_acl ".
@@ -74,7 +74,7 @@
default : {
$dbh->setFetchmode(DB_FETCHMODE_ASSOC);
- $row = $dbh->getRow("SELECT * FROM users WHERE username = ?",
+ $row = $dbh->getRow("SELECT * FROM users WHERE handle = ?",
array($handle));
$cvs_acl_arr = $dbh->getCol("SELECT path FROM cvs_acl ".
"WHERE username = ? AND access = 1", 0,
Index: pearweb/public_html/account-info.php
diff -u pearweb/public_html/account-info.php:1.3 pearweb/public_html/account-info.php:1.4
--- pearweb/public_html/account-info.php:1.3 Wed Dec 26 14:51:39 2001
+++ pearweb/public_html/account-info.php Wed Dec 26 14:54:25 2001
@@ -2,7 +2,7 @@
/**
* Details about PEAR accounts
*
- * $Id: account-info.php,v 1.3 2001/12/26 19:51:39 cox Exp $
+ * $Id: account-info.php,v 1.4 2001/12/26 19:54:25 cox Exp $
*/
/**
@@ -19,7 +19,7 @@
$dbh->setFetchmode(DB_FETCHMODE_ASSOC);
$row = $dbh->getRow("SELECT * FROM users WHERE registered = 1 ".
- "AND username = ?", array($handle));
+ "AND handle = ?", array($handle));
if ($row === null) {
PEAR::raiseError("No account information found!");