cvs: pear /LiveUser/Auth DB.php MDB.php MDB2.php PDO.php PEARAuth.php
| From: | Lukas Smith | Date: | Thu, 13 Apr 2006 15:26:49 +0000 |
| Subject: | cvs: pear /LiveUser/Auth DB.php MDB.php MDB2.php PDO.php PEARAuth.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39596@lists.php.net to get a copy of this message | ||
lsmith Thu Apr 13 15:26:49 2006 UTC
Modified files:
/pear/LiveUser/Auth DB.php MDB.php MDB2.php PDO.php PEARAuth.php
Log:
- comment fix
http://cvs.php.net/viewcvs.cgi/pear/LiveUser/Auth/DB.php?r1=1.39&r2=1.40&diff_format=u
Index: pear/LiveUser/Auth/DB.php
diff -u pear/LiveUser/Auth/DB.php:1.39 pear/LiveUser/Auth/DB.php:1.40
--- pear/LiveUser/Auth/DB.php:1.39 Fri Apr 7 22:20:57 2006
+++ pear/LiveUser/Auth/DB.php Thu Apr 13 15:26:49 2006
@@ -40,7 +40,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2006 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: DB.php,v 1.39 2006/04/07 22:20:57 lsmith Exp $
+ * @version CVS: $Id: DB.php,v 1.40 2006/04/13 15:26:49 lsmith Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -223,8 +223,6 @@
$result = $this->dbc->getRow($query, null, DB_FETCHMODE_ASSOC);
if (PEAR::isError($result)) {
- // If a user was found, read data into class variables and set
- // return value to true
$this->stack->push(
LIVEUSER_ERROR, 'exception',
array('reason' => $result->getMessage() . '-' .
$result->getUserInfo())
@@ -236,6 +234,7 @@
return null;
}
+ // User was found, read data into class variables and set return value to true
if (array_key_exists('lastlogin', $result) &&
!empty($result['lastlogin'])) {
$result['lastlogin'] = strtotime($result['lastlogin']);
}
http://cvs.php.net/viewcvs.cgi/pear/LiveUser/Auth/MDB.php?r1=1.41&r2=1.42&diff_format=u
Index: pear/LiveUser/Auth/MDB.php
diff -u pear/LiveUser/Auth/MDB.php:1.41 pear/LiveUser/Auth/MDB.php:1.42
--- pear/LiveUser/Auth/MDB.php:1.41 Fri Apr 7 22:20:57 2006
+++ pear/LiveUser/Auth/MDB.php Thu Apr 13 15:26:49 2006
@@ -40,7 +40,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2006 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: MDB.php,v 1.41 2006/04/07 22:20:57 lsmith Exp $
+ * @version CVS: $Id: MDB.php,v 1.42 2006/04/13 15:26:49 lsmith Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -235,8 +235,6 @@
// Query database
$result = $this->dbc->queryRow($query, $types, MDB_FETCHMODE_ASSOC);
- // If a user was found, read data into class variables and set
- // return value to true
if (PEAR::isError($result)) {
$this->stack->push(
LIVEUSER_ERROR, 'exception',
@@ -249,6 +247,7 @@
return null;
}
+ // User was found, read data into class variables and set return value to true
if (array_key_exists('lastlogin', $result) &&
!empty($result['lastlogin'])) {
$result['lastlogin'] =
MDB_Date::mdbstamp2Unix($result['lastlogin']);
}
http://cvs.php.net/viewcvs.cgi/pear/LiveUser/Auth/MDB2.php?r1=1.45&r2=1.46&diff_format=u
Index: pear/LiveUser/Auth/MDB2.php
diff -u pear/LiveUser/Auth/MDB2.php:1.45 pear/LiveUser/Auth/MDB2.php:1.46
--- pear/LiveUser/Auth/MDB2.php:1.45 Fri Apr 7 22:20:57 2006
+++ pear/LiveUser/Auth/MDB2.php Thu Apr 13 15:26:49 2006
@@ -40,7 +40,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2006 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: MDB2.php,v 1.45 2006/04/07 22:20:57 lsmith Exp $
+ * @version CVS: $Id: MDB2.php,v 1.46 2006/04/13 15:26:49 lsmith Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -244,8 +244,6 @@
// Query database
$result = $this->dbc->queryRow($query, $types, MDB2_FETCHMODE_ASSOC);
- // If a user was found, read data into class variables and set
- // return value to true
if (PEAR::isError($result)) {
$this->stack->push(
LIVEUSER_ERROR, 'exception',
@@ -258,6 +256,7 @@
return null;
}
+ // User was found, read data into class variables and set return value to true
if (array_key_exists('lastlogin', $result) &&
!empty($result['lastlogin'])) {
$result['lastlogin'] =
MDB2_Date::mdbstamp2Unix($result['lastlogin']);
}
http://cvs.php.net/viewcvs.cgi/pear/LiveUser/Auth/PDO.php?r1=1.14&r2=1.15&diff_format=u
Index: pear/LiveUser/Auth/PDO.php
diff -u pear/LiveUser/Auth/PDO.php:1.14 pear/LiveUser/Auth/PDO.php:1.15
--- pear/LiveUser/Auth/PDO.php:1.14 Fri Apr 7 22:20:57 2006
+++ pear/LiveUser/Auth/PDO.php Thu Apr 13 15:26:49 2006
@@ -39,7 +39,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2006 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: PDO.php,v 1.14 2006/04/07 22:20:57 lsmith Exp $
+ * @version CVS: $Id: PDO.php,v 1.15 2006/04/13 15:26:49 lsmith Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -246,8 +246,6 @@
// Query database
$res = $this->dbc->query($query);
- // If a user was found, read data into class variables and set
- // return value to true
if ($res === false) {
$error_info = $this->dbc->errorInfo();
$this->stack->push(
@@ -277,6 +275,7 @@
return null;
}
+ // User was found, read data into class variables and set return value to true
if (array_key_exists('lastlogin', $row) &&
!empty($row['lastlogin'])) {
$row['lastlogin'] = strtotime($row['lastlogin']);
}
http://cvs.php.net/viewcvs.cgi/pear/LiveUser/Auth/PEARAuth.php?r1=1.38&r2=1.39&diff_format=u
Index: pear/LiveUser/Auth/PEARAuth.php
diff -u pear/LiveUser/Auth/PEARAuth.php:1.38 pear/LiveUser/Auth/PEARAuth.php:1.39
--- pear/LiveUser/Auth/PEARAuth.php:1.38 Fri Apr 7 22:20:57 2006
+++ pear/LiveUser/Auth/PEARAuth.php Thu Apr 13 15:26:49 2006
@@ -40,7 +40,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2006 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: PEARAuth.php,v 1.38 2006/04/07 22:20:57 lsmith Exp $
+ * @version CVS: $Id: PEARAuth.php,v 1.39 2006/04/13 15:26:49 lsmith Exp $
* @link http://pear.php.net/LiveUser
*/
@@ -159,12 +159,11 @@
$this->pearAuth->password = $passwd;
$this->pearAuth->start();
- // If a user was found, read data into class variables and set
- // return value to true
if (!$this->pearAuth->getAuth()) {
return null;
}
+ // User was found, read data into class variables and set return value to true
$this->propertyValues['auth_user_id'] = $this->pearAuth->getUsername();
$this->propertyValues['handle'] = $this->pearAuth->getUsername();
$this->propertyValues['passwd'] =
$this->encryptPW($this->pearAuth->password);