b2evolution PHP Cross Reference Blogging Systems

Source: /inc/maintenance/views/_upgrade.form.php - 64 lines - 2172 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-2014 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 efy-maxim: Evo Factory / Maxim.
  21   * @author fplanque: Francois Planque.
  22   *
  23   * @version $Id: _upgrade.form.php 6180 2014-03-13 10:53:17Z yura $
  24   */
  25  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  26  
  27  /**
  28   * @var action
  29   */
  30  global $action;
  31  
  32  if( $action == 'start' )
  33  {
  34      global $updates;
  35  
  36      $Form = new Form( NULL, 'upgrade_form', 'post', 'compact' );
  37  
  38      $Form->begin_form( 'fform', T_( 'Check for updates' ) );
  39  
  40      if( empty( $updates ) )
  41      { // No new updates
  42          ?><div class="action_messages">
  43              <div class="log_error" style="text-align:center;font-weight:bold"><?php echo T_( 'There are no new updates.' ); ?></div>
  44          </div><?php
  45  
  46          $Form->end_form();
  47      }
  48      else
  49      { // Display a form to download new update
  50          $update = $updates[0];
  51  
  52          $Form->info( T_( 'Update' ), $update['name'] );
  53          $Form->info( T_( 'Description' ), $update['description'] );
  54          $Form->info( T_( 'Version' ), $update['version'] );
  55  
  56          $Form->text_input( 'upd_url', $update['url'], 80, T_('URL'), '<br/><span class="red">'.T_( 'This is a test implementation. Please enter the URL of the ZIP file to download and install !' ).'</span>', array( 'maxlength' => 300, 'required' => true ) );
  57  
  58          $Form->hiddens_by_key( get_memorized( 'action' ) );
  59  
  60          $Form->end_form( array( array( 'submit', 'actionArray[download]', T_( 'Continue' ), 'SaveButton' ) ) );
  61      }
  62  }
  63  
  64  ?>

title

Description

title

Description

title

Description

title

title

Body