0byt3m1n1
Path:
/
data
/
applications
/
aps
/
mantis
/
1.1.1-6
/
standard
/
htdocs
/
api
/
soap
/
[
Home
]
File: mc_account_api.php
<?php # MantisConnect - A webservice interface to Mantis Bug Tracker # Copyright (C) 2004-2007 Victor Boctor - vboctor@users.sourceforge.net # This program is distributed under dual licensing. These include # GPL and a commercial licenses. Victor Boctor reserves the right to # change the license of future releases. # See docs/ folder for more details # -------------------------------------------------------- # $Id: mc_account_api.php,v 1.1 2007-07-18 06:52:48 vboctor Exp $ # -------------------------------------------------------- function mci_account_get_array_by_id( $p_user_id ) { $t_result = array(); $t_result['id'] = $p_user_id; if ( user_exists( $p_user_id ) ) { $t_result['name'] = user_get_field( $p_user_id, 'username' ); $t_dummy = user_get_field( $p_user_id, 'realname'); if( !empty( $t_dummy ) ) { $t_result['real_name'] = $t_dummy; } $t_dummy = user_get_field( $p_user_id, 'email' ); if( !empty( $t_dummy ) ) { $t_result['email'] = $t_dummy; } } return $t_result; } ?>