b2evolution PHP Cross Reference Blogging Systems

Source: /inc/tools/views/_wpxml_import.form.php - 47 lines - 1604 bytes - Text - Print

Description: This file display the 2nd step of WordPress XML importer

   1  <?php
   2  /**

   3   * This file display the 2nd step of WordPress XML importer

   4   *

   5   * This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}.

   6   * See also {@link http://sourceforge.net/projects/evocms/}.

   7   *

   8   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}.

   9   * Parts of this file are copyright (c)2005 by Daniel HAHLER - {@link http://thequod.de/contact}.

  10   *

  11   * @license http://b2evolution.net/about/license.html GNU General Public License (GPL)

  12   *

  13   * @package admin

  14   *

  15   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}

  16   * @author fplanque: Francois PLANQUE.

  17   *

  18   * @version $Id: _wpxml_import.view.php 505 2011-12-09 20:54:21Z fplanque $

  19   */
  20  
  21  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  22  
  23  global $wp_blog_ID, $dispatcher;
  24  
  25  $Form = new Form( NULL, '', 'post', NULL, 'multipart/form-data' );
  26  
  27  $Form->begin_form( 'fform', T_('WordPress XML Importer') );
  28  
  29  $Form->begin_fieldset( T_('Report of the import') );
  30  
  31      $BlogCache = & get_BlogCache();
  32      $Blog = & $BlogCache->get_by_ID( $wp_blog_ID );
  33      $Form->info( T_('Blog'), $Blog->get_name() );
  34  
  35      // Import the data and display a report on the screen

  36      wpxml_import();
  37  
  38  $Form->end_fieldset();
  39  
  40  $Form->buttons( array(
  41          array( 'button', 'button', T_('Go to Blog'), 'SaveButton', 'onclick' => 'location.href="'.$Blog->get( 'url' ).'"' ),
  42          array( 'button', 'button', T_('Back'), 'SaveButton', 'onclick' => 'location.href="'.$dispatcher.'?ctrl=wpimportxml"' )
  43      ) );
  44  
  45  $Form->end_form();
  46  
  47  ?>

title

Description

title

Description

title

Description

title

title

Body