b2evolution PHP Cross Reference Blogging Systems

Source: /inc/tools/views/_phpbb_users.form.php - 77 lines - 2376 bytes - Text - Print

Description: This file display the 3rd step of phpBB importer

   1  <?php
   2  /**

   3   * This file display the 3rd 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 3: Import users') );
  28  evo_flush();
  29  
  30  $Form->add_crumb( 'phpbb' );
  31  $Form->hidden_ctrl();
  32  $Form->hidden( 'action', 'forums' );
  33  
  34  if( $flush_action == 'users' )
  35  {
  36      $Form->begin_fieldset( T_('Import log') );
  37  
  38      // Import the users

  39      phpbb_import_users();
  40  
  41      $Form->end_fieldset();
  42  }
  43  
  44  
  45  $Form->begin_fieldset( T_('Report of users import') );
  46  
  47      $Form->info( T_('Count of the imported users'), '<b>'.(int)phpbb_get_var( 'users_count_imported' ).'</b>' );
  48  
  49      $Form->info( T_('Count of the updated users'), '<b>'.(int)phpbb_get_var( 'users_count_updated' ).'</b>' );
  50  
  51      $GroupCache = & get_GroupCache();
  52  
  53      $group_default = phpbb_get_var( 'group_default' );
  54      if( $Group = & $GroupCache->get_by_ID( $group_default, false ) )
  55      {
  56          $Form->info( T_('Default group'), $Group->get( 'name' ) );
  57      }
  58  
  59      $group_invalid = phpbb_get_var( 'group_invalid' );
  60      if( !empty( $group_invalid ) && $Group = & $GroupCache->get_by_ID( $group_invalid, false ) )
  61      {
  62          $group_invalid_name = $Group->get( 'name' );
  63      }
  64      else
  65      {
  66          $group_invalid_name = T_('No import');
  67      }
  68      $Form->info( T_('Group for invalid users'), $group_invalid_name );
  69  
  70  $Form->end_fieldset();
  71  
  72  $Form->buttons( array( array( 'submit', 'submit', T_('Continue !'), 'SaveButton' )/*,

  73                                               array( 'button', 'button', T_('Back'), 'SaveButton', 'location.href=\''.$dispatcher.'?ctrl=phpbbimport&step=groups\'' )*/ ) );
  74  
  75  $Form->end_form();
  76  
  77  ?>

title

Description

title

Description

title

Description

title

title

Body