[ Index ] |
|
Code source de Mantis 1.1.0rc3 |
1 <?php 2 # MantisConnect - A webservice interface to Mantis Bug Tracker 3 # Copyright (C) 2004-2007 Victor Boctor - vboctor@users.sourceforge.net 4 # This program is distributed under dual licensing. These include 5 # GPL and a commercial licenses. Victor Boctor reserves the right to 6 # change the license of future releases. 7 # See docs/ folder for more details 8 9 # -------------------------------------------------------- 10 # $Id: mc_account_api.php,v 1.1 2007-07-18 06:52:48 vboctor Exp $ 11 # -------------------------------------------------------- 12 13 function mci_account_get_array_by_id( $p_user_id ) { 14 $t_result = array(); 15 $t_result['id'] = $p_user_id; 16 if ( user_exists( $p_user_id ) ) { 17 $t_result['name'] = user_get_field( $p_user_id, 'username' ); 18 $t_dummy = user_get_field( $p_user_id, 'realname'); 19 if( !empty( $t_dummy ) ) { 20 $t_result['real_name'] = $t_dummy; 21 } 22 $t_dummy = user_get_field( $p_user_id, 'email' ); 23 if( !empty( $t_dummy ) ) { 24 $t_result['email'] = $t_dummy; 25 } 26 } 27 return $t_result; 28 } 29 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |