b2evolution PHP Cross Reference Blogging Systems

Source: /inc/maintenance/views/_backup_options.form.php - 88 lines - 2657 bytes - Summary - 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 fplanque: Francois Planque.

  21   *

  22   * @version $Id: _backup_options.form.php 6154 2014-03-12 05:46:46Z yura $

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

  27  load_class( 'maintenance/model/_backup.class.php', 'Backup' );
  28  
  29  /**

  30   * @var back up configuration

  31   */
  32  global $backup_paths, $backup_tables, $backup_path;
  33  
  34  /**

  35   * @var instance of Backup class

  36   */
  37  $current_Backup = new Backup();
  38  
  39  $Form->begin_fieldset( T_( 'Advanced backup options' ).' '.get_icon( 'collapse', 'imgtag', array( 'id' => 'clickimg_backup_options' ) ),
  40      array( 'legend_params' => array( 'onclick' => 'toggle_clickopen(\'backup_options\')' ) ) );
  41  
  42  echo '<div id="clickdiv_backup_options">';
  43  
  44  // Display checkboxes

  45  foreach( $backup_paths as $name => $settings )
  46  {
  47      if( !is_null( $settings['label'] ) )
  48      {
  49          $note = '';
  50          if( array_key_exists( 'note', $settings ) )
  51          {
  52              $note = $settings['note'];
  53          }
  54          else
  55          {
  56              $note = get_affected_paths( $settings['path'] );
  57          }
  58  
  59          $Form->checkbox( 'bk_'.$name, 1/*$current_Backup->backup_paths[$name]*/, $settings['label'], $note );
  60      }
  61  }
  62  
  63  // Display checkboxes

  64  foreach( $backup_tables as $name => $settings )
  65  {
  66      $note = '';
  67      if( array_key_exists( 'note', $settings ) )
  68      {
  69          $note = $settings['note'];
  70      }
  71      else
  72      {
  73          $note = get_affected_tables( $settings['table'] );
  74      }
  75  
  76      $Form->checkbox( 'bk_'.$name, 1/*$current_Backup->backup_tables[$name]*/, $settings['label'], $note );
  77  }
  78  
  79  if( function_exists( 'gzopen' ) )
  80  {
  81      $Form->checkbox( 'bk_pack_backup_files', $current_Backup->pack_backup_files, 'ZIP', T_('Compress backup files into ZIP archive.') );
  82  }
  83  
  84  echo '</div>';
  85  
  86  $Form->end_fieldset();
  87  ?>
  88  <script type="text/javascript">toggle_clickopen( "backup_options" );</script>

title

Description

title

Description

title

Description

title

title

Body