b2evolution PHP Cross Reference Blogging Systems

Source: /inc/maintenance/views/_upgrade_svn.form.php - 54 lines - 2291 bytes - Text - Print

Description: This file is part of b2evolution - {@link http://b2evolution.net/} See also {@link http://sourceforge.net/projects/evocms/}.

   1  <?php
   2  /**

   3   * This file is part of b2evolution - {@link http://b2evolution.net/}

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

   5   *

   6   * @copyright (c)2009 by Francois PLANQUE - {@link http://fplanque.net/}

   7   * Parts of this file are copyright (c)2009 by The Evo Factory - {@link http://www.evofactory.com/}.

   8   *

   9   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

  10   *

  11   * {@internal Open Source relicensing agreement:

  12   * The Evo Factory grants Francois PLANQUE the right to license

  13   * The Evo Factory's contributions to this file and the b2evolution project

  14   * under any OSI approved OSS license (http://www.opensource.org/licenses/).

  15   * }}

  16   *

  17   * @package maintenance

  18   *

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

  20   * @author fplanque: Francois Planque.

  21   *

  22   * @version $Id: _upgrade_svn.form.php 2193 2012-10-19 11:01:47Z yura $

  23   */
  24  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  25  
  26  /**

  27   * @var action

  28   */
  29  global $action;
  30  
  31  switch( $action )
  32  {
  33      case 'start':
  34  
  35          global $updates, $UserSettings;
  36  
  37          $Form = new Form( NULL, 'upgrade_form', 'post', 'compact' );
  38  
  39          $Form->hiddens_by_key( get_memorized( 'action' ) );
  40  
  41          $Form->begin_form( 'fform', T_('Upgrade from SVN').get_manual_link( 'upgrade-from-svn' ) );
  42  
  43          $Form->text_input( 'svn_url', $UserSettings->get( 'svn_upgrade_url' ), 80, T_('URL of repository'), T_('e.g. https://server.com/svn/repository/'), array( 'maxlength' => 300, 'required' => true ) );
  44          $Form->text_input( 'svn_folder', $UserSettings->get( 'svn_upgrade_folder' ), 80, T_('SVN folder'), T_('e.g. trunk/blogs/'), array( 'maxlength' => 300 ) );
  45          $Form->text_input( 'svn_user', $UserSettings->get( 'svn_upgrade_user' ), 32, T_('Login'), '', array( 'maxlength' => 300 ) );
  46          $Form->password_input( 'svn_password', get_param( 'svn_password' ), 32, T_('Password'), '', array( 'maxlength' => 300 ) );
  47          $Form->text_input( 'svn_revision', $UserSettings->get( 'svn_upgrade_revision' ), 7, T_('Revision'), T_('Leave blank to get the latest revision') );
  48  
  49          $Form->end_form( array( array( 'submit', 'actionArray[export_svn]', T_( 'Export revision from SVN...' ), 'SaveButton' ) ) );
  50  
  51          break;
  52  }
  53  
  54  ?>

title

Description

title

Description

title

Description

title

title

Body