[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/auth/class.auth_sql.php, 1.1.1.1.2.7
From: |
nomail |
Subject: |
[Phpgroupware-cvs] api/auth/class.auth_sql.php, 1.1.1.1.2.7 |
Date: |
Thu, 20 May 2004 14:48:54 -0000 |
Update of /api/auth
Modified Files:
Branch: proposal-branch
class.auth_sql.php
date: 2004/04/16 20:59:49; author: seek3r; state: Exp; lines: +13 -13
Log Message:
bringing savannah cvs back up to date with what we were doing on our private
cvs server. We will not be doing dev from this cvs tree
=====================================================================
No syntax errors detected in -
=====================================================================
Index: api/auth/class.auth_sql.php
diff -u api/auth/class.auth_sql.php:1.1.1.1.2.6
api/auth/class.auth_sql.php:1.1.1.1.2.7
--- api/auth/class.auth_sql.php:1.1.1.1.2.6 Sat Feb 28 09:16:02 2004
+++ api/auth/class.auth_sql.php Fri Apr 16 20:59:49 2004
@@ -40,16 +40,16 @@
//$sql = "SELECT * FROM phpgw_accounts WHERE
account_lid='" . $username . "' AND "
// . "account_pwd='" . md5($passwd) . "' AND
account_status='A' AND account_type='u'";
- $dbresult =
$GLOBALS['phpgw']->db->execute($sql,__LINE__,__FILE__);
+ $dbresult = $GLOBALS['phpgw']->db->Execute($sql);
- if ($dbresult === false)
+ if ($dbresult->EOF)
{
- return False;
+ return false;
}
else
{
$this->previous_login =
$dbresult->fields['account_lastlogin'];
- return True;
+ return true;
}
}
@@ -58,15 +58,15 @@
function change_password()
{
$args = new safe_args();
- $args->set('current_passwd', '##REQUIRED##', 'any');
- $args->set('new_passwd', '##REQUIRED##', 'string');
- $args->set('account_id', '##NOTSET##', 'string');
- $args = $args->get(func_get_args(),__LINE__,__FILE__);
+ $args->set('current_passwd', REQUIRED, 'any');
+ $args->set('new_passwd', REQUIRED, 'string');
+ $args->set('account_id', NOTSET, 'string');
+ $args = $args->get(func_get_args());
- $dbresult = $GLOBALS['phpgw']->db->execute("update
phpgw_accounts set account_pwd='" . md5($args['new_passwd']) . "' where
account_id='"
- . $args['account_id'] . "'",__LINE__,__FILE__);
+ $dbresult = $GLOBALS['phpgw']->db->Execute("update
phpgw_accounts set account_pwd='" . md5($args['new_passwd']) . "' where
account_id='"
+ . $args['account_id'] . "'");
- return ($dbresult->affectedrows() ? True : False);
+ return ($dbresult->affectedrows() ? true : false);
}
function update_lastlogin($account_id, $ip)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/auth/class.auth_sql.php, 1.1.1.1.2.7,
nomail <=