. # -------------------------------------------------------- # $Id: adm_config_report.php,v 1.9.2.1 2007-10-13 22:32:25 giallu Exp $ # -------------------------------------------------------- require_once( 'core.php' ); access_ensure_project_level( config_get( 'view_configuration_threshold' ) ); $t_core_path = config_get( 'core_path' ); html_page_top1( lang_get( 'configuration_report' ) ); html_page_top2(); print_manage_menu( 'adm_config_report.php' ); print_manage_config_menu( 'adm_config_report.php' ); function get_config_type( $p_type ) { switch( $p_type ) { case CONFIG_TYPE_INT: return "integer"; case CONFIG_TYPE_COMPLEX: return "complex"; case CONFIG_TYPE_STRING: default: return "string"; } } function print_config_value_as_string( $p_type, $p_value ) { switch( $p_type ) { case CONFIG_TYPE_INT: $t_value = (integer)$p_value; echo $t_value; return; case CONFIG_TYPE_STRING: $t_value = config_eval( $p_value ); echo string_nl2br( string_html_specialchars( "'$t_value'" ) ); return; case CONFIG_TYPE_COMPLEX: $t_value = unserialize( $p_value ); break; default: $t_value = config_eval( $p_value ); break; } echo '
'; if ( function_exists( 'var_export' ) ) { var_export( $t_value ); } else { print_r( $t_value ); } echo ''; } $t_config_table = config_get_global( 'mantis_config_table' ); $query = "SELECT config_id, user_id, project_id, type, value, access_reqd FROM $t_config_table ORDER BY user_id, project_id, config_id"; $result = db_query( $query ); ?>