Update of /cvsroot/phpwebsite-comm/modules/openid/class
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31841/class
Modified Files:
OpenID_Runtime.php
Log Message:
Adding remove_user.php to support new User mod feature.
Index: OpenID_Runtime.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/openid/class/OpenID_Runtime.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** OpenID_Runtime.php 11 Feb 2008 02:11:51 -0000 1.3
--- OpenID_Runtime.php 11 Jul 2008 16:23:31 -0000 1.4
***************
*** 93,108 ****
Layout::add(PHPWS_Template::process($tags, 'openid', 'user.tpl'));
}
-
- function clean()
- {
- if (Current_User::isLogged() && (@$_REQUEST['module'] == 'users') && (@$_REQUEST['action'] == 'admin') &&
- (@$_REQUEST['command'] == 'deleteUser') && isset($_REQUEST['user_id']))
- {
- /* User being deleted. Remove from OpenID mapping table. */
- $db = new PHPWS_DB('openid_mapping');
- $db->addWhere('user_id', $_REQUEST['user_id']);
- PHPWS_Error::logIfError($db->delete());
- }
- }
}
--- 93,96 ----
|