. /** * Browser Search Functionality - outputs opensearchdescription xml * * @package MantisBT * @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org * @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org * * @uses core.php * @uses config_api.php * @uses gpc_api.php */ # Prevent output of HTML in the content if errors occur define( 'DISABLE_INLINE_ERROR_REPORTING', true ); require_once( 'core.php' ); require_api( 'config_api.php' ); require_api( 'gpc_api.php' ); $f_type = strtolower( gpc_get_string( 'type', 'text' ) ); $t_path = config_get_global( 'path' ); $t_title = config_get( 'search_title' ); $t_icon = $t_path . config_get( 'favicon_image' ); $t_searchform = $t_path . 'view_all_bug_page.php'; # Localized ShortName and Description elements $t_shortname = sprintf( lang_get( "opensearch_{$f_type}_short" ), $t_title ); $t_description = sprintf( lang_get( "opensearch_{$f_type}_description" ), $t_title ); if( $f_type == 'id' ) { $t_url = $t_path . 'view.php?id={searchTerms}'; } else { $t_url = $t_path . 'view_all_set.php?type=1&temporary=y&handler_id=[all]&search={searchTerms}'; } header( 'Content-Type: application/opensearchdescription+xml' ); echo ''; ?> UTF-8 ';