| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 # MantisConnect - A webservice interface to Mantis Bug Tracker 3 # Copyright (C) 2004-2011 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 function mc_config_get_string( $p_username, $p_password, $p_config_var ) { 10 $t_user_id = mci_check_login( $p_username, $p_password ); 11 if( $t_user_id === false ) { 12 return mci_soap_fault_login_failed(); 13 } 14 15 if( !mci_has_readonly_access( $t_user_id ) ) { 16 return mci_soap_fault_access_denied( $t_user_id ); 17 } 18 19 if( config_is_private( $p_config_var ) ) { 20 return new soap_fault( 'Client', '', "Access to '$p_config_var' is denied" ); 21 } 22 23 if( !config_is_set( $p_config_var ) ) { 24 return new soap_fault( 'Client', '', "Config '$p_config_var' is undefined" ); 25 } 26 27 return config_get( $p_config_var ); 28 } 29
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |