. /** * @package MantisBT * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org * @copyright Copyright (C) 2002 - 2009 Mantis Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org */ /** * Mantis Core API's */ 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 ) { $t_corrupted = false; 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( utf8_decode( $p_value ) ); if ( $t_value === false ) { $t_corrupted = true; } break; default: $t_value = config_eval( $p_value ); break; } echo '
'; if ( $t_corrupted ) { echo lang_get( 'configuration_corrupted' ); } else { if ( function_exists( 'var_export' ) ) { var_export( $t_value ); } else { print_r( $t_value ); } } echo ''; } $t_config_table = db_get_table( '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_bound( $query ); ?>