From 05d2e0957e96e91078cd710b5f77ce9ed41195c1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 15 Apr 2005 14:48:05 +0000 Subject: [PATCH] fix for not working pam-auth if magic_quotes_gpc is on, as suggested by Robert Theisen on the developer list --- phpgwapi/inc/class.auth_pam.inc.php | 52 +++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 phpgwapi/inc/class.auth_pam.inc.php diff --git a/phpgwapi/inc/class.auth_pam.inc.php b/phpgwapi/inc/class.auth_pam.inc.php new file mode 100644 index 0000000000..59c3073377 --- /dev/null +++ b/phpgwapi/inc/class.auth_pam.inc.php @@ -0,0 +1,52 @@ +db->query('update phpgw_accounts set account_lastloginfrom=' + . $GLOBALS['phpgw']->db->quote($ip).', account_lastlogin=' . time() + . ' where account_id='.(int)$account_id,__LINE__,__FILE__); + } + } +?>