b2evolution PHP Cross Reference Blogging Systems

Source: /inc/tools/views/_phpbb_forums.form.php - 63 lines - 2085 bytes - Text - Print

Description: This file display the 4th step of phpBB importer

   1  <?php
   2  /**

   3   * This file display the 4th step of phpBB 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: _phpbb_users.form.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 $dispatcher, $flush_action;
  24  
  25  $Form = new Form();
  26  
  27  $Form->begin_form( 'fform', T_('phpBB Importer').' - '.T_('Step 4: Import forums') );
  28  evo_flush();
  29  
  30  $Form->add_crumb( 'phpbb' );
  31  $Form->hidden_ctrl();
  32  $Form->hidden( 'action', 'topics' );
  33  
  34  if( $flush_action == 'forums' )
  35  {
  36      $Form->begin_fieldset( T_('Import log') );
  37  
  38      // Import the forums into the categories

  39      phpbb_import_forums();
  40  
  41      $Form->end_fieldset();
  42  }
  43  
  44  $Form->begin_fieldset( T_('Report of the forums import') );
  45  
  46      $Form->info( T_('Count of the imported forums'), '<b>'.(int)phpbb_get_var( 'forums_count_imported' ).'</b>' );
  47  
  48      $Form->info( T_('Count of the imported users'), (int)phpbb_get_var( 'users_count_imported' ) );
  49  
  50      $Form->info( T_('Count of the updated users'), (int)phpbb_get_var( 'users_count_updated' ) );
  51  
  52      $BlogCache = & get_BlogCache();
  53      $Blog = & $BlogCache->get_by_ID( phpbb_get_var( 'blog_ID' ) );
  54      $Form->info( T_('Blog'), $Blog->get( 'name' ), '' );
  55  
  56  $Form->end_fieldset();
  57  
  58  $Form->buttons( array( array( 'submit', 'submit', T_('Continue !'), 'SaveButton' )/*,

  59                                               array( 'button', 'button', T_('Back'), 'SaveButton', 'location.href=\''.$dispatcher.'?ctrl=phpbbimport&step=users\'' )*/ ) );
  60  
  61  $Form->end_form();
  62  
  63  ?>

title

Description

title

Description

title

Description

title

title

Body