| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 # MantisBT - A PHP based bugtracking system 3 # Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 4 # MantisBT is free software: you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License as published by 6 # the Free Software Foundation, either version 2 of the License, or 7 # (at your option) any later version. 8 # 9 # MantisBT is distributed in the hope that it will be useful, 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # GNU General Public License for more details. 13 # 14 # You should have received a copy of the GNU General Public License 15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>. 16 17 $t_plugin_path = config_get( 'plugin_path' ); 18 require_once( $t_plugin_path . 'XmlImportExport' . DIRECTORY_SEPARATOR . 'ImportXml.php' ); 19 20 form_security_validate( 'plugin_xml_import_action' ); 21 22 auth_reauthenticate( ); 23 24 //var_dump( $_POST ); 25 $f_file = gpc_get_file( 'file', -1 ); 26 $f_strategy = gpc_get_string( 'strategy' ); 27 $f_fallback = gpc_get_string( 'fallback' ); 28 $f_project = gpc_get_int( 'project_id' ); // not used, but ensures a project is selected 29 $f_keepcategory = gpc_get_bool( 'keepcategory' ); 30 $f_defaultcategory = gpc_get_int( 'defaultcategory' ); 31 32 file_ensure_uploaded( $f_file ); 33 34 $importer = new ImportXML( $f_file, $f_strategy, $f_fallback, $f_keepcategory, $f_defaultcategory ); 35 36 form_security_purge( 'plugin_xml_import_action' ); 37 38 html_page_top( plugin_lang_get( 'import' ) ); 39 40 print_manage_menu( 'manage_import_issues_page.php' ); 41 42 echo "<pre>\n"; 43 $importer->import( ); 44 echo "</pre>\n"; 45 46 html_page_bottom();
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 |