cvs: pear /LiveUser_Admin/Auth DB.php MDB.php MDB2.php
| From: | Lukas Smith | Date: | Sat, 09 Apr 2005 23:21:42 +0000 |
| Subject: | cvs: pear /LiveUser_Admin/Auth DB.php MDB.php MDB2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-31082@lists.php.net to get a copy of this message | ||
lsmith Sat Apr 9 19:21:42 2005 EDT
Modified files:
/pear/LiveUser_Admin/Auth DB.php MDB.php MDB2.php
Log:
- fixed typo (bug #4109)
- cosmetic fixes
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/DB.php?r1=1.8&r2=1.9&ty=u Index: pear/LiveUser_Admin/Auth/DB.php diff -u pear/LiveUser_Admin/Auth/DB.php:1.8 pear/LiveUser_Admin/Auth/DB.php:1.9 --- pear/LiveUser_Admin/Auth/DB.php:1.8 Sun Feb 20 17:55:59 2005 +++ pear/LiveUser_Admin/Auth/DB.php Sat Apr 9 19:21:42 2005 @@ -57,7 +57,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: DB.php,v 1.8 2005/02/20 22:55:59 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.9 2005/04/09 23:21:42 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -200,8 +200,10 @@ // is_active, owner_user_id and owner_group_id are optional $col = $val = array(); - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { $col[] = $this->authTableCols['optional'][$alias]['name']; if ($alias == 'is_active') { @@ -211,8 +213,10 @@ } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $col[] = $this->authTableCols['custom'][$alias]['name']; $val[] = $this->dbc->quoteSmart($value); @@ -320,8 +324,10 @@ . $this->dbc->quoteSmart($this->encryptPW($password)); } - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { if ($alias == 'is_active') { $value = ($value ? 'Y' : 'N'); @@ -331,8 +337,10 @@ } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $updateValues[] = $this->authTableCols['custom'][$alias]['name'] . '=' . $this->dbc->quoteSmart($value); @@ -417,7 +425,7 @@ } } - if (count($customFields > 0)) { + if (count($customFields) > 0) { $fields = ','; $fields .= implode(',', $customFields); } http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/MDB.php?r1=1.8&r2=1.9&ty=u Index: pear/LiveUser_Admin/Auth/MDB.php diff -u pear/LiveUser_Admin/Auth/MDB.php:1.8 pear/LiveUser_Admin/Auth/MDB.php:1.9 --- pear/LiveUser_Admin/Auth/MDB.php:1.8 Sun Feb 20 17:55:59 2005 +++ pear/LiveUser_Admin/Auth/MDB.php Sat Apr 9 19:21:42 2005 @@ -57,7 +57,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: MDB.php,v 1.8 2005/02/20 22:55:59 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.9 2005/04/09 23:21:42 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ /** @@ -210,16 +210,20 @@ $col = $val = array(); - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { $col[] = $this->authTableCols['optional'][$alias]['name']; $val[] = $this->dbc->getValue($this->authTableCols['optional'][$alias]['type'], $value); } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $col[] = $this->authTableCols['custom'][$alias]['name']; $val[] = $this->dbc->getValue($this->authTableCols['custom'][$alias]['type'], $value); @@ -329,16 +333,20 @@ . $this->dbc->getValue($this->authTableCols['required']['passwd']['type'], $this->encryptPW($password)); } - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { $updateValues[] = $this->authTableCols['optional'][$alias]['name'] . '=' . $this->dbc->getValue($this->authTableCols['optional'][$alias]['type'], $value); } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $updateValues[] = $this->authTableCols['custom'][$alias]['name'] . '=' . $this->dbc->getValue($this->authTableCols['custom'][$alias]['type'], $value); @@ -431,7 +439,7 @@ } } - if (count($customFields > 0)) { + if (count($customFields) > 0) { $fields = ','; $fields .= implode(',', $customFields); } http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/MDB2.php?r1=1.8&r2=1.9&ty=u Index: pear/LiveUser_Admin/Auth/MDB2.php diff -u pear/LiveUser_Admin/Auth/MDB2.php:1.8 pear/LiveUser_Admin/Auth/MDB2.php:1.9 --- pear/LiveUser_Admin/Auth/MDB2.php:1.8 Sun Feb 20 17:55:59 2005 +++ pear/LiveUser_Admin/Auth/MDB2.php Sat Apr 9 19:21:42 2005 @@ -57,7 +57,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: MDB2.php,v 1.8 2005/02/20 22:55:59 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.9 2005/04/09 23:21:42 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -206,16 +206,20 @@ $col = $val = array(); - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { $col[] = $this->authTableCols['optional'][$alias]['name']; $val[] = $this->dbc->quote($value, $this->authTableCols['optional'][$alias]['type']); } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $col[] = $this->authTableCols['custom'][$alias]['name']; $val[] = $this->dbc->quote($value, $this->authTableCols['custom'][$alias]['type']); @@ -325,16 +329,20 @@ . $this->dbc->quote($this->encryptPW($password), $this->authTableCols['required']['passwd']['type']); } - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { $updateValues[] = $this->authTableCols['optional'][$alias]['name'] . '=' . $this->dbc->quote($value, $this->authTableCols['optional'][$alias]['type']); } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $updateValues[] = $this->authTableCols['custom'][$alias]['name'] . '=' . $this->dbc->quote($value, $this->authTableCols['custom'][$alias]['type']); @@ -427,7 +435,7 @@ } } - if (count($customFields > 0)) { + if (count($customFields) > 0) { $fields = ','; $fields .= implode(',', $customFields); }
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/DB.php?r1=1.8&r2=1.9&ty=u Index: pear/LiveUser_Admin/Auth/DB.php diff -u pear/LiveUser_Admin/Auth/DB.php:1.8 pear/LiveUser_Admin/Auth/DB.php:1.9 --- pear/LiveUser_Admin/Auth/DB.php:1.8 Sun Feb 20 17:55:59 2005 +++ pear/LiveUser_Admin/Auth/DB.php Sat Apr 9 19:21:42 2005 @@ -57,7 +57,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: DB.php,v 1.8 2005/02/20 22:55:59 lsmith Exp $ + * @version CVS: $Id: DB.php,v 1.9 2005/04/09 23:21:42 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -200,8 +200,10 @@ // is_active, owner_user_id and owner_group_id are optional $col = $val = array(); - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { $col[] = $this->authTableCols['optional'][$alias]['name']; if ($alias == 'is_active') { @@ -211,8 +213,10 @@ } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $col[] = $this->authTableCols['custom'][$alias]['name']; $val[] = $this->dbc->quoteSmart($value); @@ -320,8 +324,10 @@ . $this->dbc->quoteSmart($this->encryptPW($password)); } - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { if ($alias == 'is_active') { $value = ($value ? 'Y' : 'N'); @@ -331,8 +337,10 @@ } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $updateValues[] = $this->authTableCols['custom'][$alias]['name'] . '=' . $this->dbc->quoteSmart($value); @@ -417,7 +425,7 @@ } } - if (count($customFields > 0)) { + if (count($customFields) > 0) { $fields = ','; $fields .= implode(',', $customFields); } http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/MDB.php?r1=1.8&r2=1.9&ty=u Index: pear/LiveUser_Admin/Auth/MDB.php diff -u pear/LiveUser_Admin/Auth/MDB.php:1.8 pear/LiveUser_Admin/Auth/MDB.php:1.9 --- pear/LiveUser_Admin/Auth/MDB.php:1.8 Sun Feb 20 17:55:59 2005 +++ pear/LiveUser_Admin/Auth/MDB.php Sat Apr 9 19:21:42 2005 @@ -57,7 +57,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: MDB.php,v 1.8 2005/02/20 22:55:59 lsmith Exp $ + * @version CVS: $Id: MDB.php,v 1.9 2005/04/09 23:21:42 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ /** @@ -210,16 +210,20 @@ $col = $val = array(); - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { $col[] = $this->authTableCols['optional'][$alias]['name']; $val[] = $this->dbc->getValue($this->authTableCols['optional'][$alias]['type'], $value); } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $col[] = $this->authTableCols['custom'][$alias]['name']; $val[] = $this->dbc->getValue($this->authTableCols['custom'][$alias]['type'], $value); @@ -329,16 +333,20 @@ . $this->dbc->getValue($this->authTableCols['required']['passwd']['type'], $this->encryptPW($password)); } - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { $updateValues[] = $this->authTableCols['optional'][$alias]['name'] . '=' . $this->dbc->getValue($this->authTableCols['optional'][$alias]['type'], $value); } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $updateValues[] = $this->authTableCols['custom'][$alias]['name'] . '=' . $this->dbc->getValue($this->authTableCols['custom'][$alias]['type'], $value); @@ -431,7 +439,7 @@ } } - if (count($customFields > 0)) { + if (count($customFields) > 0) { $fields = ','; $fields .= implode(',', $customFields); } http://cvs.php.net/diff.php/pear/LiveUser_Admin/Auth/MDB2.php?r1=1.8&r2=1.9&ty=u Index: pear/LiveUser_Admin/Auth/MDB2.php diff -u pear/LiveUser_Admin/Auth/MDB2.php:1.8 pear/LiveUser_Admin/Auth/MDB2.php:1.9 --- pear/LiveUser_Admin/Auth/MDB2.php:1.8 Sun Feb 20 17:55:59 2005 +++ pear/LiveUser_Admin/Auth/MDB2.php Sat Apr 9 19:21:42 2005 @@ -57,7 +57,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: MDB2.php,v 1.8 2005/02/20 22:55:59 lsmith Exp $ + * @version CVS: $Id: MDB2.php,v 1.9 2005/04/09 23:21:42 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -206,16 +206,20 @@ $col = $val = array(); - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { $col[] = $this->authTableCols['optional'][$alias]['name']; $val[] = $this->dbc->quote($value, $this->authTableCols['optional'][$alias]['type']); } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $col[] = $this->authTableCols['custom'][$alias]['name']; $val[] = $this->dbc->quote($value, $this->authTableCols['custom'][$alias]['type']); @@ -325,16 +329,20 @@ . $this->dbc->quote($this->encryptPW($password), $this->authTableCols['required']['passwd']['type']); } - if (isset($this->authTableCols['optional']) && is_array($optionalFields) && - count($optionalFields) > 0) { + if (isset($this->authTableCols['optional']) && + is_array($optionalFields) && + count($optionalFields) > 0 + ) { foreach ($optionalFields as $alias => $value) { $updateValues[] = $this->authTableCols['optional'][$alias]['name'] . '=' . $this->dbc->quote($value, $this->authTableCols['optional'][$alias]['type']); } } - if (isset($this->authTableCols['custom']) && is_array($customFields) && - count($customFields) > 0) { + if (isset($this->authTableCols['custom']) && + is_array($customFields) && + count($customFields) > 0 + ) { foreach ($customFields as $alias => $value) { $updateValues[] = $this->authTableCols['custom'][$alias]['name'] . '=' . $this->dbc->quote($value, $this->authTableCols['custom'][$alias]['type']); @@ -427,7 +435,7 @@ } } - if (count($customFields > 0)) { + if (count($customFields) > 0) { $fields = ','; $fields .= implode(',', $customFields); }