b2evolution PHP Cross Reference Blogging Systems

Source: /inc/tools/views/_phpbb_config.form.php - 66 lines - 2627 bytes - Text - Print

Description: This file display the 1st step of phpBB importer

   1  <?php
   2  /**

   3   * This file display the 1st 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: _misc_tools.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 $phpbb_db_config, $phpbb_blog_ID, $dispatcher;
  24  
  25  $Form = new Form();
  26  
  27  $Form->begin_form( 'fform', T_('phpBB Importer').' - '.T_('Step 1: Database connection') );
  28  evo_flush();
  29  
  30  $Form->add_crumb( 'phpbb' );
  31  $Form->hidden_ctrl();
  32  $Form->hidden( 'action', 'database' );
  33  
  34  $Form->begin_fieldset( T_('Access information for database of phpBB forum') );
  35  
  36      $Form->text( 'db_host', param( 'db_host', 'string', $phpbb_db_config['host'] ), 20, T_('Database host') );
  37  
  38      $Form->text( 'db_name', param( 'db_name', 'string', $phpbb_db_config['name'] ), 20, T_('Database name') );
  39  
  40      $Form->text( 'db_user', param( 'db_user', 'string', $phpbb_db_config['user'] ), 20, T_('Username') );
  41  
  42      $Form->password( 'db_pass', param( 'db_pass', 'string', $phpbb_db_config['password'] ), 20, T_('Password') );
  43  
  44      $Form->text( 'db_prefix', param( 'db_prefix', 'string', $phpbb_db_config['prefix'] ), 20, T_('Table prefix') );
  45  
  46      $Form->text( 'path_avatars', param( 'path_avatars', 'string', phpbb_get_var( 'path_avatars' ) ), 80, T_('Source for avatars'), '', 1000 );
  47  
  48  $Form->end_fieldset();
  49  
  50  $Form->begin_fieldset( T_('Select a blog for import') );
  51  
  52      $BlogCache = & get_BlogCache();
  53  
  54      $Form->select_input_object( 'forum_blog_ID', param( 'forum_blog_ID', 'integer', phpbb_get_var( 'blog_ID' ) ), $BlogCache, T_('Blog for import'), array(
  55              'note' => T_('Select the destination forum collection.').' <a href="'.$dispatcher.'?ctrl=collections&action=new">'.T_('Create new collection').' &raquo;</a>',
  56              'allow_none' => true,
  57              'object_callback' => 'get_option_list_forums' ) );
  58  
  59  $Form->end_fieldset();
  60  
  61  $Form->buttons( array( array( 'submit', 'submit', T_('Continue !'), 'SaveButton' ),
  62                                               array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  63  
  64  $Form->end_form();
  65  
  66  ?>

title

Description

title

Description

title

Description

title

title

Body