[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - preferences * 4 * http://www.egroupware.org * 5 * Written by Joseph Engo <jengo@phpgroupware.org> * 6 * -------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \**************************************************************************/ 12 13 /* $Id: class.bopassword.inc.php 19417 2005-10-14 14:31:35Z ralfbecker $ */ 14 15 class bopassword 16 { 17 var $public_functions = array( 18 'changepass' => True 19 ); 20 21 var $xml_functions = array(); 22 var $xmlrpc_methods = array(); 23 var $soap_functions = array( 24 'changepass' => array( 25 'in' => array('string','string'), 26 'out' => array('boolean') 27 ) 28 ); 29 30 var $debug = False; 31 32 function changepass($old,$new) 33 { 34 return $GLOBALS['egw']->auth->change_password($old, $new); 35 } 36 37 function list_methods($_type='xmlrpc') 38 { 39 /* 40 This handles introspection or discovery by the logged in client, 41 in which case the input might be an array. The server always calls 42 this function to fill the server dispatch map using a string. 43 */ 44 if(is_array($_type)) 45 { 46 $_type = $_type['type'] ? $_type['type'] : $_type[0]; 47 } 48 switch($_type) 49 { 50 case 'xmlrpc': 51 $xml_functions = array( 52 'changepass' => array( 53 'function' => 'changepass', 54 'signature' => array(array(xmlrpcBoolean,xmlrpcString,xmlrcpString)), 55 'docstring' => lang('Change a user password by passing the old and new passwords. Returns TRUE on success, FALSE on failure.') 56 ), 57 'list_methods' => array( 58 'function' => 'list_methods', 59 'signature' => array(array(xmlrpcStruct,xmlrpcString)), 60 'docstring' => lang('Read this list of methods.') 61 ) 62 ); 63 return $xml_functions; 64 break; 65 case 'soap': 66 return $this->soap_functions; 67 break; 68 default: 69 return array(); 70 break; 71 } 72 } 73 } 74 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |